Skip to content

Commit

Permalink
Add strict to tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 21, 2021
1 parent 72cbf43 commit 7609f82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test.js
Expand Up @@ -162,10 +162,10 @@ test('unist-util-find-all-before', (t) => {

/**
* @param {unknown} _
* @param {number} n
* @param {number|null|undefined} n
*/
function test(_, n) {
return n > 3
return typeof n === 'number' && n > 3
}

t.end()
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Expand Up @@ -10,6 +10,7 @@
"declaration": true,
"emitDeclarationOnly": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true
"skipLibCheck": true,
"strict": true
}
}

0 comments on commit 7609f82

Please sign in to comment.