xxhash-wasm
Version:
A WebAssembly implementation of xxHash
14 lines (13 loc) • 397 B
TypeScript
declare module "xxhash-wasm" {
type Exports = {
h32(input: string, seed?: number): string;
h32Raw(inputBuffer: Uint8Array, seed?: number): number;
h64(input: string, seedHigh?: number, seedLow?: number): string;
h64Raw(
inputBuffer: Uint8Array,
seedHigh?: number,
seedLow?: number
): Uint8Array;
};
export default function xxhash(): Promise<Exports>;
}