Skip to content

Commit b5f50c1

Browse files
committed
feat!: enable noUncheckedIndexedAccess and exactOptionalPropertyTypes
As recommended in TS 5.9: microsoft/TypeScript#61813
1 parent aebaf79 commit b5f50c1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
"noImplicitThis": true,
3232
"strict": true,
3333

34+
// See <https://www.semver-ts.org/formal-spec/5-compiler-considerations.html#strictness>
35+
// These 2 options are also part of the recommended tsconfig as of TS 5.9
36+
"noUncheckedIndexedAccess": true,
37+
"exactOptionalPropertyTypes": true,
38+
3439
// <https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#verbatimmodulesyntax>
3540
// Any imports or exports without a type modifier are left around. This is important for `<script setup>`.
3641
// Anything that uses the type modifier is dropped entirely.

tsconfig.lib.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@
99
// For example, its types must be compatible with the Vue types.
1010
// So we don't want to skip the type checking of its dependencies.
1111
"skipLibCheck": false,
12-
13-
"noUncheckedIndexedAccess": true
1412
}
1513
}

0 commit comments

Comments
 (0)