mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Added generic for HandlerFunc evt
This commit is contained in:
parent
f453ddbd5d
commit
6996dc8954
4
konva.d.ts
vendored
4
konva.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user