Make resource parameter optional for getSecurityToken API (#3322)

This commit is contained in:
Matt Irvine
2018-11-27 16:12:30 -08:00
committed by GitHub
parent 4c075df327
commit 087ed7c132
3 changed files with 9 additions and 4 deletions

5
src/sql/sqlops.d.ts vendored
View File

@@ -1957,10 +1957,11 @@ declare module 'sqlops' {
/**
* Generates a security token by asking the account's provider
* @param {Account} account Account to generate security token for
* @param {Account} account Account to generate security token for (defaults to
* AzureResource.ResourceManagement if not given)
* @return {Thenable<{}>} Promise to return the security token
*/
export function getSecurityToken(account: Account, resource: AzureResource): Thenable<{}>;
export function getSecurityToken(account: Account, resource?: AzureResource): Thenable<{}>;
/**
* An [event](#Event) which fires when the accounts have changed.