File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -82,23 +82,6 @@ export async function load(
8282 }
8383}
8484
85- /**
86- * Loads the data from a CDN and returns an instance of AzureAppConfiguration.
87- * @param cdnEndpoint The URL to the CDN.
88- * @param appConfigOptions Optional parameters.
89- */
90- export async function loadFromCdn ( cdnEndpoint : URL | string , options ?: AzureAppConfigurationOptions ) : Promise < AzureAppConfiguration > ;
91-
92- export async function loadFromCdn (
93- cdnEndpoint : string | URL ,
94- appConfigOptions ?: AzureAppConfigurationOptions
95- ) : Promise < AzureAppConfiguration > {
96- const emptyTokenCredential : TokenCredential = {
97- getToken : async ( ) => ( { token : "" , expiresOnTimestamp : 0 } )
98- } ;
99- return await load ( cdnEndpoint , emptyTokenCredential , appConfigOptions ) ;
100- }
101-
10285function instanceOfTokenCredential ( obj : unknown ) {
10386 return obj && typeof obj === "object" && "getToken" in obj && typeof obj . getToken === "function" ;
10487}
You can’t perform that action at this time.
0 commit comments