From fc5d0e3a8945c3def21f19ec704f0103cc0e36c5 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Sat, 13 Mar 2021 11:12:57 -0800 Subject: [PATCH] Fix TS documentation --- docs/concepts/11-typescript.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/concepts/11-typescript.md b/docs/concepts/11-typescript.md index b37af6e69..9ff01ce50 100644 --- a/docs/concepts/11-typescript.md +++ b/docs/concepts/11-typescript.md @@ -32,13 +32,13 @@ Using best practices, the custom types will look something like: ```ts export type ParagraphElement = { type: 'paragraph' - children: Descendant + children: CustomText[] } export type HeadingElement = { - type: 'paragraph' + type: 'heading' level: number - children: Descendant + children: CustomText[] } export type CustomElement = ParagraphElement | HeadingElement