rename findDescendants to findDescendant (#36249)

Slate doesn't have a `findDescendants` method on `BaseNode` but `findDescendant`.
This commit is contained in:
Yann Normand
2019-06-19 15:06:42 +10:00
committed by Daniel Rosenwasser
parent 85563341a1
commit 8e151f8cd2

View File

@@ -406,7 +406,7 @@ declare class BaseNode<
createRange(properties: RangeProperties | Range): Range;
createSelection(properties: SelectionProperties | Selection): Selection;
filterDescendants(iterator: (node: Node) => boolean): Immutable.List<Node>;
findDescendants(iterator: (node: Node) => boolean): Node | null;
findDescendant(iterator: (node: Node) => boolean): Node | null;
getActiveMarksAtRange(range: Range): Immutable.Set<Mark>;
getAncestors(path: Path): Immutable.List<Node> | null;
getBlocks(): Immutable.List<Block>;