Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/rusha) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installation
npm install --save @types/rusha
Summary
This package contains type definitions for rusha (https://github.com/srijs/rusha#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rusha.
index.d.ts
/// <reference types="node" />
interface Hash {
update(value: string | number[] | ArrayBuffer | Buffer): Hash;
digest(encoding?: undefined): ArrayBuffer;
digest(encoding: "hex"): string;
}
interface RushaWorkerRequest {
id: string;
data: string | number[] | ArrayBuffer | Buffer | Blob;
}
interface RushaWorkerResponse {
id: string;
hash: string;
}
interface RushaWorker extends Worker {
onmessage: ((this: RushaWorker, res: MessageEvent<RushaWorkerResponse>) => void) | null;
postMessage(req: RushaWorkerRequest): void;
terminate(): void;
}
interface Rusha {
createHash(): Hash;
createWorker(): RushaWorker;
disableWorkerBehaviour(): void;
}
declare const Rusha: Rusha;
export = Rusha;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/node
Credits
These definitions were written by Jacopo Scazzosi.