更加严格的lib&model定义

This commit is contained in:
undefined committed 2020-09-09 00:11:16 +08:00
1 parent 76b001305d
commit cd3a426ef8
8 files changed
+42 -9

No files matched your search

+6
View File
@@ -1,6 +1,12 @@
import 'hydrooj';
import TurndownService from 'turndown';
declare module 'hydrooj' {
interface Lib {
convertHTML: (str: string) => string,
}
}
const turndownService = new TurndownService({
headingStyle: 'atx',
codeBlockStyle: 'fenced',