Skip to content

Commit f5b3716

Browse files
authored
feat: 添加类型声明文件以支持插件模块 (#1496)
1 parent 33107ee commit f5b3716

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

packages/cherry-markdown/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
],
3636
"files": [
3737
"types/codemirror.d.ts",
38-
"types/global.d.ts"
38+
"types/global.d.ts",
39+
"types/index.d.ts"
3940
]
4041
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
declare module 'cherry-markdown/dist/addons/cherry-code-block-mermaid-plugin' {
2+
const plugin: any;
3+
export default plugin;
4+
}
5+
6+
declare module 'cherry-markdown/dist/addons/cherry-code-block-plantuml-plugin' {
7+
const plugin: any;
8+
export default plugin;
9+
}

0 commit comments

Comments
 (0)