Skip to content

Commit 92786c0

Browse files
committed
Fix TS: add ambient types for dompurify/marked to stabilize dev env
1 parent d52680c commit 92786c0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/types/ambient.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
declare module 'dompurify' {
2+
export interface Config { [key: string]: any }
3+
export function sanitize(dirty: string, config?: Config): string;
4+
const _default: { sanitize: typeof sanitize };
5+
export default _default;
6+
}
7+
8+
declare module 'marked' {
9+
export function parse(src: string, options?: any): string;
10+
}
11+

0 commit comments

Comments
 (0)