mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
Version Bumps (#2677)
* chore: upgraded versions * chore: linting * fix: updated snap
This commit is contained in:
Vendored
-28
@@ -1,28 +0,0 @@
|
||||
declare module "dompurify" {
|
||||
interface Config<T extends boolean> {
|
||||
ADD_TAGS?: string[];
|
||||
ALLOWED_ATTR?: string[];
|
||||
ALLOWED_TAGS?: string[];
|
||||
FORBID_TAGS?: string[];
|
||||
FORBID_ATTR?: string[];
|
||||
RETURN_DOM?: boolean;
|
||||
RETURN_DOM_FRAGMENT?: T;
|
||||
ALLOW_DATA_ATTR?: boolean;
|
||||
WHOLE_DOCUMENT?: boolean;
|
||||
SANITIZE_DOM?: boolean;
|
||||
IN_PLACE?: boolean;
|
||||
}
|
||||
|
||||
class DOMPurify<T extends boolean = true> {
|
||||
public setConfig(config: Config<T>): void;
|
||||
public sanitize(
|
||||
source: HTMLElement | string,
|
||||
config?: Config<T>
|
||||
): T extends true ? HTMLBodyElement : string;
|
||||
public addHook(name: string, callback: (node: Element) => void): void;
|
||||
}
|
||||
|
||||
export default function createDOMPurify<T extends boolean>(
|
||||
window: any
|
||||
): DOMPurify<T>;
|
||||
}
|
||||
Reference in New Issue
Block a user