diff --git a/src/runtime/store/index.ts b/src/runtime/store/index.ts index 985f8c792d..96daf11249 100644 --- a/src/runtime/store/index.ts +++ b/src/runtime/store/index.ts @@ -50,7 +50,9 @@ const subscriber_queue = []; * @param value initial value * @param {StartStopNotifier}start start and stop notifications for subscriptions */ -export function readable(value: T, start: StartStopNotifier): Readable { +export function readable(): Readable; +export function readable(value: T, start: StartStopNotifier): Readable; +export function readable(value?: T, start?: StartStopNotifier): Readable { return { subscribe: writable(value, start).subscribe };