We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98a2f90 commit 9d0a95cCopy full SHA for 9d0a95c
packages/hash-stream-node/src/fileStreamHasher.ts
@@ -4,10 +4,7 @@ import { Readable } from "stream";
4
5
import { HashCalculator } from "./HashCalculator";
6
7
-export const fileStreamHasher: StreamHasher<Readable> = (
8
- hashCtor: HashConstructor,
9
- fileStream: Readable
10
-): Promise<Uint8Array> =>
+export const fileStreamHasher: StreamHasher<Readable> = (hashCtor: HashConstructor, fileStream: Readable) =>
11
new Promise((resolve, reject) => {
12
if (!isReadStream(fileStream)) {
13
reject(new Error("Unable to calculate hash for non-file streams."));
0 commit comments