File tree Expand file tree Collapse file tree 7 files changed +17
-7
lines changed Expand file tree Collapse file tree 7 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 17
17
strategy :
18
18
matrix :
19
19
node :
20
- - lts/erbium
20
+ - lts/fermium
21
21
- node
Original file line number Diff line number Diff line change
1
+ /* eslint-disable-next-line @typescript-eslint/consistent-type-imports -- fix in major */
1
2
import { XAttributes , XChild , XResult } from './index.js'
2
3
3
4
export namespace JSX {
@@ -11,6 +12,8 @@ export namespace JSX {
11
12
*/
12
13
type IntrinsicAttributes = never
13
14
15
+ /* eslint-disable @typescript-eslint/consistent-type-definitions -- interfaces are required here */
16
+
14
17
/**
15
18
* This defines the prop types for known elements.
16
19
*
@@ -39,4 +42,6 @@ export namespace JSX {
39
42
*/
40
43
children ?: never
41
44
}
45
+
46
+ /* eslint-enable @typescript-eslint/consistent-type-definitions */
42
47
}
Original file line number Diff line number Diff line change
1
+ /* eslint-disable-next-line @typescript-eslint/consistent-type-imports -- fix in major */
1
2
import { XAttributes , XChild , XResult } from './index.js'
2
3
3
4
/**
@@ -16,6 +17,8 @@ export type Element = XResult
16
17
*/
17
18
export type IntrinsicAttributes = never
18
19
20
+ /* eslint-disable @typescript-eslint/consistent-type-definitions -- interfaces are required here */
21
+
19
22
/**
20
23
* This defines the prop types for known elements.
21
24
*
@@ -44,3 +47,5 @@ export interface ElementChildrenAttribute {
44
47
*/
45
48
[ children ] ?: never
46
49
}
50
+
51
+ /* eslint-enable @typescript-eslint/consistent-type-definitions */
Original file line number Diff line number Diff line change 55
55
"c8" : " ^7.0.0" ,
56
56
"estree-util-build-jsx" : " ^2.0.0" ,
57
57
"prettier" : " ^2.0.0" ,
58
- "remark-cli" : " ^10 .0.0" ,
58
+ "remark-cli" : " ^11 .0.0" ,
59
59
"remark-preset-wooorm" : " ^9.0.0" ,
60
60
"rimraf" : " ^3.0.0" ,
61
61
"tape" : " ^5.0.0" ,
62
- "tsd" : " ^0.20 .0" ,
62
+ "tsd" : " ^0.23 .0" ,
63
63
"type-coverage" : " ^2.0.0" ,
64
64
"typescript" : " ^4.0.0" ,
65
65
"unist-builder" : " ^3.0.0" ,
66
- "xo" : " ^0.49 .0"
66
+ "xo" : " ^0.52 .0"
67
67
},
68
68
"scripts" : {
69
69
"prepack" : " npm run build && npm run format" ,
Original file line number Diff line number Diff line change 2
2
/* @jsxImportSource .. */
3
3
4
4
import { expectType , expectError } from 'tsd'
5
- import { Root , Element } from 'xast'
5
+ import type { Root , Element } from 'xast'
6
6
import { x } from '../index.js'
7
7
import { Fragment , jsx , jsxs } from '../jsx-runtime.js'
8
8
Original file line number Diff line number Diff line change 1
1
/* @jsx x */
2
2
/* @jsxFrag null */
3
3
import { expectType , expectError } from 'tsd'
4
- import { Root , Element } from 'xast'
4
+ import type { Root , Element } from 'xast'
5
5
import { x } from '../index.js'
6
6
7
7
type Result = Element | Root
Original file line number Diff line number Diff line change 1
1
import { expectType , expectError } from 'tsd'
2
- import { Root , Element } from 'xast'
2
+ import type { Root , Element } from 'xast'
3
3
import { x } from '../index.js'
4
4
5
5
expectType < Root > ( x ( ) )
You can’t perform that action at this time.
0 commit comments