brrd / electron-tabs

Tab component for Electron
MIT License
697 stars 130 forks source link

Wrong type defined for once(type: string, fn: (detail: string) => void): void; #156

Open zhy1440 opened 2 years ago

zhy1440 commented 2 years ago

Describe the bug The parameters of the callback function should not be a string. once(type: string, fn: (detail: string) => void): void; It should be similar to on(type: string, fn: (...detail: any[]) => void): void;