mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
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:
committed by
Masahiro Wakame
parent
3d78d9b025
commit
4b6174de5e
Vendored
+4
-4
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user