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

chore(clients): set default parameter for ClientConfig #3416

Closed

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Mar 11, 2022

Issue

Refs smithy-lang/smithy-typescript#525

Description

Sets default parameter for ClientConfig in constructor as empty object

Testing

ToDo: Verify that TypeScript allows client creation with no parameters


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

@trivikr trivikr requested a review from a team as a code owner March 11, 2022 23:39
@trivikr trivikr marked this pull request as draft March 11, 2022 23:42
@trivikr

This comment was marked as outdated.

@trivikr trivikr force-pushed the empty-hash-default-param-client-constructor branch from d47fed0 to a7f3c31 Compare August 3, 2023 18:10
@trivikr
Copy link
Member Author

trivikr commented Aug 3, 2023

Error with EchoService

src/EchoServiceClient.ts(205,15): error TS2322: Type '{}' is not assignable to type 'EchoServiceClientConfig'.
  Property 'endpoint' is missing in type '{}' but required in type 'CustomEndpointsInputConfig'.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run build:es exited with code 2

@trivikr trivikr force-pushed the empty-hash-default-param-client-constructor branch from a7f3c31 to 8ccd134 Compare August 7, 2023 16:04
@trivikr
Copy link
Member Author

trivikr commented Aug 7, 2023

Replaced by #5060

@trivikr trivikr closed this Aug 7, 2023
@trivikr trivikr deleted the empty-hash-default-param-client-constructor branch August 7, 2023 21:48
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant