搜索结果列表页面开发
This commit is contained in:
26
src/utils/modules.d.ts
vendored
Normal file
26
src/utils/modules.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
// markdown插件类型plantuml
|
||||
declare module 'markdown-it-plantuml' {
|
||||
import { PluginWithOptions } from 'markdown-it';
|
||||
import { RenderRule } from 'markdown-it/lib/renderer';
|
||||
declare namespace Plantuml {
|
||||
interface Options {
|
||||
closeMarker?: string;
|
||||
diagramName?: string;
|
||||
generateSource?: (umlCode: string, pluginOptions: Options) => string;
|
||||
imageFormat?: string;
|
||||
openMarker?: string;
|
||||
render?: RenderRule;
|
||||
server?: string;
|
||||
}
|
||||
}
|
||||
declare const markdownItPlantuml: PluginWithOptions<Plantuml.Options>;
|
||||
export = markdownItPlantuml;
|
||||
}
|
||||
// markdown插件类型katex
|
||||
declare module '@iktakahiro/markdown-it-katex' {
|
||||
import { KatexOptions } from 'katex';
|
||||
import { PluginWithOptions } from 'markdown-it';
|
||||
type Options = Pick<KatexOptions, 'errorColor' | 'throwOnError'>;
|
||||
declare const mathPlugin: PluginWithOptions<Options>;
|
||||
export = mathPlugin;
|
||||
}
|
||||
Reference in New Issue
Block a user