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

1.0.4 • 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

/// <reference types="node" />

import { EventEmitter } from "events";
import { Readable } from "stream";

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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Chris Lount.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/xml-flow

Weekly Downloads

4,823

Version

1.0.4

License

MIT

Unpacked Size

4.59 kB

Total Files

5

Last publish

Collaborators

  • types