Skip to content

Commit 56c6755

Browse files
committed
chore: fix types
1 parent d235a51 commit 56c6755

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/index.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
import type { Options, PresetName } from 'markdown-it'
1+
import type {
2+
PluginSimple as MarkdownItPluginSimple,
3+
PluginWithOptions as MarkdownItPluginWithOptions,
4+
PluginWithParams as MarkdownItPluginWithParams,
5+
Options,
6+
PresetName,
7+
} from 'markdown-it'
28
import MarkdownIt from 'markdown-it'
39

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
10+
export type PluginSimple = ((md: MarkdownItAsync) => void) | MarkdownItPluginSimple
11+
export type PluginWithOptions<T = any> = ((md: MarkdownItAsync, options?: T) => void) | MarkdownItPluginWithOptions<T>
12+
export type PluginWithParams = ((md: MarkdownItAsync, ...params: any[]) => void) | MarkdownItPluginWithParams
713

814
export interface MarkdownItAsyncOptions extends Omit<Options, 'highlight'> {
915
/**

0 commit comments

Comments
 (0)