fix: optional third arg for event listener

This commit is contained in:
janishutz committed 2026-09-01 15:54:20 +02:00
1 parent 45644879b4
commit 6962b7a2f8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -167,7 +167,7 @@ export interface MusicKitInstance {
* @param callback - a callable function, whose arguments depend on the event listened to
* @param options - Any further options (currently only 'once', which, if set to true, removes the listener after it was triggered once)
*/
'addEventListener': ( name: string, callback: CallableFunction, options: {
'addEventListener': ( name: string, callback: CallableFunction, options?: {
'once': boolean
} ) => void;
/**