From 03e774bed812e831a32426dccfe008445e46b304 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Sat, 13 Mar 2021 12:27:59 -0800 Subject: [PATCH] add import Descendant in TS docs --- docs/concepts/11-typescript.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/concepts/11-typescript.md b/docs/concepts/11-typescript.md index 63624538a..74fcb2f6a 100644 --- a/docs/concepts/11-typescript.md +++ b/docs/concepts/11-typescript.md @@ -9,6 +9,8 @@ If you need to support more than one document model, see the section Multiple Do To define a custom `Element` or `Text` type, extend the `CustomTypes` interface in the `slate` module like this. ```ts +import { Descendant } from 'slate' + declare module 'slate' { interface CustomTypes { Element: { type: 'paragraph'; children: Descendant[] }