Installation
npm install --save @types/hat
Summary
This package contains type definitions for hat (https://github.com/substack/node-hat).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hat.
interface HatsList {
[key: string]: any;
}
interface Rack {
bits: number;
base: number;
hats: HatsList;
(data?: any): string;
get(id: string): any;
set(id: string, value: any): Rack;
}
type CreateRack = (bits?: number, base?: number, expandBy?: number) => Rack;
interface Hat {
(bits?: number, base?: number): string;
rack: CreateRack;
}
declare const hat: Hat;
export = hat;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Miro Yovchev.