mirror of
https://github.com/janishutz/musickitjs-v3-types.git
synced 2026-10-08 20:56:23 +02:00
feat: basic initial types
This commit is contained in:
1 parent
850db4e487
commit
abbd0b48c5
9 files changed
+845
-1
No files matched your search
Vendored
+38
@@ -0,0 +1,38 @@
|
||||
declare namespace MusicKit {
|
||||
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;
|
||||
}
|
||||
|
||||
function configure ( config: MusicKitConfiguration ): Promise<MusicKitInstance>;
|
||||
}
|
||||
Reference in new issue
Block a user