Update sanitize-html.d.ts (#10782)

Allow 'allowed{Attributes,Classes,Schemes,Tags}: false' to indicate we don't want filtering of the given kind.
This commit is contained in:
David Godfrey
2016-08-29 23:30:46 +09:00
committed by Masahiro Wakame
parent 3d78d9b025
commit 4b6174de5e
+4 -4
View File
@@ -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[];