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",