Skip to content

Commit

Permalink
export client config interface on root as ConfigurationOptions (#3485)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Oct 8, 2020
1 parent 539d250 commit f4c66c7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/next-release/feature-Type-505e9b51.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "feature",
"category": "Type",
"description": "export client config interface on root as ConfigurationOptions"
}
3 changes: 3 additions & 0 deletions lib/config-base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ export interface RetryDelayOptions {
customBackoff?: (retryCount: number, err?: Error) => number
}

/**
* Common configuration entries to construct a service client.
*/
export abstract class ConfigurationOptions {

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/core.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export {Config} from './config';
export {HTTPOptions} from './config-base';
export {HTTPOptions, ConfigurationOptions} from './config-base';
export {Credentials} from './credentials';
export {CognitoIdentityCredentials} from './credentials/cognito_identity_credentials';
export {CredentialProviderChain} from './credentials/credential_provider_chain';
Expand Down

0 comments on commit f4c66c7

Please sign in to comment.