File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ declare namespace MusicKit {
7979 /**
8080 * Configure a MusicKit instance.
8181 */
82- function configure ( configuration : Configuration ) : MusicKitInstance ;
82+ function configure ( configuration : Configuration ) : Promise < MusicKitInstance > ;
8383 /**
8484 * Returns the configured MusicKit instance.
8585 */
Original file line number Diff line number Diff line change 1- MusicKit . configure ( {
2- app : {
3- build : "1.0" ,
4- name : "PLAYER_NAME" ,
5- } ,
6- developerToken : "devToken" ,
7- } ) ;
1+ async function testConfigure ( ) {
2+ // $ExpectType MusicKitInstance
3+ const instance = await MusicKit . configure ( {
4+ app : {
5+ build : "1.0" ,
6+ name : "PLAYER_NAME" ,
7+ } ,
8+ developerToken : "devToken" ,
9+ } ) ;
10+ }
811
912const player = MusicKit . getInstance ( ) ;
1013
You can’t perform that action at this time.
0 commit comments