Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/hat

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/hat

TypeScript definitions for hat

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.6K
increased by2.4%
Maintainers
1
Weekly downloads
 
Created
Source

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: Wed, 18 Oct 2023 01:17:35 GMT
  • Dependencies: none

Credits

These definitions were written by Miro Yovchev.

FAQs

Package last updated on 18 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc