docs: clarify store contract type signature (#4539)

pull/7738/head
Joseph Abrahamson 5 years ago committed by GitHub
parent 6dcd576eeb
commit e62f7afdc2

@ -175,7 +175,7 @@ Local variables (that do not represent store values) must *not* have a `$` prefi
##### Store contract ##### Store contract
```js ```js
store = { subscribe: (subscription: (value: any) => void) => () => void, set?: (value: any) => void } store = { subscribe: (subscription: (value: any) => void) => (() => void), set?: (value: any) => void }
``` ```
You can create your own stores without relying on [`svelte/store`](docs#svelte_store), by implementing the *store contract*: You can create your own stores without relying on [`svelte/store`](docs#svelte_store), by implementing the *store contract*:

Loading…
Cancel
Save