-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
109 lines (109 loc) · 2.44 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
interface OptionsInteger {
min?: number;
max?: number;
}
interface OptionsFloat {
min?: number;
max?: number;
fixed?: number;
}
interface OptionsAge {
type?: string;
}
interface OptionsAnimal {
type?: string;
locale?: string;
}
interface OptionsGender {
locale?: string;
extra?: string[];
}
interface OptionsLetter {
casing?: string;
locale?: string;
}
interface OptionsString {
length?: number;
keyspace?: string;
}
interface OptionsProfession {
rank?: boolean;
locale?: string;
}
interface OptionsWord {
length?: number;
}
interface OptionsSentence {
words?: number;
}
interface OptionsParagraph {
sentences?: number;
wordsMin?: number;
wordsMax?: number;
}
interface OptionsDomain {
tld?: string;
}
interface OptionsEmail {
domain?: string;
}
interface OptionsFirstname {
locale?: string;
gender?: string;
}
interface OptionsLastname {
locale?: string;
}
interface OptionsUrl {
protocol?: string;
tld?: string;
}
interface OptionsGame {
locale?: string;
}
interface OptionsHouse {
locale?: string;
}
interface OptionsSport {
locale?: string;
}
interface OptionsComputer {
locale?: string;
}
interface OptionsCamera {
locale?: string;
}
interface OptionsFaker {
locale?: string;
}
declare class Faker {
_options?: OptionsFaker;
boolean(): boolean;
integer(options?: OptionsInteger): number;
float(options?: OptionsFloat): number;
age(options?: OptionsAge): number;
animal(options?: OptionsAnimal): string;
gender(options?: OptionsGender): string;
ip(): string;
letter(options?: OptionsLetter): string;
string(options?: OptionsString): string;
profession(options?: OptionsProfession): string;
superhero(): string;
word(options?: OptionsWord): string;
sentence(options?: OptionsSentence): string;
paragraph(options?: OptionsParagraph): string;
domain(options?: OptionsDomain): string;
url(options?: OptionsUrl): string;
browser(): string;
tld(): string;
email(options?: OptionsEmail): string;
firstName(options?: OptionsFirstname): string;
lastName(options?: OptionsLastname): string;
game(options?: OptionsGame): any;
house(options?: OptionsHouse): any;
sport(options?: OptionsSport): any;
computer(options?: OptionsComputer): any;
camera(options?: OptionsCamera): any;
blood(): any;
}
export default function faker(options?: OptionsFaker): Faker;