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

Fix exactOptionalPropertyTypes, fix TypeScript 5.4 #565

Merged
merged 1 commit into from Mar 24, 2024

Conversation

alecmev
Copy link
Contributor

@alecmev alecmev commented Mar 21, 2024

#559 undid the fix in #543. Added exactOptionalPropertyTypes to compilerOptions to prevent this from happening again, seems pretty low-impact. It should be okay to pass undefined to credentials and other options, but this is an upstream problem (see RequestInit in undici-types/fetch.d.ts).

The build was failing on TS 5.4 because there's a priority in RequestInit now.

sindresorhus#559 undid the fix in
sindresorhus#543. Added
`exactOptionalPropertyTypes` to `compilerOptions` to prevent this from
happening again, seems pretty low-impact. It should be okay to pass
`undefined` to `credentials` and other options, but this is an upstream
problem (see `RequestInit` in `undici-types/fetch.d.ts`).

The build was failing on TS 5.4 because there's a `priority` in
`RequestInit` now.
@alecmev alecmev changed the title Fix type regression Fix exactOptionalPropertyTypes, fix TypeScript 5.4 Mar 22, 2024
@sindresorhus sindresorhus merged commit 08f912d into sindresorhus:main Mar 24, 2024
1 check passed
@alecmev alecmev deleted the patch-1 branch March 24, 2024 11:44
@alecmev
Copy link
Contributor Author

alecmev commented Mar 24, 2024

Thanks!

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.

None yet

2 participants