Skip to content

Pipe signature on Entry #113

@CarstenLeue

Description

@CarstenLeue

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions