Skip to content

Commit 4078f98

Browse files
committed
Add strict to tsconfig.json
1 parent a8942d4 commit 4078f98

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {normalize} from './index.js'
88

99
test('Basic', (t) => {
1010
t.throws(() => {
11-
// @ts-ignore runtime.
11+
// @ts-expect-error runtime.
1212
normalize(true)
1313
}, 'should fail when given a boolean')
1414

tsconfig.json

Lines changed: 2 additions & 1 deletion
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)