mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 14:30:49 +08:00
The options argument is optional in the SAX package.
This commit is contained in:
3
types/sax/index.d.ts
vendored
3
types/sax/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user