xmlapi
Version:
a common interface for Node and browser native XML APIs
11 lines (10 loc) • 608 B
TypeScript
export declare const NS_XML = "http://www.w3.org/XML/1998/namespace";
export declare function wrappedOrNull<T>(ctor: {
new (val): T;
}, val: any): T;
/** class decorator, see http://www.typescriptlang.org/docs/handbook/mixins.html */
export declare function mixin(...baseCtors: any[]): (derivedCtor: any) => void;
export declare function countGenerated<T>(generator: Iterator<T>): number;
export declare function ithGenerated<T>(generator: Iterator<T>, index: number): T;
export declare function isOddball(value: any): boolean;
export declare function prettify(xmlstr: string, gentle?: boolean): string;