From 2dd8b42fd965d23d969e2382f12fd9d87db2cc8c Mon Sep 17 00:00:00 2001 From: Will Gibson Date: Thu, 30 Aug 2018 10:34:29 +0100 Subject: [PATCH] Use htmlparser2's Options --- types/sanitize-html/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/sanitize-html/index.d.ts b/types/sanitize-html/index.d.ts index 8ec8e05901..88959fa0c6 100644 --- a/types/sanitize-html/index.d.ts +++ b/types/sanitize-html/index.d.ts @@ -7,6 +7,8 @@ // Will Gibson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +import {Options} from "htmlparser2"; + export = sanitize; declare function sanitize(dirty: string, options?: sanitize.IOptions): string; @@ -52,7 +54,7 @@ declare namespace sanitize { nonTextTags?: string[]; selfClosing?: string[]; transformTags?: { [tagName: string]: string | Transformer }; - parser: {}; + parser: Options; }