Skip to content

Commit 1d0e9e1

Browse files
committed
Add strict to tsconfig.json
1 parent 8726cd8 commit 1d0e9e1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: test.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {toString} from './index.js'
55
test('toString()', function (t) {
66
t.throws(
77
function () {
8+
// @ts-expect-error: runtime.
89
toString()
910
},
1011
/undefined/,

Diff for: tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"declaration": true,
1111
"emitDeclarationOnly": true,
1212
"allowSyntheticDefaultImports": true,
13-
"skipLibCheck": true
13+
"skipLibCheck": true,
14+
"strict": true
1415
}
1516
}

0 commit comments

Comments
 (0)