File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import type { Options , PresetName } from 'markdown-it'
2
2
import MarkdownIt from 'markdown-it'
3
3
4
- export type PluginSimple = ( md : MarkdownItAsync ) => void
5
- export type PluginWithOptions < T = any > = ( md : MarkdownItAsync , options ?: T ) => void
6
- export type PluginWithParams = ( md : MarkdownItAsync , ...params : any [ ] ) => void
4
+ export type PluginSimple = ( ( md : MarkdownItAsync ) => void ) | MarkdownIt . PluginSimple
5
+ export type PluginWithOptions < T = any > = ( ( md : MarkdownItAsync , options ?: T ) => void ) | MarkdownIt . PluginWithOptions < T >
6
+ export type PluginWithParams = ( ( md : MarkdownItAsync , ...params : any [ ] ) => void ) | MarkdownIt . PluginWithParams
7
7
8
8
export interface MarkdownItAsyncOptions extends Omit < Options , 'highlight' > {
9
9
/**
You can’t perform that action at this time.
0 commit comments