node-unzip icon indicating copy to clipboard operation
node-unzip copied to clipboard

Pipe signature on Entry

Open CarstenLeue opened this issue 7 years ago • 0 comments

The typescript signature for Entry is:

export interface Entry {
    path: string;
    type: 'Directory' | 'File';
    size: number;
    pipe: (stream: NodeJS.WritableStream) => void;
    autodrain: () => void;
}

I think that it should be

export interface Entry {
    path: string;
    type: 'Directory' | 'File';
    size: number;
    pipe: <T extends NodeJS.WritableStream>(stream: T) => T;
    autodrain: () => void;
}

CarstenLeue avatar Feb 17 '18 18:02 CarstenLeue