fix: typings IWhiteList allow any tag name

This commit is contained in:
Zongmin Lei
2021-05-06 13:15:50 +08:00
parent 005098be59
commit a1d9b44c36

6
typings/xss.d.ts vendored
View File

@@ -24,7 +24,7 @@ declare module "xss" {
css?: {} | boolean;
}
interface IWhiteList {
interface IWhiteList extends Record<string, string[] | undefined> {
a?: string[];
abbr?: string[];
address?: string[];
@@ -51,6 +51,8 @@ declare module "xss" {
dl?: string[];
dt?: string[];
em?: string[];
figure?: string[];
figcaption?: string[];
font?: string[];
footer?: string[];
h1?: string[];
@@ -77,6 +79,8 @@ declare module "xss" {
sub?: string[];
sup?: string[];
strong?: string[];
strike?: string[];
summary?: string[];
table?: string[];
tbody?: string[];
td?: string[];