@types/byline
TypeScript definitions for byline
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/byline 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/byline

Summary

This package contains type definitions for byline (https://github.com/jahewson/node-byline).

Details

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

index.d.ts

// Type definitions for byline 4.2.1
// Project: https://github.com/jahewson/node-byline
// Definitions by: Stefan Steinhart <https://github.com/reppners>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

import stream = require("stream");
declare function bl(): bl.LineStream;
declare function bl(stream: NodeJS.ReadableStream, options?: bl.LineStreamOptions): bl.LineStream;

declare namespace bl {
    export interface LineStreamOptions extends stream.TransformOptions {
        keepEmptyLines?: boolean | undefined;
    }

    export interface LineStream extends stream.Transform {
    }

    export interface LineStreamCreatable extends LineStream {
        new(options?: LineStreamOptions): LineStream;
    }

    // TODO is it possible to declare static factory functions without name (directly on the module)
    //
    // JS:
    // // convinience API
    // module.exports = function(readStream, options) {
    //      return module.exports.createStream(readStream, options);
    // };
    //
    // TS:
    // ():LineStream; // same as createStream():LineStream
    // (stream:stream.Stream, options?:LineStreamOptions):LineStream; // same as createStream(stream, options?):LineStream

    export function createStream(): LineStream;
    export function createStream(stream: NodeJS.ReadableStream, options?: LineStreamOptions): LineStream;

    export var LineStream: LineStreamCreatable;
}

export = bl;

Additional Details

  • Last updated: Fri, 15 Sep 2023 19:06:48 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Stefan Steinhart.

Current Tags

  • 4.2.34                                ...           latest (3 years ago)
  • 4.2.31                                ...           ts2.0 (9 years ago)
  • 4.2.31                                ...           ts2.1 (9 years ago)
  • 4.2.31                                ...           ts2.2 (9 years ago)
  • 4.2.31                                ...           ts2.3 (9 years ago)
  • 4.2.31                                ...           ts2.4 (9 years ago)
  • 4.2.31                                ...           ts2.5 (9 years ago)
  • 4.2.31                                ...           ts2.6 (9 years ago)
  • 4.2.31                                ...           ts2.7 (9 years ago)
  • 4.2.31                                ...           ts2.8 (9 years ago)
  • 4.2.31                                ...           ts2.9 (9 years ago)
  • 4.2.32                                ...           ts3.0 (6 years ago)
  • 4.2.32                                ...           ts3.1 (6 years ago)
  • 4.2.32                                ...           ts3.2 (6 years ago)
  • 4.2.32                                ...           ts3.3 (6 years ago)
  • 4.2.32                                ...           ts3.4 (6 years ago)
  • 4.2.32                                ...           ts3.5 (6 years ago)
  • 4.2.33                                ...           ts3.6 (5 years ago)
  • 4.2.33                                ...           ts3.7 (5 years ago)
  • 4.2.33                                ...           ts3.8 (5 years ago)
  • 4.2.33                                ...           ts3.9 (5 years ago)
  • 4.2.33                                ...           ts4.0 (5 years ago)
  • 4.2.33                                ...           ts4.1 (5 years ago)
  • 4.2.33                                ...           ts4.2 (5 years ago)
  • 4.2.33                                ...           ts4.3 (5 years ago)
  • 4.2.33                                ...           ts4.4 (5 years ago)
  • 4.2.34                                ...           ts4.5 (3 years ago)
  • 4.2.34                                ...           ts4.6 (3 years ago)
  • 4.2.34                                ...           ts4.7 (3 years ago)
  • 4.2.34                                ...           ts4.8 (3 years ago)
  • 4.2.34                                ...           ts4.9 (3 years ago)
  • 4.2.34                                ...           ts5.0 (3 years ago)
  • 4.2.34                                ...           ts5.1 (3 years ago)
  • 4.2.34                                ...           ts5.2 (3 years ago)
  • 4.2.34                                ...           ts5.3 (3 years ago)

15 Versions

  • 4.2.34                                ...           3 years ago
  • 4.2.33                                ...           5 years ago
  • 4.2.32                                ...           6 years ago
  • 4.2.31                                ...           9 years ago
  • 4.2.30                                ...           10 years ago
  • 4.2.29                                ...           10 years ago
  • 4.2.28-alpha                                ...           10 years ago
  • 4.2.27-alpha                                ...           10 years ago
  • 4.2.26-alpha                                ...           10 years ago
  • 4.2.25-alpha                                ...           10 years ago
  • 4.2.24-alpha                                ...           10 years ago
  • 4.2.23-alpha                                ...           10 years ago
  • 4.2.22-alpha                                ...           10 years ago
  • 4.2.17-alpha                                ...           10 years ago
  • 4.2.16-alpha                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (3)

Copyright 2013 - present © cnpmjs.org | Home |