fix: typings onTag options

This commit is contained in:
Zongmin Lei
2021-05-06 13:22:53 +08:00
parent 82cb63f0fe
commit 3e153f585d

7
typings/xss.d.ts vendored
View File

@@ -97,7 +97,12 @@ declare module "xss" {
type OnTagHandler = (
tag: string,
html: string,
options: {}
options: {
sourcePosition?: number;
position?: number;
isClosing?: boolean;
isWhite?: boolean;
}
) => string | void;
type OnTagAttrHandler = (