11/* eslint-disable @typescript-eslint/no-empty-function */
22
33import { expectError , expectType } from 'tsd'
4- import { Node , Parent , Literal } from 'unist'
4+ import type { Node , Parent , Literal } from 'unist'
55import { is } from 'unist-util-is'
66import { visit , SKIP , EXIT , CONTINUE } from './index.js'
77
@@ -31,6 +31,7 @@ const complexTree: Root = {
3131 ]
3232}
3333
34+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
3435interface Element extends Parent {
3536 type : 'element'
3637 tagName : string
@@ -41,36 +42,42 @@ interface Element extends Parent {
4142
4243type Content = Flow | Phrasing
4344
45+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
4446interface Root extends Parent {
4547 type : 'root'
4648 children : Array < Flow >
4749}
4850
4951type Flow = Blockquote | Heading | Paragraph
5052
53+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
5154interface Blockquote extends Parent {
5255 type : 'blockquote'
5356 children : Array < Flow >
5457}
5558
59+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
5660interface Heading extends Parent {
5761 type : 'heading'
5862 depth : number
5963 children : Array < Phrasing >
6064}
6165
66+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
6267interface Paragraph extends Parent {
6368 type : 'paragraph'
6469 children : Array < Phrasing >
6570}
6671
6772type Phrasing = Text | Emphasis
6873
74+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
6975interface Emphasis extends Parent {
7076 type : 'emphasis'
7177 children : Array < Phrasing >
7278}
7379
80+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
7481interface Text extends Literal {
7582 type : 'text'
7683 value : string
0 commit comments