diff options
| author | Eric Cheng <[email protected]> | 2022-01-28 02:29:41 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-28 08:29:41 +0100 |
| commit | 4ca61ca5b73c3cd4a0ba4094aabd492e2b7f74bf (patch) | |
| tree | 3018c021645fbccebcb78b532e087053a93f8959 /src/hacker.ts | |
| parent | 90d48da0bef125fd84fc758cebaeae4fab6c06bc (diff) | |
| download | faker-4ca61ca5b73c3cd4a0ba4094aabd492e2b7f74bf.tar.xz faker-4ca61ca5b73c3cd4a0ba4094aabd492e2b7f74bf.zip | |
fix: some return types (#307)
Diffstat (limited to 'src/hacker.ts')
| -rw-r--r-- | src/hacker.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/hacker.ts b/src/hacker.ts index ee36d814..dac9b4f6 100644 --- a/src/hacker.ts +++ b/src/hacker.ts @@ -16,7 +16,7 @@ export class Hacker { * * @method faker.hacker.abbreviation */ - abbreviation() { + abbreviation(): string { return this.faker.random.arrayElement( this.faker.definitions.hacker.abbreviation ); @@ -27,7 +27,7 @@ export class Hacker { * * @method faker.hacker.adjective */ - adjective() { + adjective(): string { return this.faker.random.arrayElement( this.faker.definitions.hacker.adjective ); @@ -38,7 +38,7 @@ export class Hacker { * * @method faker.hacker.noun */ - noun() { + noun(): string { return this.faker.random.arrayElement(this.faker.definitions.hacker.noun); } @@ -47,7 +47,7 @@ export class Hacker { * * @method faker.hacker.verb */ - verb() { + verb(): string { return this.faker.random.arrayElement(this.faker.definitions.hacker.verb); } @@ -56,7 +56,7 @@ export class Hacker { * * @method faker.hacker.ingverb */ - ingverb() { + ingverb(): string { return this.faker.random.arrayElement( this.faker.definitions.hacker.ingverb ); @@ -67,7 +67,7 @@ export class Hacker { * * @method faker.hacker.phrase */ - phrase() { + phrase(): string { const data = { abbreviation: this.abbreviation, adjective: this.adjective, |
