1
1
import type { Program } from 'estree-jsx'
2
- import type { Literal as HastLiteral } from 'hast'
3
- import type { Literal as MdastLiteral } from 'mdast'
2
+ import type { Data as HastData , Literal as HastLiteral } from 'hast'
3
+ import type { Data as MdastData , Literal as MdastLiteral } from 'mdast'
4
4
5
5
export { mdxjsEsmFromMarkdown , mdxjsEsmToMarkdown } from './lib/index.js'
6
6
@@ -14,14 +14,19 @@ export interface MdxjsEsm extends MdastLiteral {
14
14
type : 'mdxjsEsm'
15
15
16
16
/**
17
- * Data.
17
+ * Data associated with mdast MDX.js ESM .
18
18
*/
19
- data ?: {
20
- /**
21
- * Program node from estree.
22
- */
23
- estree ?: Program | null | undefined
24
- }
19
+ data ?: MdxjsEsmData | undefined
20
+ }
21
+
22
+ /**
23
+ * Info associated with mdast MDX.js ESM nodes by the ecosystem.
24
+ */
25
+ export interface MdxjsEsmData extends MdastData {
26
+ /**
27
+ * Program node from estree.
28
+ */
29
+ estree ?: Program | null | undefined
25
30
}
26
31
27
32
/**
@@ -34,14 +39,19 @@ export interface MdxjsEsmHast extends HastLiteral {
34
39
type : 'mdxjsEsm'
35
40
36
41
/**
37
- * Data.
42
+ * Data associated with hast MDX.js ESM .
38
43
*/
39
- data ?: {
40
- /**
41
- * Program node from estree.
42
- */
43
- estree ?: Program | null | undefined
44
- }
44
+ data ?: MdxjsEsmHastData | undefined
45
+ }
46
+
47
+ /**
48
+ * Info associated with hast MDX.js ESM nodes by the ecosystem.
49
+ */
50
+ export interface MdxjsEsmHastData extends MdastData {
51
+ /**
52
+ * Program node from estree.
53
+ */
54
+ estree ?: Program | null | undefined
45
55
}
46
56
47
57
// Add nodes to mdast content.
0 commit comments