Skip to content

Commit 5de1894

Browse files
authored
🤖 Merge PR DefinitelyTyped#72103 [sanitize-html] add type for new exclusiveFilter feature by @rChaoz
1 parent 6820c93 commit 5de1894

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎types/sanitize-html/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ declare namespace sanitize {
6161
allowedTags?: string[] | false | undefined;
6262
allowVulnerableTags?: boolean | undefined;
6363
textFilter?: ((text: string, tagName: string) => string) | undefined;
64-
exclusiveFilter?: ((frame: IFrame) => boolean) | undefined;
64+
exclusiveFilter?: ((frame: IFrame) => boolean | "excludeTag") | undefined;
6565
nestingLimit?: number | undefined;
6666
nonTextTags?: string[] | undefined;
6767
/** @default true */

‎types/sanitize-html/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/sanitize-html",
4-
"version": "2.13.9999",
4+
"version": "2.15.9999",
55
"projects": [
66
"https://github.com/punkave/sanitize-html"
77
],

0 commit comments

Comments
 (0)