1
1
import type { Literal } from 'mdast'
2
2
import type { Program } from 'estree-jsx'
3
3
4
- /* eslint-disable @typescript-eslint/consistent-type-definitions */
4
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
5
5
export interface MdxFlowExpression extends Literal {
6
6
type : 'mdxFlowExpression'
7
7
data ?: {
8
8
estree ?: Program
9
9
} & Literal [ 'data' ]
10
10
}
11
11
12
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
12
13
export interface MdxTextExpression extends Literal {
13
14
type : 'mdxTextExpression'
14
15
data ?: {
@@ -17,24 +18,27 @@ export interface MdxTextExpression extends Literal {
17
18
}
18
19
19
20
declare module 'mdast' {
21
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
20
22
interface StaticPhrasingContentMap {
21
23
mdxTextExpression : MdxTextExpression
22
24
}
23
25
26
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
24
27
interface BlockContentMap {
25
28
mdxFlowExpression : MdxFlowExpression
26
29
}
27
30
}
28
31
29
32
declare module 'hast' {
33
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
30
34
interface RootContentMap {
31
35
mdxTextExpression : MdxTextExpression
32
36
mdxFlowExpression : MdxFlowExpression
33
37
}
34
38
39
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
35
40
interface ElementContentMap {
36
41
mdxTextExpression : MdxTextExpression
37
42
mdxFlowExpression : MdxFlowExpression
38
43
}
39
44
}
40
- /* eslint-enable @typescript-eslint/consistent-type-definitions */
0 commit comments