Installation
npm install --save @types/check-sum
Summary
This package contains type definitions for check-sum (https://github.com/stream-utils/check-sum).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/check-sum.
index.d.ts
/// <reference types="node" />
import { Readable } from "stream";
export = checksum;
declare function checksum(
stream: Readable,
hashes: checksum.Hashes,
callback: (error: checksum.ChecksumError | any) => void,
): (fn: () => void) => void;
declare function checksum(
path: string,
hashes: checksum.Hashes,
callback: (error: checksum.ChecksumError | Error | undefined) => void,
): (fn: () => void) => void;
declare namespace checksum {
interface ChecksumError {
algorithm: string;
expected: string;
actual: string;
}
interface Hashes {
[algorithm: string]: string | Buffer;
}
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/node
Credits
These definitions were written by BendingBender.