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

Update type definitions to match updates made in DefinitelyTyped definitions #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Coteh
Copy link
Contributor

@Coteh Coteh commented Jan 3, 2023

TypeScript 4.4 adds "exactOptionalPropertyTypes" setting, which if enabled, will fail type check if undefined is explicitly passed to an optional property. By making the undefined property explicitly, there will be no errors, even if the setting is enabled.

DefinitelyTyped/DefinitelyTyped@2921660 https://www.typescriptlang.org/tsconfig#exactOptionalPropertyTypes

The type definitions were added to DefinitelyTyped before they were merged directly into this project. PR DefinitelyTyped/DefinitelyTyped#63785 will remove them from DefinitelyTyped since they're here now.

…nitions

TypeScript 4.4 adds "exactOptionalPropertyTypes" setting, which if enabled, will fail type check if undefined is explicitly passed to an optional property. By making the undefined property explicitly, there will be no errors, even if the setting is enabled.

DefinitelyTyped/DefinitelyTyped@2921660
https://www.typescriptlang.org/tsconfig#exactOptionalPropertyTypes
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

1 participant