UNPKG

@types/randomstring

Version:
48 lines (39 loc) 1.46 kB
# Installation > `npm install --save @types/randomstring` # Summary This package contains type definitions for randomstring (https://github.com/klughammer/node-randomstring). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/randomstring. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/randomstring/index.d.ts) ````ts // Type definitions for randomstring 1.1.4 // Project: https://github.com/klughammer/node-randomstring // Definitions by: Isman Usoh <https://github.com/isman-usoh/> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Randomstring { type Charset = "alphanumeric" | "alphabetic" | "numeric" | "hex" | "binary" | "octal" | string; type Capitalization = "lowercase" | "uppercase"; interface GenerateOptions { length?: number | undefined; readable?: boolean | undefined; charset?: Charset | undefined; capitalization?: Capitalization | undefined; } function generate(options?: GenerateOptions | number): string; } declare module "randomstring" { export = Randomstring; } ```` ### Additional Details * Last updated: Fri, 29 Oct 2021 23:01:24 GMT * Dependencies: none * Global values: `Randomstring` # Credits These definitions were written by [Isman Usoh](https://github.com/isman-usoh).