Skip to content

Commit

Permalink
chore(codegen): specify type RegionInfoProviderOptions in endpoints.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Nov 1, 2021
1 parent 2c4da91 commit 19b9753
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,");
Expand Down

0 comments on commit 19b9753

Please sign in to comment.