docs: clarify store contract type signature (#4539)

pull/4772/head
Joseph Abrahamson 5 years ago committed by GitHub
parent 9179c3e99b
commit 5efeeecee8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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