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;
/**
+1 -1
View File
@@ -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",