@@ -62,7 +62,7 @@ export function core(schema, defaultTagName, caseSensitive) {
62
62
63
63
if ( selector === undefined || selector === null ) {
64
64
node = { type : 'root' , children : [ ] }
65
- // @ts -ignore Properties are not supported for roots.
65
+ // @ts -expect-error Properties are not supported for roots.
66
66
children . unshift ( properties )
67
67
} else {
68
68
node = parseSelector ( selector , defaultTagName )
@@ -79,7 +79,7 @@ export function core(schema, defaultTagName, caseSensitive) {
79
79
80
80
for ( key in properties ) {
81
81
if ( own . call ( properties , key ) ) {
82
- // @ts -ignore `node.properties` is set.
82
+ // @ts -expect-error `node.properties` is set.
83
83
addProperty ( schema , node . properties , key , properties [ key ] )
84
84
}
85
85
}
@@ -183,7 +183,7 @@ function addProperty(schema, properties, key, value) {
183
183
const finalResult = [ ]
184
184
185
185
while ( ++ index < result . length ) {
186
- // @ts -ignore Assume no booleans in array.
186
+ // @ts -expect-error Assume no booleans in array.
187
187
finalResult [ index ] = parsePrimitive ( info , info . property , result [ index ] )
188
188
}
189
189
@@ -192,7 +192,7 @@ function addProperty(schema, properties, key, value) {
192
192
193
193
// Class names (which can be added both on the `selector` and here).
194
194
if ( info . property === 'className' && Array . isArray ( properties . className ) ) {
195
- // @ts -ignore Assume no booleans in `className`.
195
+ // @ts -expect-error Assume no booleans in `className`.
196
196
result = properties . className . concat ( result )
197
197
}
198
198
@@ -217,7 +217,6 @@ function addChild(nodes, value) {
217
217
}
218
218
} else if ( typeof value === 'object' && 'type' in value ) {
219
219
if ( value . type === 'root' ) {
220
- // @ts -ignore it looks like a root, TS…
221
220
addChild ( nodes , value . children )
222
221
} else {
223
222
nodes . push ( value )
0 commit comments