Merge pull request #384 from troeggla/master

Fixed type definitions for find() and findOne()
This commit is contained in:
Anton Lavrenov 2018-04-18 08:27:23 +07:00 committed by GitHub
commit acff7b0ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
konva.d.ts vendored
View File

@ -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<T extends Node>(selector: string | ((Node) => boolean)): T;
find(selector?: string | ((node: Node) => boolean)): Collection;
findOne<T extends Node>(selector: string | ((node: Node) => boolean)): T;
getAllIntersections(pos: Vector2d): Shape[];
hasChildren(): boolean;
removeChildren(): void;