mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
484 B
TypeScript
16 lines
484 B
TypeScript
// Type definitions for buffer-crc32 0.2
|
|
// Project: https://github.com/brianloveswords/buffer-crc32
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
export = crc32;
|
|
|
|
declare function crc32(input: string | Buffer, partialCrc?: Buffer): Buffer;
|
|
|
|
declare namespace crc32 {
|
|
function signed(buffer: Buffer): number;
|
|
function unsigned(buffer: Buffer): number;
|
|
}
|