From 714b97a0a2a0184d18668fa332a82854637e906f Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Tue, 4 May 2021 10:53:08 +0700 Subject: [PATCH] update and clarify docs --- site/content/docs/03-run-time.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site/content/docs/03-run-time.md b/site/content/docs/03-run-time.md index 7fbc8850de..9da9dcf486 100644 --- a/site/content/docs/03-run-time.md +++ b/site/content/docs/03-run-time.md @@ -245,10 +245,10 @@ This makes it possible to wrap almost any other reactive state handling library #### `writable` ```js -store = writable(value: any) +store = writable(value?: any) ``` ```js -store = writable(value: any, (set: (value: any) => void) => () => void) +store = writable(value?: any, callback?: (set: (value: any) => void) => () => void) ``` --- @@ -297,7 +297,7 @@ unsubscribe(); // logs 'no more subscribers' #### `readable` ```js -store = readable(value: any, (set: (value: any) => void) => () => void) +store = readable(value: any, callback: (set: (value: any) => void) => () => void) ``` ---