File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
- import { Buffer , SyntaxExtension } from 'micromark/dist/shared-types'
2
- import { Root } from "mdast"
1
+ import { Buffer , SyntaxExtension , Token } from 'micromark/dist/shared-types'
2
+ import { Root } from 'mdast'
3
+ import { Type } from 'micromark/dist/constant/types'
3
4
4
5
export default fromMarkdown
5
6
6
7
export interface MdastExtension {
7
- enter : unknown
8
- exit : unknown
8
+ enter : Record < Type , ( token : Token ) => void >
9
+ exit : Record < Type , ( token : Token ) => void >
9
10
}
10
11
11
-
12
12
interface Options {
13
- extensions ?: SyntaxExtension [ ] ,
14
- mdastExtensions ?: MdastExtension [ ] ,
13
+ extensions ?: SyntaxExtension [ ]
14
+ mdastExtensions ?: MdastExtension [ ]
15
15
}
16
16
17
17
declare function fromMarkdown ( value : string | Buffer , options ?: Options ) : Root
@@ -21,4 +21,3 @@ declare function fromMarkdown(
21
21
encoding ?: BufferEncoding ,
22
22
options ?: Options
23
23
) : Root
24
-
You can’t perform that action at this time.
0 commit comments