mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
540 B
TypeScript
20 lines
540 B
TypeScript
// 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 {
|
|
interface GenerateOptions {
|
|
length?: number;
|
|
readable?: boolean;
|
|
charset?: string;
|
|
capitalization?: string;
|
|
}
|
|
|
|
function generate(options?: GenerateOptions): string;
|
|
}
|
|
|
|
declare module "randomstring" {
|
|
export = Randomstring;
|
|
}
|