File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ export function interactive(node) {
29
29
return false
30
30
}
31
31
32
- // @ts -ignore looks like an element.
33
32
name = node . tagName
34
33
35
34
return (
@@ -38,7 +37,6 @@ export function interactive(node) {
38
37
( name === 'video' && hasProperty ( node , 'controls' ) ) ||
39
38
( name === 'object' && hasProperty ( node , 'useMap' ) ) ||
40
39
( name === 'img' && hasProperty ( node , 'useMap' ) ) ||
41
- // @ts -ignore looks like an element.
42
40
( name === 'input' && ( node . properties || { } ) . type !== 'hidden' ) ||
43
41
hasProperty ( node , 'tabIndex' ) ||
44
42
alwaysInteractive . has ( name )
Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ import test from 'tape'
2
2
import { interactive } from './index.js'
3
3
4
4
test ( 'interactive' , function ( t ) {
5
- // @ts -ignore runtime.
5
+ // @ts -expect-error runtime.
6
6
t . equal ( interactive ( ) , false , 'should return `false` without node' )
7
+ // @ts -expect-error runtime.
7
8
t . equal ( interactive ( null ) , false , 'should return `false` with `null`' )
8
9
9
10
t . equal (
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