From 2b638a54b991a77a4bc218ea3737212d6deb2fce Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Mon, 27 Sep 2021 08:27:06 +0700 Subject: [PATCH] StartStopNotifier type now requires update param This will be a breaking change for anyone who uses the StartStopNotifier type in their custom stores. --- src/runtime/store/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/store/index.ts b/src/runtime/store/index.ts index afd4ccabd61e..a38f05616f2d 100644 --- a/src/runtime/store/index.ts +++ b/src/runtime/store/index.ts @@ -13,7 +13,7 @@ export type Updater = (value: T) => T; type Invalidator = (value?: T) => void; /** Start and stop notification callbacks. */ -export type StartStopNotifier = (set: Subscriber, update?: (fn: Updater) => void) => Unsubscriber | void; +export type StartStopNotifier = (set: Subscriber, update: (fn: Updater) => void) => Unsubscriber | void; /** Readable interface for subscribing. */ export interface Readable {