-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
30 lines (28 loc) · 1.07 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Type definitions for password-generator v2.0.2
// Project: https://github.com/bermi/password-generator
// Definitions by: Maxime LUCE <https://github.com/SomaticIT>
// Definitions: https://github.com/typed-contrib/password-generator
/**
* Generate a memorable password with default settings (10 letters)
*/
declare function generatePassword(): string;
/**
* Generate a memorable password of given length
*/
declare function generatePassword(length: number): string;
/**
* Generate a password of given length.
* Allow to disable memorability
*/
declare function generatePassword(length: number, memorable: boolean): string;
/**
* Generate a password of given length and with given pattern
* Allow to disable memorability
*/
declare function generatePassword(length: number, memorable: boolean, pattern: RegExp): string;
/**
* Generate a prefixed password of given length and with given pattern and prefix
* Allow to disable memorability
*/
declare function generatePassword(length: number, memorable: boolean, pattern: RegExp, prefix: string): string;
export = generatePassword;