Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AddClientRuntimeConfig for generic clients #693

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Feb 10, 2023

Currently, generic clients fail to compile. Running the following commands:

./gradlew :smithy-typescript-codegen:build
cd smithy-typescript-codegen-test/build/smithyprojections/smithy-typescript-codegen-test/source/typescript-codegen
yarn install
yarn build

Results in compilation errors such as [build:es] src/commands/GetCityAnnouncementsCommand.ts(55,13): error TS2339: Property 'logger' does not exist on type 'WeatherClientResolvedConfig'..

This PR adds AddClientRuntimeConfig which generates client configuration that is currently added to AWS clients via AddAwsRuntimeConfig.

Co-authored-by: Jaykumar Gosar [email protected]

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kuhe kuhe merged commit 82a5a39 into smithy-lang:main Feb 14, 2023
srchase added a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants