From 81cb2ae659575b1fd13eb8007bb457cc87b0a604 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Wed, 29 Sep 2021 15:08:09 +0200 Subject: [PATCH] Fix code sample (#4558) It's an array of CutsomElement, TS complains about it --- docs/walkthroughs/01-installing-slate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/walkthroughs/01-installing-slate.md b/docs/walkthroughs/01-installing-slate.md index efa20870e..7a8dc0ed8 100644 --- a/docs/walkthroughs/01-installing-slate.md +++ b/docs/walkthroughs/01-installing-slate.md @@ -69,7 +69,7 @@ declare module 'slate' { ```typescript // Also you must annotate `useState` and the editor's initial value. const App = () => { - const initialValue: CustomElement = [] + const initialValue: CustomElement[] = [] const [value, setValue] = useState(initialValue) return (