From e96889677c6445fdd6801cde8d0e408b896841b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20R=C3=B6ggla?= Date: Tue, 17 Apr 2018 14:43:34 +0200 Subject: [PATCH] fixed type definitions for find() and findOne() --- konva.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/konva.d.ts b/konva.d.ts index 85361766..8f7c087f 100644 --- a/konva.d.ts +++ b/konva.d.ts @@ -342,8 +342,8 @@ declare namespace Konva { clipFunc(): (ctx: CanvasRenderingContext2D) => void; clipFunc(ctx: CanvasRenderingContext2D | undefined | null): void; destroyChildren(): void; - find(selector?: string | ((Node) => boolean)): Collection; - findOne(selector: string | ((Node) => boolean)): T; + find(selector?: string | ((node: Node) => boolean)): Collection; + findOne(selector: string | ((node: Node) => boolean)): T; getAllIntersections(pos: Vector2d): Shape[]; hasChildren(): boolean; removeChildren(): void;