Skip to content

Commit da6d698

Browse files
committed
mark initial values as optional
1 parent 8df1237 commit da6d698

File tree

1 file changed

+2
-2
lines changed
  • packages/svelte/src/runtime/store

1 file changed

+2
-2
lines changed

packages/svelte/src/runtime/store/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const subscriber_queue = [];
1212
/**
1313
* Creates a `Readable` store that allows reading by subscription.
1414
* @template T
15-
* @param {T} value initial value
15+
* @param {T} [value] initial value
1616
* @param {import('./public.js').StartStopNotifier<T>} [start]
1717
* @returns {import('./public.js').Readable<T>}
1818
*/
@@ -25,7 +25,7 @@ export function readable(value, start) {
2525
/**
2626
* Create a `Writable` store that allows both updating and reading by subscription.
2727
* @template T
28-
* @param {T} value initial value
28+
* @param {T} [value] initial value
2929
* @param {import('./public.js').StartStopNotifier<T>} [start]
3030
* @returns {import('./public.js').Writable<T>}
3131
*/

0 commit comments

Comments
 (0)