mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
shortened parameter names
This commit is contained in:
14
types/through2-concurrent/index.d.ts
vendored
14
types/through2-concurrent/index.d.ts
vendored
@@ -5,19 +5,19 @@
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import * as through2 from 'through2';
|
||||
import stream = require('stream');
|
||||
import { TransformFunction, FlushCallback } from 'through2';
|
||||
import { DuplexOptions, Transform as TransformStream } from 'stream';
|
||||
|
||||
declare function through2Concurrent(transform?: through2.TransformFunction, flush?: through2.FlushCallback): stream.Transform;
|
||||
declare function through2Concurrent(opts?: through2Concurrent.Through2ConcurrentOptions, transform?: through2.TransformFunction, flush?: through2.FlushCallback): stream.Transform;
|
||||
declare function through2Concurrent(transform?: TransformFunction, flush?: FlushCallback): TransformStream;
|
||||
declare function through2Concurrent(opts?: through2Concurrent.Through2ConcurrentOptions, transform?: TransformFunction, flush?: FlushCallback): TransformStream;
|
||||
|
||||
declare namespace through2Concurrent {
|
||||
interface Through2ConcurrentOptions extends stream.DuplexOptions {
|
||||
interface Through2ConcurrentOptions extends DuplexOptions {
|
||||
maxConcurrency?: number;
|
||||
}
|
||||
|
||||
function obj(transform?: through2.TransformFunction, flush?: through2.FlushCallback): stream.Transform;
|
||||
function obj(opts?: Through2ConcurrentOptions, transform?: through2.TransformFunction, flush?: through2.FlushCallback): stream.Transform;
|
||||
function obj(transform?: TransformFunction, flush?: FlushCallback): TransformStream;
|
||||
function obj(opts?: Through2ConcurrentOptions, transform?: TransformFunction, flush?: FlushCallback): TransformStream;
|
||||
}
|
||||
|
||||
export = through2Concurrent;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import * as through2 from 'through2-concurrent';
|
||||
import stream = require('stream');
|
||||
import { Transform } from 'stream';
|
||||
|
||||
let str: stream.Transform;
|
||||
let str: Transform;
|
||||
|
||||
const transformFn = (err: any, data: any) => {};
|
||||
function flushCb(this: stream.Transform, cb: () => void) {
|
||||
function flushCb(this: Transform, cb: () => void) {
|
||||
cb();
|
||||
}
|
||||
const opts = {
|
||||
|
||||
Reference in New Issue
Block a user