Added some comments to the changes in sax.d.ts

This commit is contained in:
Marco
2016-02-21 20:56:14 +01:00
parent ac01b090ae
commit 4f6567dfa7
+1 -8
View File
@@ -32,6 +32,7 @@ declare module "sax" {
isSelfClosing: boolean;
}
// Interface used when the xmlns option is set
export interface QualifiedTag extends QualifiedName, BaseTag {
ns: { [key: string]: string };
attributes: { [key: string]: Attribute };
@@ -41,14 +42,6 @@ declare module "sax" {
attributes: { [key: string]: string };
}
// export interface Tag extends BaseTag {
// // If opt.xmlns available
// ns?: { [key: string]: string };
// // If opt.xmlns available, the attributes map value is an object type
// attributes: { [key: string]: string | Attribute };
// isSelfClosing: boolean;
// }
export function parser(strict: boolean, opt: SAXOptions): SAXParser;
export class SAXParser {
constructor(strict: boolean, opt: SAXOptions);