mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-11 12:40:15 +00:00
[updated] Update Document method for getLeafBlocksAtRange()
This commit is contained in:
6
types/slate/index.d.ts
vendored
6
types/slate/index.d.ts
vendored
@@ -402,8 +402,6 @@ declare class BaseNode<
|
||||
findDescendants(iterator: (node: Node) => boolean): Node | null;
|
||||
getActiveMarksAtRange(range: Range): Immutable.Set<Mark>;
|
||||
getAncestors(path: Path): Immutable.List<Node> | null;
|
||||
getBlocksAtRange(range: Range): Immutable.List<Block>;
|
||||
getBlocksAtRangeAsArray(range: Range): Block[];
|
||||
getBlocks(): Immutable.List<Block>;
|
||||
getBlocksAsArray(): Block[];
|
||||
getBlocksByType(type: string): Immutable.List<Block>;
|
||||
@@ -433,6 +431,8 @@ declare class BaseNode<
|
||||
getInsertMarksAtRange(range: Range): Immutable.Set<Mark>;
|
||||
getKeysToPathsTable(): object;
|
||||
getLastText(): Text | null;
|
||||
getLeafBlocksAtRange(range: Range): Immutable.List<Block>;
|
||||
getLeafBlocksAtRangeAsArray(range: Range): Block[];
|
||||
getMarks(): Immutable.Set<Mark>;
|
||||
getMarksAsArray(): Mark[];
|
||||
getMarksAtPosition(key: string, offset: number): Immutable.Set<Mark>;
|
||||
@@ -884,6 +884,8 @@ export type ErrorCode =
|
||||
| "child_required"
|
||||
| "child_type_invalid"
|
||||
| "child_unknown"
|
||||
| "child_min_invalid"
|
||||
| "child_max_invalid"
|
||||
| "first_child_object_invalid"
|
||||
| "first_child_type_invalid"
|
||||
| "last_child_object_invalid"
|
||||
|
||||
Reference in New Issue
Block a user