File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ export function size(node, test) {
27
27
*/
28
28
function fastSize ( node ) {
29
29
/** @type {Array.<Node> } */
30
- // @ts -ignore Looks like a parent.
30
+ // @ts -expect-error Looks like a parent.
31
31
const children = ( node && node . children ) || empty
32
32
let count = 0
33
33
let index = - 1
34
34
35
35
if ( children && children . length > 0 ) {
36
36
while ( ++ index < children . length ) {
37
- // @ts -ignore Looks like a parent.
37
+ // @ts -expect-error Looks like a parent.
38
38
if ( is ( children [ index ] , index , node ) ) count ++
39
39
count += fastSize ( children [ index ] )
40
40
}
Original file line number Diff line number Diff line change 10
10
"declaration" : true ,
11
11
"emitDeclarationOnly" : true ,
12
12
"allowSyntheticDefaultImports" : true ,
13
- "skipLibCheck" : true
13
+ "skipLibCheck" : true ,
14
+ "strict" : true
14
15
}
15
16
}
You can’t perform that action at this time.
0 commit comments