From 6962b7a2f8c6d8fdfd5a51e5d21a8926b98b27fc Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Tue, 1 Sep 2026 15:54:20 +0200 Subject: [PATCH] fix: optional third arg for event listener --- MusicKitInstance.d.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MusicKitInstance.d.ts b/MusicKitInstance.d.ts index 971f989..f6203f3 100644 --- a/MusicKitInstance.d.ts +++ b/MusicKitInstance.d.ts @@ -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; /** diff --git a/package.json b/package.json index 69fe939..cfe7640 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "musickitjs-v3-types", - "version": "1.2.0", + "version": "1.2.1", "description": "Types for musickit js version 3.0", "keywords": [ "musickitjs",