thedesk/app/node_modules/builder-util-runtime/out/ProgressCallbackTransform.d.ts

23 lines
738 B
TypeScript
Raw Permalink Normal View History

2019-09-13 00:38:13 +10:00
/// <reference types="node" />
import { Transform } from "stream";
import { CancellationToken } from "./CancellationToken";
export interface ProgressInfo {
total: number;
delta: number;
transferred: number;
percent: number;
bytesPerSecond: number;
}
export declare class ProgressCallbackTransform extends Transform {
private readonly total;
private readonly cancellationToken;
private readonly onProgress;
private start;
private transferred;
private delta;
private nextUpdate;
constructor(total: number, cancellationToken: CancellationToken, onProgress: (info: ProgressInfo) => any);
_transform(chunk: any, encoding: string, callback: any): void;
_flush(callback: any): void;
}