mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
sax: SAXParser.tag is of type Tag (#41763)
https://github.com/isaacs/sax-js/blob/d65e3bb5049893aaab4aba05198b9cd335b5a1ad/lib/sax.js#L684
This commit is contained in:
committed by
Ben Lichtman
parent
d01dbee933
commit
6f02cfde41
Vendored
+2
-1
@@ -3,6 +3,7 @@
|
||||
// Definitions by: Vincent Siao (Asana, Inc.) <https://github.com/vsiao>
|
||||
// Evert Pot <https://github.com/evert>
|
||||
// Daniel Cassidy <https://github.com/djcsdy>
|
||||
// Fabian van der Veen <https://github.com/fvanderveen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
/// <reference types="node" />
|
||||
|
||||
@@ -63,7 +64,7 @@ export class SAXParser {
|
||||
closed: boolean;
|
||||
strict: boolean;
|
||||
opt: SAXOptions;
|
||||
tag: string;
|
||||
tag: Tag;
|
||||
ENTITIES: {[key: string]: string};
|
||||
|
||||
// Events
|
||||
|
||||
@@ -140,7 +140,9 @@ import fs = require("fs");
|
||||
const attrValue: string = tag.attributes["name"];
|
||||
};
|
||||
|
||||
parser.onattribute = (attr: { name: string; value: string; }) => {};
|
||||
parser.onattribute = (attr: { name: string; value: string; }) => {
|
||||
const tag: sax.Tag = parser.tag;
|
||||
};
|
||||
|
||||
parser.onend = () => {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user