mirror of
https://gitee.com/antv/g6.git
synced 2024-12-01 03:08:33 +08:00
fix: fix the interface of the on
method
This commit is contained in:
parent
99ee784728
commit
06756f9dfd
2
types/index.d.ts
vendored
2
types/index.d.ts
vendored
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user