The options argument is optional in the SAX package.

This commit is contained in:
Evert Pot
2018-06-16 13:15:24 -07:00
parent 10fe633823
commit abeebaf68e

View File

@@ -1,6 +1,7 @@
// Type definitions for sax-js 1.x
// Project: https://github.com/isaacs/sax-js
// Definitions by: Asana <https://asana.com>
// Evert Pot <https://evertpot.com/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
@@ -44,7 +45,7 @@ export interface Tag extends BaseTag {
export declare function parser(strict: boolean, opt: SAXOptions): SAXParser;
export declare class SAXParser {
constructor(strict: boolean, opt: SAXOptions);
constructor(strict: boolean, opt?: SAXOptions);
// Methods
end(): void;