mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
SQL Operations Studio Public Preview 1 (0.23) release source code
This commit is contained in:
38
build/lib/typings/through2.d.ts
vendored
Normal file
38
build/lib/typings/through2.d.ts
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
// Type definitions for through2 v 2.0.0
|
||||
// Project: https://github.com/rvagg/through2
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, jedmao <https://github.com/jedmao>, Georgios Valotasios <https://github.com/valotas>, Ben Chauvette <https://github.com/bdchauvette>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module 'through2' {
|
||||
|
||||
import stream = require('stream');
|
||||
|
||||
type TransformCallback = (err?: any, data?: any) => void;
|
||||
type TransformFunction = (chunk: any, enc: string, callback: TransformCallback) => void;
|
||||
type FlushCallback = (flushCallback: () => void) => void;
|
||||
|
||||
function through2(transform?: TransformFunction, flush?: FlushCallback): stream.Transform;
|
||||
|
||||
function through2(opts?: stream.DuplexOptions, transform?: TransformFunction, flush?: FlushCallback): stream.Transform;
|
||||
|
||||
namespace through2 {
|
||||
export interface Through2Constructor extends stream.Transform {
|
||||
new(opts?: stream.DuplexOptions): stream.Transform;
|
||||
(opts?: stream.DuplexOptions): stream.Transform;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenvience method for creating object streams
|
||||
*/
|
||||
export function obj(transform?: TransformFunction, flush?: FlushCallback): stream.Transform;
|
||||
|
||||
/**
|
||||
* Creates a constructor for a custom Transform. This is useful when you
|
||||
* want to use the same transform logic in multiple instances.
|
||||
*/
|
||||
export function ctor(opts?: stream.DuplexOptions, transfrom?: TransformFunction, flush?: FlushCallback): Through2Constructor;
|
||||
}
|
||||
|
||||
export = through2;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user