mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from master
This commit is contained in:
19
build/lib/typings/event-stream.d.ts
vendored
19
build/lib/typings/event-stream.d.ts
vendored
@@ -1,12 +1,11 @@
|
||||
declare module "event-stream" {
|
||||
import { Stream } from 'stream';
|
||||
import { ThroughStream as _ThroughStream} from 'through';
|
||||
import { MapStream } from 'map-stream';
|
||||
import { ThroughStream as _ThroughStream } from 'through';
|
||||
import * as File from 'vinyl';
|
||||
|
||||
export interface ThroughStream extends _ThroughStream {
|
||||
queue(data: File | null);
|
||||
push(data: File | null);
|
||||
queue(data: File | null): any;
|
||||
push(data: File | null): any;
|
||||
paused: boolean;
|
||||
}
|
||||
|
||||
@@ -15,14 +14,14 @@ declare module "event-stream" {
|
||||
function concat(...stream: Stream[]): ThroughStream;
|
||||
function duplex(istream: Stream, ostream: Stream): ThroughStream;
|
||||
|
||||
function through(write?: (data: any) => void, end?: () => void,
|
||||
opts?: {autoDestroy: boolean; }): ThroughStream;
|
||||
function through(write?: (this: ThroughStream, data: any) => void, end?: (this: ThroughStream) => void,
|
||||
opts?: { autoDestroy: boolean; }): ThroughStream;
|
||||
|
||||
function readArray<T>(array: T[]): ThroughStream;
|
||||
function writeArray<T>(cb: (err:Error, array:T[]) => void): ThroughStream;
|
||||
function writeArray<T>(cb: (err: Error, array: T[]) => void): ThroughStream;
|
||||
|
||||
function mapSync<I,O>(cb: (data:I) => O): ThroughStream;
|
||||
function map<I,O>(cb: (data:I, cb:(err?:Error, data?: O)=>void) => O): ThroughStream;
|
||||
function mapSync<I, O>(cb: (data: I) => O): ThroughStream;
|
||||
function map<I, O>(cb: (data: I, cb: (err?: Error, data?: O) => void) => O): ThroughStream;
|
||||
|
||||
function readable(asyncFunction: Function): MapStream;
|
||||
function readable(asyncFunction: (this: ThroughStream, ...args: any[]) => any): any;
|
||||
}
|
||||
Reference in New Issue
Block a user