mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 12:30:11 +02:00
fix: ts (#3217)
This commit is contained in:
committed by
Ian Storm Taylor
parent
687f25df4b
commit
2240ce2274
@@ -28,7 +28,7 @@ export const SlateContext = createContext<[Editor] | null>(null)
|
|||||||
|
|
||||||
export const Slate = (props: {
|
export const Slate = (props: {
|
||||||
editor: Editor
|
editor: Editor
|
||||||
children: JSX.Element | JSX.Element[]
|
children: React.ReactNode
|
||||||
defaultValue?: Node[]
|
defaultValue?: Node[]
|
||||||
onChange?: (children: Node[], operations: Operation[]) => void
|
onChange?: (children: Node[], operations: Operation[]) => void
|
||||||
}) => {
|
}) => {
|
||||||
|
Reference in New Issue
Block a user