Added generic for HandlerFunc evt

This commit is contained in:
Heeryong Kang 2018-08-30 15:35:33 +09:00 committed by GitHub
parent f453ddbd5d
commit 6996dc8954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
konva.d.ts vendored
View File

@ -5,10 +5,10 @@ declare namespace Konva {
var isDragReady: () => boolean;
var DD: any;
type HandlerFunc = (
type HandlerFunc<E = Event> = (
e: {
target: Konva.Shape;
evt: Event;
evt: E;
currentTarget: Konva.Node;
cancelBubble: boolean;
}