mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
更加严格的lib&model定义
This commit is contained in:
1 parent
76b001305d
commit
cd3a426ef8
8 files changed
+42
-9
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user