From 19b975330fdd4ed5c92c20a261a1404cfdb2296c Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Mon, 1 Nov 2021 16:25:05 +0000 Subject: [PATCH] chore(codegen): specify type RegionInfoProviderOptions in endpoints.ts --- .../smithy/aws/typescript/codegen/EndpointGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java index 5dd9dfeb1d672..7e25ec91d18f5 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java @@ -142,10 +142,11 @@ private void writePartitionHash() { private void writeEndpointProviderFunction() { writer.addImport("RegionInfoProvider", "RegionInfoProvider", TypeScriptDependency.AWS_SDK_TYPES.packageName); + writer.addImport("RegionInfoProviderOptions", "RegionInfoProviderOptions", TypeScriptDependency.AWS_SDK_TYPES.packageName); writer.addImport("getRegionInfo", "getRegionInfo", TypeScriptDependency.CONFIG_RESOLVER.packageName); writer.openBlock("export const defaultRegionInfoProvider: RegionInfoProvider = async (\n" + " region: string,\n" - + " options?: any\n" + + " options?: RegionInfoProviderOptions\n" + ") => ", ";", () -> { writer.openBlock("getRegionInfo(region, {", "})", () -> { writer.write("...options,");