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:
parent
0faa1476c1
commit
36ea10b88d
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user