1
0
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:
Sunny Hirai
2021-06-06 17:33:02 -07:00
parent 3156bd0b94
commit 3baf1301bc

View File

@@ -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.