mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-10 17:24:02 +02:00
docs: Add docs for Text.isTextList
This commit is contained in:
@@ -43,3 +43,7 @@ Options: `{loose?: boolean}`
|
|||||||
#### `Text.isText(value: any) => value is Text`
|
#### `Text.isText(value: any) => value is Text`
|
||||||
|
|
||||||
Check if a `value` implements the `Text` interface.
|
Check if a `value` implements the `Text` interface.
|
||||||
|
|
||||||
|
#### `Text.isTextList(value: any): value is Text[]`
|
||||||
|
|
||||||
|
Check if `value` is an `Array` of only `Text` objects.
|
||||||
|
Reference in New Issue
Block a user