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

Remove type assertions while generating client types map #913

Merged
merged 3 commits into from
Jul 28, 2024

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Jul 28, 2024

Issue

Feature introduces in TypeScript 5.4 https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/#preserved-narrowing-in-closures-following-last-assignments

Description

Removes type assertions in closures following assignments

Testing

Verified that client types map is not updated on running CI

$ yarn tsx scripts/generateClientTypesMap/index.ts

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

Copy link

changeset-bot bot commented Jul 28, 2024

🦋 Changeset detected

Latest commit: eca4db2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
aws-sdk-js-codemod Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@trivikr trivikr force-pushed the preserve-narrow-closures branch 2 times, most recently from 71a61b9 to 5d98aa9 Compare July 28, 2024 05:05
@trivikr trivikr force-pushed the preserve-narrow-closures branch from 5d98aa9 to 53b1787 Compare July 28, 2024 16:43
@trivikr trivikr changed the title Remove type assertions in closures following assignments Remove type assertions while generating client types map Jul 28, 2024
@trivikr trivikr marked this pull request as ready for review July 28, 2024 16:45
@trivikr trivikr requested a review from a team as a code owner July 28, 2024 16:45
@trivikr trivikr merged commit 3411083 into main Jul 28, 2024
6 checks passed
@trivikr trivikr deleted the preserve-narrow-closures branch July 28, 2024 16:49
Copy link
Contributor

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 12, 2024
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