1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-19 05:31:56 +02:00

Fix TS documentation

This commit is contained in:
Sunny Hirai
2021-03-13 11:12:57 -08:00
parent a72958e6c3
commit fc5d0e3a89

View File

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