Make parser optional

This commit is contained in:
Tiffany Le-Nguyen
2018-09-05 15:44:20 -04:00
committed by GitHub
parent 83b529136c
commit 57e91d52dc
+2 -1
View File
@@ -5,6 +5,7 @@
// BehindTheMath <https://github.com/BehindTheMath>
// Rinze de Laat <https://github.com/biermeester>
// Will Gibson <https://github.com/WillGibson>
// A penguin <https://github.com/sirMerr>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {Options} from "htmlparser2";
@@ -54,7 +55,7 @@ declare namespace sanitize {
nonTextTags?: string[];
selfClosing?: string[];
transformTags?: { [tagName: string]: string | Transformer };
parser: Options;
parser?: Options;
}