1 | // Type definitions for randomatic 3.1
|
2 | // Project: https://github.com/jonschlinkert/randomatic
|
3 | // Definitions by: Frelia <https://github.com/execfera>
|
4 | // Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
5 | // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
6 |
|
7 | /**
|
8 | * Generate randomized strings of a specified length using simple character sequences. The original generate-password.
|
9 | */
|
10 | declare function randomatic(pattern: string, length?: number, options?: randomatic.Options): string;
|
11 | declare function randomatic(length: number): string;
|
12 |
|
13 | declare namespace randomatic {
|
14 | const isCrypto: boolean;
|
15 |
|
16 | interface Options {
|
17 | chars?: string;
|
18 | exclude?: string | string[];
|
19 | }
|
20 | }
|
21 |
|
22 | export = randomatic;
|