mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
feat: migration to TypeScript part 2
Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
@ -88,7 +88,7 @@ const handleData = async (responseText: string, win: Electron.BrowserWindow) =>
|
||||
};
|
||||
|
||||
// This variable will be filled with the callbacks once they register
|
||||
type SongInfoCallback = (songInfo: SongInfo, event: string) => void;
|
||||
export type SongInfoCallback = (songInfo: SongInfo, event?: string) => void;
|
||||
const callbacks: SongInfoCallback[] = [];
|
||||
|
||||
// This function will allow plugins to register callback that will be triggered when data changes
|
||||
|
||||
Reference in New Issue
Block a user