diff --git a/src/runtime/store/index.ts b/src/runtime/store/index.ts index cf15db5250..985f8c792d 100644 --- a/src/runtime/store/index.ts +++ b/src/runtime/store/index.ts @@ -61,7 +61,7 @@ export function readable(value: T, start: StartStopNotifier): Readable * @param {*=}value initial value * @param {StartStopNotifier=}start start and stop notifications for subscriptions */ -export function writable(value: T, start: StartStopNotifier = noop): Writable { +export function writable(value?: T, start: StartStopNotifier = noop): Writable { let stop: Unsubscriber; const subscribers: Array> = [];