Skip to content

Commit

Permalink
feat: set exactOptionalPropertyTypes option
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `undefined` is no longer assignable to optional properties, unless the type of the
property explicitly includes `undefined`. See
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-4.html#exact-optional-property-types---exactoptionalpropertytypes
  • Loading branch information
djcsdy committed Feb 2, 2022
1 parent c8ab892 commit 1ecdbd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"allowSyntheticDefaultImports": true,
"declaration": true,
"downlevelIteration": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"inlineSources": true,
Expand Down

0 comments on commit 1ecdbd9

Please sign in to comment.