From 45644879b44f33ea8e9d6f2e0c438e3adb54e7c0 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Tue, 1 Sep 2026 08:53:56 +0200 Subject: [PATCH] fix: API request description --- MusicKitAPI.d.ts | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MusicKitAPI.d.ts b/MusicKitAPI.d.ts index a1d69ac..5fb7b29 100644 --- a/MusicKitAPI.d.ts +++ b/MusicKitAPI.d.ts @@ -3,13 +3,13 @@ export interface MusicKitAPI { * This is the primary mean of accessing the Apple Music API. * @see https://js-cdn.music.apple.com/musickit/v3/docs/index.html?path=/docs/reference-javascript-api--page * @param path - The Apple Music API path to use - * @param params - The parameters to substitute in the path (params use Mustache syntax) + * @param queryParameters - URL query parameters to be appended to the request URL * @param options - Extra options to pass directly to the underlying fetch call. * @returns The data in an object. The type varies across paths. */ 'music': ( path: string, - params?: { + queryParameters?: { [key: string]: unknown }, opts?: { diff --git a/package.json b/package.json index f774db3..69fe939 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "musickitjs-v3-types", - "version": "1.1.1", + "version": "1.2.0", "description": "Types for musickit js version 3.0", "keywords": [ "musickitjs",