mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2025-02-07 07:22:51 -05:00
39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
// 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 path="../node/node.d.ts" />
|
|
|
|
declare module "byline" {
|
|
import stream = require("stream");
|
|
|
|
export interface LineStreamOptions extends stream.TransformOptions {
|
|
keepEmptyLines?: boolean;
|
|
}
|
|
|
|
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;
|
|
}
|