4.2.36 • Published 6 months ago
@types/byline v4.2.36
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: Tue, 06 Jul 2021 18:05:47 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Stefan Steinhart.
4.2.34
8 months ago
4.2.35
7 months ago
4.2.36
6 months ago
4.2.33
3 years ago
4.2.32
4 years ago
4.2.31
8 years ago
4.2.30
8 years ago
4.2.29
8 years ago
4.2.28-alpha
8 years ago
4.2.27-alpha
8 years ago
4.2.26-alpha
8 years ago
4.2.25-alpha
8 years ago
4.2.24-alpha
8 years ago
4.2.23-alpha
8 years ago
4.2.22-alpha
8 years ago
4.2.17-alpha
8 years ago
4.2.16-alpha
8 years ago