aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsunadoi <[email protected]>2022-01-20 17:13:34 +0900
committerGitHub <[email protected]>2022-01-20 09:13:34 +0100
commit66aa374fc3ca958070819d7eb6b119accc01cd3d (patch)
treeaa57cda80d8dd560718845a999454866e0f5b95a
parentec4efba989c0a997ab55152697cbefbad160f562 (diff)
downloadfaker-66aa374fc3ca958070819d7eb6b119accc01cd3d.tar.xz
faker-66aa374fc3ca958070819d7eb6b119accc01cd3d.zip
fix(types): fixed exampleEmail arguments types (#241)
-rw-r--r--src/internet.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internet.ts b/src/internet.ts
index 7937e3d0..6384b155 100644
--- a/src/internet.ts
+++ b/src/internet.ts
@@ -220,7 +220,7 @@ export class Internet {
* @param firstName
* @param lastName
*/
- exampleEmail(firstName, lastName) {
+ exampleEmail(firstName?: string, lastName?: string) {
const provider = this.faker.random.arrayElement(
this.faker.definitions.internet.example_email
);