@types/xmldom
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.31 • Public • Published

    Installation

    npm install --save @types/xmldom

    Summary

    This package contains type definitions for xmldom (https://github.com/xmldom/xmldom).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmldom.

    index.d.ts

    // Type definitions for xmldom 0.1.22
    // Project: https://github.com/xmldom/xmldom
    // Definitions by: Qubo <https://github.com/tkqubo>
    //                 Karfau <https://github.com/karfau>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    /// <reference lib="dom" />
    
    declare namespace xmldom {
        var DOMParser: DOMParserStatic;
        var XMLSerializer: XMLSerializerStatic;
        var DOMImplementation: DOMImplementationStatic;
    
        interface DOMImplementationStatic {
            new(): DOMImplementation;
        }
    
        interface DOMParserStatic {
            new (): DOMParser;
            new (options: Options): DOMParser;
        }
    
        interface XMLSerializerStatic {
            new (): XMLSerializer;
        }
    
        interface DOMParser {
            parseFromString(xmlsource: string, mimeType?: string): Document;
        }
    
        interface XMLSerializer {
            serializeToString(node: Node): string;
        }
    
        interface Options {
            locator?: any;
            errorHandler?: ErrorHandlerFunction | ErrorHandlerObject | undefined;
        }
    
        interface ErrorHandlerFunction {
            (level: string, msg: any): any;
        }
    
        interface ErrorHandlerObject {
            warning?: ((msg: any) => any) | undefined;
            error?: ((msg: any) => any) | undefined;
            fatalError?: ((msg: any) => any) | undefined;
        }
    }
    
    export = xmldom;

    Additional Details

    • Last updated: Fri, 02 Jul 2021 17:02:22 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by Qubo, and Karfau.

    Keywords

    none

    Install

    npm i @types/xmldom

    DownloadsWeekly Downloads

    181,933

    Version

    0.1.31

    License

    MIT

    Unpacked Size

    5.35 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar