Skip to content

Commit db8b023

Browse files
update
1 parent 234ab73 commit db8b023

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/load.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,19 @@ export async function load(
8080

8181
/**
8282
* Loads the data from a CDN and returns an instance of AzureAppConfiguration.
83-
* @param endpoint The URL to the CDN.
84-
* @param options Optional parameters.
83+
* @param cdnEndpoint The URL to the CDN.
84+
* @param appConfigOptions Optional parameters.
8585
*/
8686
export async function loadFromCdn(endpoint: URL | string, options?: AzureAppConfigurationOptions): Promise<AzureAppConfiguration>;
8787

8888
export async function loadFromCdn(
89-
endpoint: string | URL,
89+
cdnEndpoint: string | URL,
9090
appConfigOptions?: AzureAppConfigurationOptions
9191
): Promise<AzureAppConfiguration> {
9292
const emptyTokenCredential: TokenCredential = {
9393
getToken: async () => ({ token: "", expiresOnTimestamp: 0 })
9494
};
95-
return await load(endpoint, emptyTokenCredential, appConfigOptions);
95+
return await load(cdnEndpoint, emptyTokenCredential, appConfigOptions);
9696
}
9797

9898
function instanceOfTokenCredential(obj: unknown) {

0 commit comments

Comments
 (0)