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

    1.0.1 • Public • Published

    Installation

    npm install --save @types/xml-flow

    Summary

    This package contains type definitions for xml-flow (https://github.com/matthewmatician/xml-flow).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xml-flow.

    index.d.ts

    // Type definitions for xml-flow 1.0
    // Project: https://github.com/matthewmatician/xml-flow
    // Definitions by: Chris Lount <https://github.com/Warerebel>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // Minimum TypeScript Version: 3.8
    
    /// <reference types="node" />
    
    import { Readable } from "stream";
    import { EventEmitter } from "events";
    
    declare function flow(infile: Readable, options?: flow.parserOptions): EventEmitter;
    
    declare namespace flow {
        const NEVER = -1;
        const SOMETIMES = 0;
        const ALWAYS = 1;
    
        interface parserOptions {
            preserveMarkup?: typeof NEVER | typeof SOMETIMES | typeof ALWAYS | undefined;
            simplifyNodes?: boolean | undefined;
            useArrays?: typeof NEVER | typeof SOMETIMES | typeof ALWAYS | undefined;
            lowercase?: boolean | undefined;
            trim?: boolean | undefined;
            normalize?: boolean | undefined;
            cdataAsText?: boolean | undefined;
            strict?: boolean | undefined;
        }
        interface toXmlOptions {
            indent?: string | undefined;
            selfClosing?: boolean | undefined;
            escape?: ((s: string) => string) | undefined;
        }
        function toXml(obj: object, options?: toXmlOptions): string;
    }
    
    export = flow;

    Additional Details

    • Last updated: Fri, 02 Jul 2021 17:02:20 GMT
    • Dependencies: @types/node
    • Global values: none

    Credits

    These definitions were written by Chris Lount.

    Keywords

    none

    Install

    npm i @types/xml-flow

    DownloadsWeekly Downloads

    209

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.13 kB

    Total Files

    4

    Last publish

    Collaborators

    • types