File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 79
79
},
80
80
"scripts" : {
81
81
"prepack" : " npm run build && npm run format" ,
82
- "build" : " tsc --build --clean && tsc --build && type-coverage" ,
82
+ "build" : " tsc --build --clean && tsc --build && tsd && type-coverage" ,
83
83
"generate" : " node script/generate-jsx.js && node script/build.js" ,
84
84
"format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
85
85
"test-api" : " node --conditions development test/index.js" ,
Original file line number Diff line number Diff line change 1
1
/* @jsxRuntime automatic */
2
- /* @jsxImportSource .. */
2
+ /* @jsxImportSource hastscript */
3
3
4
4
import { expectType , expectError } from 'tsd'
5
5
import type { Root , Element } from 'hast'
@@ -49,7 +49,7 @@ expectError(<a invalid={[true]} />)
49
49
50
50
// This is where the automatic runtime differs from the classic runtime.
51
51
// The automatic runtime the children prop to define JSX children, whereas it’s used as an attribute in the classic runtime.
52
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
52
+
53
53
expectType < Result > ( < a children = { < b /> } /> )
54
54
55
55
declare function Bar ( props ?: Record < string , unknown > ) : Element
Original file line number Diff line number Diff line change 1
1
/* @jsxRuntime automatic */
2
- /* @jsxImportSource .. /svg */
2
+ /* @jsxImportSource hastscript /svg */
3
3
4
4
import { expectType , expectError } from 'tsd'
5
5
import type { Root , Element } from 'hast'
@@ -39,7 +39,7 @@ expectError(<a invalid={[true]} />)
39
39
40
40
// This is where the automatic runtime differs from the classic runtime.
41
41
// The automatic runtime the children prop to define JSX children, whereas it’s used as an attribute in the classic runtime.
42
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
42
+
43
43
expectType < Result > ( < a children = { < b /> } /> )
44
44
45
45
declare function Bar ( props ?: Record < string , unknown > ) : Element
You can’t perform that action at this time.
0 commit comments