Update konva.d.ts

fix Layer FastLayer generic type definition
This commit is contained in:
Yingjie Liu 2018-11-28 17:50:49 +08:00 committed by GitHub
parent d76b09e026
commit d33a79940b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
konva.d.ts vendored
View File

@ -667,14 +667,14 @@ declare namespace Konva {
hitGraphEnabled?: boolean;
}
class FastLayer extends Container {
class FastLayer<T extends Node = Node> extends Container<T> {
constructor(config?: LayerConfig);
drawScene(): void;
hitGraphEnabled(val: boolean): this;
batchDraw(): void;
}
class Layer extends Container {
class Layer<T extends Node = Node> extends Container<T> {
constructor(config?: LayerConfig);
getIntersection(pos: Vector2d, selector?: string): Shape;
enableHitGraph(): this;