Skip to content

Commit 2b638a5

Browse files
committed
StartStopNotifier type now requires update param
This will be a breaking change for anyone who uses the StartStopNotifier type in their custom stores.
1 parent b2b7bd1 commit 2b638a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/store/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type Updater<T> = (value: T) => T;
1313
type Invalidator<T> = (value?: T) => void;
1414

1515
/** Start and stop notification callbacks. */
16-
export type StartStopNotifier<T> = (set: Subscriber<T>, update?: (fn: Updater<T>) => void) => Unsubscriber | void;
16+
export type StartStopNotifier<T> = (set: Subscriber<T>, update: (fn: Updater<T>) => void) => Unsubscriber | void;
1717

1818
/** Readable interface for subscribing. */
1919
export interface Readable<T> {

0 commit comments

Comments
 (0)