Nonviolent Pirate Mobster

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

    1.0.1 • Public • Published

    Installation

    npm install --save @types/split

    Summary

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

    Details

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

    index.d.ts

    // Type definitions for split v1.0.1
    // Project: https://github.com/dominictarr/split
    // Definitions by: Marcin Porębski <https://github.com/marcinporebski>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /// <reference types="node" />
    /// <reference types="through" />
    
    import { ThroughStream } from 'through';
    
    // doc-strings taken from https://github.com/dominictarr/split, used under MIT license
    
    interface SplitOptions {
        maxLength: number;
        /**
         * By default the last buffer not delimited by a newline or `matcher` will be emitted.
         * To prevent this set `options.trailing` to `false`.
         */
        trailing?: boolean;
    }
    
    declare function split(matcher?: any, mapper?: any, options?: SplitOptions): ThroughStream;
    
    export = split;

    Additional Details

    Credits

    These definitions were written by Marcin Porębski.

    Keywords

    none

    Install

    npm i @types/split

    DownloadsWeekly Downloads

    19,510

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.26 kB

    Total Files

    4

    Last publish

    Collaborators

    • types