Skip to content

Commit 32a69f5

Browse files
committed
Add strict to tsconfig.json
1 parent 4a31109 commit 32a69f5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ export function size(node, test) {
2727
*/
2828
function fastSize(node) {
2929
/** @type {Array.<Node>} */
30-
// @ts-ignore Looks like a parent.
30+
// @ts-expect-error Looks like a parent.
3131
const children = (node && node.children) || empty
3232
let count = 0
3333
let index = -1
3434

3535
if (children && children.length > 0) {
3636
while (++index < children.length) {
37-
// @ts-ignore Looks like a parent.
37+
// @ts-expect-error Looks like a parent.
3838
if (is(children[index], index, node)) count++
3939
count += fastSize(children[index])
4040
}

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)