From f4c66c7027144ab6fd24033330cca567543f565f Mon Sep 17 00:00:00 2001 From: AllanFly120 Date: Thu, 8 Oct 2020 10:16:07 -0700 Subject: [PATCH] export client config interface on root as ConfigurationOptions (#3485) --- .changes/next-release/feature-Type-505e9b51.json | 5 +++++ lib/config-base.d.ts | 3 +++ lib/core.d.ts | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changes/next-release/feature-Type-505e9b51.json diff --git a/.changes/next-release/feature-Type-505e9b51.json b/.changes/next-release/feature-Type-505e9b51.json new file mode 100644 index 0000000000..d10c2eef6c --- /dev/null +++ b/.changes/next-release/feature-Type-505e9b51.json @@ -0,0 +1,5 @@ +{ + "type": "feature", + "category": "Type", + "description": "export client config interface on root as ConfigurationOptions" +} \ No newline at end of file diff --git a/lib/config-base.d.ts b/lib/config-base.d.ts index 513cf775e3..d9b8d7d5b3 100644 --- a/lib/config-base.d.ts +++ b/lib/config-base.d.ts @@ -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 { /** diff --git a/lib/core.d.ts b/lib/core.d.ts index 703e69e2c0..ebd738e84d 100644 --- a/lib/core.d.ts +++ b/lib/core.d.ts @@ -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';