1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-29 11:18:25 +01:00

Add return types to Slate React components

This commit is contained in:
Sunny Hirai 2023-04-13 09:18:48 -07:00
parent 0faa1476c1
commit 36ea10b88d
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Editable component
#### `Editable(props: EditableProps)`
## `Editable(props: EditableProps): JSX.Element`
The `Editable` component is the main editing component. Note that it must be inside a `Slate` component.

View File

@ -1,6 +1,6 @@
# Slate Component
## `Slate(props: SlateProps)`
## `Slate(props: SlateProps): JSX.Element`
The `Slate` component must include somewhere in its `children` the `Editable` component.