From ca4eeb2e4aabf70e6925b7654781e5ae5c99931f Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 12 Dec 2018 12:20:37 +0000 Subject: [PATCH] combine overloads --- 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 59e14bcf23..569e2f5835 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -409,7 +409,7 @@ declare class BaseNode< getChild(path: Path): Node | null; getClosestBlock(path: Path): Block | null; getClosestInline(path: Path): Inline | null; - getClosestVoid(path: Path): Node | null; + getClosestVoid(key: string | Path): Node | null; getClosestVoid(key: string): Node | null; getClosest(path: Path, iterator: (node: Node) => boolean): Node | null; getCommonAncestor(a: Path, b: Path): Node;