fix: fix the interface of the on method

This commit is contained in:
莫争 2019-11-11 15:33:53 +08:00
parent 99ee784728
commit 06756f9dfd

2
types/index.d.ts vendored
View File

@ -438,7 +438,7 @@ declare namespace G6 {
export class Graph {
constructor(options: GraphOptions);
on<T = G6Event>(eventName: string, handler: T): void;
on<T = G6Event>(eventName: string, handler: (e: T) => void): void;
emit(eventName: string, params: object): void;
/**