@@ -62,7 +62,7 @@ export function core(schema, defaultTagName, caseSensitive) {
6262
6363 if ( selector === undefined || selector === null ) {
6464 node = { type : 'root' , children : [ ] }
65- // @ts -ignore Properties are not supported for roots.
65+ // @ts -expect-error Properties are not supported for roots.
6666 children . unshift ( properties )
6767 } else {
6868 node = parseSelector ( selector , defaultTagName )
@@ -79,7 +79,7 @@ export function core(schema, defaultTagName, caseSensitive) {
7979
8080 for ( key in properties ) {
8181 if ( own . call ( properties , key ) ) {
82- // @ts -ignore `node.properties` is set.
82+ // @ts -expect-error `node.properties` is set.
8383 addProperty ( schema , node . properties , key , properties [ key ] )
8484 }
8585 }
@@ -183,7 +183,7 @@ function addProperty(schema, properties, key, value) {
183183 const finalResult = [ ]
184184
185185 while ( ++ index < result . length ) {
186- // @ts -ignore Assume no booleans in array.
186+ // @ts -expect-error Assume no booleans in array.
187187 finalResult [ index ] = parsePrimitive ( info , info . property , result [ index ] )
188188 }
189189
@@ -192,7 +192,7 @@ function addProperty(schema, properties, key, value) {
192192
193193 // Class names (which can be added both on the `selector` and here).
194194 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`.
196196 result = properties . className . concat ( result )
197197 }
198198
@@ -217,7 +217,6 @@ function addChild(nodes, value) {
217217 }
218218 } else if ( typeof value === 'object' && 'type' in value ) {
219219 if ( value . type === 'root' ) {
220- // @ts -ignore it looks like a root, TS…
221220 addChild ( nodes , value . children )
222221 } else {
223222 nodes . push ( value )
0 commit comments