1.0.4 • Published 6 months ago

@types/xml-flow v1.0.4

Weekly downloads
108
License
MIT
Repository
github
Last release
6 months ago

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.

1.0.2

8 months ago

1.0.4

6 months ago

1.0.3

7 months ago

1.0.1

3 years ago

1.0.0

3 years ago