Files
musickitjs-v3-types/MusicKit.d.ts
T

48 lines
1.4 KiB
TypeScript

/* eslint-disable @typescript-eslint/triple-slash-reference */
/// <reference path="MusicKitInstance.d.ts" />
/// <reference path="enums.d.ts" />
/// <reference path="MusicKitAPI.d.ts" />
declare namespace MusicKit {
export interface MusicKitConfiguration {
/**
* See https://js-cdn.music.apple.com/musickit/v3/docs/iframe.html?path=/story/get-started--page#configuring-musickit-on-the-web
*/
'developerToken': string;
/**
* Your application configuration
*/
'app': {
/**
* The name of your application
*/
'name': string;
/**
* Build or version number of application
*/
'build'?: string;
/**
* A URL to your application logo. Should be square at 152x152px
*/
'icon'?: string;
};
'bitrate'?: PlaybackBitrate;
/**
* Set the storefront, which is set for the API requests.
* If unset, then the authenticated user's storefrontId will be used.
*/
'storefrontId'?: string;
}
export function configure ( config: MusicKitConfiguration ): Promise<MusicKitInstance>;
export function getInstance (): MusicKitInstance;
export function formatArtworkURL ( artwork: Artwork, width: number, height: number ): string;
}