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

0.0.32 • Public • Published

Installation

npm install --save @types/shortid

Summary

This package contains type definitions for shortid (https://github.com/dylang/shortid).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/shortid.

index.d.ts

declare const shortid: ShortId;

export = shortid;

interface ShortId {
    (): string;
    generate: () => string;
    characters: (string: string) => string;
    isValid: (id: any) => boolean;
    worker: (integer: number) => void;
    seed: (float: number) => void;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by Sam Saint-Pettersen, and Danny Arnold.

/@types/shortid/

    Package Sidebar

    Install

    npm i @types/shortid

    Weekly Downloads

    151,274

    Version

    0.0.32

    License

    MIT

    Unpacked Size

    3.29 kB

    Total Files

    5

    Last publish

    Collaborators

    • types