Merge branch 'iceafish-patch-6'

This commit is contained in:
Anton Lavrenov 2019-06-04 10:18:17 -05:00
commit 57602d305e

View File

@ -688,7 +688,7 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
*/
on<K extends keyof NodeEventMap>(
evtStr: K,
handler: KonvaEventListener<this, K>
handler: KonvaEventListener<this, NodeEventMap[K]>
) {
if (arguments.length === 3) {
return this._delegate.apply(this, arguments);