diff --git a/sax/index.d.ts b/sax/index.d.ts index c17ebd6928..4c556d8aab 100644 --- a/sax/index.d.ts +++ b/sax/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for sax js +// Type definitions for sax-js 1.x // Project: https://github.com/isaacs/sax-js // Definitions by: Asana // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -63,6 +63,7 @@ export declare class SAXParser { strict: boolean; opt: SAXOptions; tag: string; + ENTITIES: {[key: string]: string}; // Events onerror(e: Error): void; diff --git a/sax/sax-tests.ts b/sax/sax-tests.ts index 353ead08e0..4d9a90293d 100644 --- a/sax/sax-tests.ts +++ b/sax/sax-tests.ts @@ -13,6 +13,8 @@ import fs = require("fs"); let parser = sax.parser(/*strict=*/true, opts); + parser.ENTITIES["foo"] = "bar"; + parser.onerror = function(e: Error) { };