2.0.6 • Published 6 months ago

@types/uid-generator v2.0.6

Weekly downloads
795
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/uid-generator

Summary

This package contains type definitions for uid-generator (https://github.com/nwoltman/node-uid-generator).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uid-generator.

index.d.ts

// Type definitions for uid-generator 2.0
// Project: https://github.com/nwoltman/node-uid-generator
// Definitions by: KyleChine <https://github.com/kylechine>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

interface UIDGeneratorInstance {
  readonly bitSize: number;
  readonly uidLength: number;
  readonly baseEncoding: string;
  readonly base: number;
  generateSync(): string;
  generate(): Promise<string>;
  generate(cb: (error: Error|null, uid: string) => any): void;
}

interface UIDGeneratorClass {
  new (bitSize?: number, baseEncoding?: string): UIDGeneratorInstance;
  new (baseEncoding?: string): UIDGeneratorInstance;
  readonly BASE16: '0123456789abcdef';
  readonly BASE36: '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ';
  readonly BASE58: '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
  readonly BASE62: '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
  readonly BASE66: '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~';
  readonly BASE71: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!'()*-._~";
  readonly BASE94: "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
}

declare const UIDGenerator: UIDGeneratorClass;

export = UIDGenerator;

Additional Details

  • Last updated: Thu, 23 Dec 2021 23:35:57 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by KyleChine.

2.0.5

7 months ago

2.0.4

8 months ago

2.0.6

6 months ago

2.0.3

2 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago