@types/hat
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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.

index.d.ts

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/hat

      Weekly Downloads

      4,824

      Version

      0.0.4

      License

      MIT

      Unpacked Size

      3.32 kB

      Total Files

      5

      Last publish

      Collaborators

      • types