@types/check-sum
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/check-sum

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

3.94 kB

Total Files

5

Last publish

Collaborators

  • types