Skip to content

Commit

Permalink
BREAKING: TS 4.4 + exactOptionalPropertyTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Sep 6, 2021
1 parent bd3641f commit c31b39f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions base.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
"display": "Base",

"compilerOptions": {
/* Taken from https://github.com/tsconfig/bases */
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": false,
"forceConsistentCasingInFileNames": true,

/* My own additions */

Expand All @@ -19,13 +17,17 @@
"resolveJsonModule": true,

/* New checks being tried out */
"exactOptionalPropertyTypes": true,
// TODO: Check and see of noImplicitOverride works with JS
// "noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,

/* Additional checks */
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true
"noUnusedParameters": true

/* To make strict checking somewhat less strict during a transition stage, add one or more of: */
/*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"ghat": "^0.14.0"
},
"peerDependencies": {
"typescript": ">=4.2.2"
"typescript": ">=4.4.0"
}
}

0 comments on commit c31b39f

Please sign in to comment.