Installation
npm install --save @types/hash-stream
Summary
This package contains type definitions for hash-stream (https://github.com/stream-utils/hash-stream#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hash-stream.
index.d.ts
/// <reference types="node" />
import * as stream from "stream";
export = hashStream;
declare function hashStream(
stream: stream.Readable,
algorithm: string,
callback?: (error: any, hash: Buffer) => void,
): Promise<Buffer>;
declare function hashStream(
filename: string,
algorithm: string,
callback?: (error: Error | null, hash: Buffer) => void,
): Promise<Buffer>;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/node
Credits
These definitions were written by BendingBender.