mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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.
20 lines
549 B
TypeScript
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;
|
|
}
|