File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
import { unified } from 'unified'
2
- import { Node } from 'unist'
2
+ import type { Node } from 'unist'
3
3
import { expectType , expectNotType , expectError } from 'tsd'
4
- import { Element } from 'hast'
4
+ import type { Element } from 'hast'
5
5
import { isElement , convertElement } from './index.js'
6
6
7
7
/* Setup. */
8
- interface Section extends Element {
8
+ type Section = {
9
9
tagName : 'section'
10
- }
10
+ } & Element
11
11
12
- interface Article extends Element {
12
+ type Article = {
13
13
tagName : 'article'
14
- }
14
+ } & Element
15
15
16
16
const section : Element = {
17
17
type : 'element' ,
Original file line number Diff line number Diff line change 39
39
"@types/tape" : " ^4.0.0" ,
40
40
"c8" : " ^7.0.0" ,
41
41
"prettier" : " ^2.0.0" ,
42
- "remark-cli" : " ^10 .0.0" ,
42
+ "remark-cli" : " ^11 .0.0" ,
43
43
"remark-preset-wooorm" : " ^9.0.0" ,
44
44
"rimraf" : " ^3.0.0" ,
45
45
"tape" : " ^5.0.0" ,
46
- "tsd" : " ^0.20 .0" ,
46
+ "tsd" : " ^0.25 .0" ,
47
47
"type-coverage" : " ^2.0.0" ,
48
48
"typescript" : " ^4.0.0" ,
49
49
"unified" : " ^10.0.0" ,
50
- "xo" : " ^0.49 .0"
50
+ "xo" : " ^0.53 .0"
51
51
},
52
52
"scripts" : {
53
53
"prepack" : " npm run build && npm run format" ,
You can’t perform that action at this time.
0 commit comments