From 8e151f8cd2e4da2c5cf0b5bb9f00b5a5f9835909 Mon Sep 17 00:00:00 2001 From: Yann Normand Date: Wed, 19 Jun 2019 15:06:42 +1000 Subject: [PATCH] rename `findDescendants` to `findDescendant` (#36249) Slate doesn't have a `findDescendants` method on `BaseNode` but `findDescendant`. --- types/slate/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index 329f7412a9..18664c54d2 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -406,7 +406,7 @@ declare class BaseNode< createRange(properties: RangeProperties | Range): Range; createSelection(properties: SelectionProperties | Selection): Selection; filterDescendants(iterator: (node: Node) => boolean): Immutable.List; - findDescendants(iterator: (node: Node) => boolean): Node | null; + findDescendant(iterator: (node: Node) => boolean): Node | null; getActiveMarksAtRange(range: Range): Immutable.Set; getAncestors(path: Path): Immutable.List | null; getBlocks(): Immutable.List;