From 4b6174de5ecccc33cb02a120ae5b9c51eb0fd08a Mon Sep 17 00:00:00 2001 From: David Godfrey Date: Mon, 29 Aug 2016 15:30:46 +0100 Subject: [PATCH] Update sanitize-html.d.ts (#10782) Allow 'allowed{Attributes,Classes,Schemes,Tags}: false' to indicate we don't want filtering of the given kind. --- sanitize-html/sanitize-html.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sanitize-html/sanitize-html.d.ts b/sanitize-html/sanitize-html.d.ts index a2f27430fe..7f640315f8 100644 --- a/sanitize-html/sanitize-html.d.ts +++ b/sanitize-html/sanitize-html.d.ts @@ -35,10 +35,10 @@ declare namespace sanitize { interface IOptions { - allowedAttributes?: { [index: string]: string[] }; - allowedClasses?: { [index: string]: string[] }; - allowedSchemes?: string[]; - allowedTags?: string[]; + allowedAttributes?: { [index: string]: string[] } | boolean; + allowedClasses?: { [index: string]: string[] } | boolean; + allowedSchemes?: string[] | boolean; + allowedTags?: string[] | boolean; exclusiveFilter?: (frame: IFrame) => boolean; nonTextTags?: string[]; selfClosing?: string[];