File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 13
13
*/
14
14
export function toString ( node ) {
15
15
// A root or an element
16
- // @ts -ignore Looks like a parent.
17
16
if ( 'children' in node ) return all ( node )
18
- // @ts -ignore Looks like a literal.
19
17
return 'value' in node ? node . value : ''
20
18
}
21
19
@@ -26,8 +24,7 @@ export function toString(node) {
26
24
function one ( node ) {
27
25
if ( node . type === 'text' ) return node . value
28
26
// Ignore things like comments, instruction, cdata.
29
- // @ts -ignore Looks like a parent.
30
- return node . children ? all ( node ) : ''
27
+ return 'children' in node ? all ( node ) : ''
31
28
}
32
29
33
30
/**
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