mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 17:53:59 +02:00
Add return types to Slate React components
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Editable component
|
# 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.
|
The `Editable` component is the main editing component. Note that it must be inside a `Slate` component.
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
# Slate Component
|
# Slate Component
|
||||||
|
|
||||||
## `Slate(props: SlateProps)`
|
## `Slate(props: SlateProps): JSX.Element`
|
||||||
|
|
||||||
The `Slate` component must include somewhere in its `children` the `Editable` component.
|
The `Slate` component must include somewhere in its `children` the `Editable` component.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user