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: Wed, 18 Oct 2023 01:17:35 GMT
- Dependencies: none
Credits
These definitions were written by Miro Yovchev.