DefinitelyTyped/types/randomstring/index.d.ts
Nathan Shively-Sanders 4874667de9 Fix primitive weak type errors
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4
will catch weak type errors with primitives, so this PR fixes those
now-caught errors.
2017-06-15 11:46:46 -07:00

20 lines
549 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 | number): string;
}
declare module "randomstring" {
export = Randomstring;
}