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

feat: assertive client type helper #1076

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Nov 15, 2023

This PR adds an optional type helper (works in TS downlevel) that removes undefined as a union type from inputs and another that makes output members recursively non-nullable.

For people to opt in to not type-checking their outputs. Often requested, but not something that is currently safe to drop into the regular clients.

see docs in PR at: https://github.com/smithy-lang/smithy-typescript/blob/a6bffa44504fa495321d52a5f34b69dd0c561984/packages/types/README.md

@kuhe kuhe requested review from a team as code owners November 15, 2023 22:55
@kuhe kuhe merged commit 9bfc64e into smithy-lang:main Nov 20, 2023
7 checks passed
@kuhe kuhe deleted the feat/no-undef branch November 20, 2023 15:50
This pull request was closed.
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