Skip to content

Commit

Permalink
fix: some return types (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
import-brain authored Jan 28, 2022
1 parent 90d48da commit 4ca61ca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Database {
*
* @method faker.database.column
*/
column() {
column(): string {
return this.faker.random.arrayElement(
this.faker.definitions.database.column
);
Expand All @@ -49,7 +49,7 @@ export class Database {
*
* @method faker.database.type
*/
type() {
type(): string {
return this.faker.random.arrayElement(this.faker.definitions.database.type);
}

Expand All @@ -58,7 +58,7 @@ export class Database {
*
* @method faker.database.collation
*/
collation() {
collation(): string {
return this.faker.random.arrayElement(
this.faker.definitions.database.collation
);
Expand All @@ -69,7 +69,7 @@ export class Database {
*
* @method faker.database.engine
*/
engine() {
engine(): string {
return this.faker.random.arrayElement(
this.faker.definitions.database.engine
);
Expand Down
6 changes: 3 additions & 3 deletions src/finance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class Finance {
*
* @method faker.finance.currencyCode
*/
currencyCode() {
currencyCode(): string {
// TODO @Shinigami92 2022-01-14: missing second parameter
// @ts-expect-error
return this.faker.random.objectElement(
Expand All @@ -166,7 +166,7 @@ export class Finance {
*
* @method faker.finance.currencyName
*/
currencyName() {
currencyName(): string {
return this.faker.random.objectElement(
this.faker.definitions.finance.currency,
'key'
Expand All @@ -178,7 +178,7 @@ export class Finance {
*
* @method faker.finance.currencySymbol
*/
currencySymbol() {
currencySymbol(): string {
let symbol;

while (!symbol) {
Expand Down
12 changes: 6 additions & 6 deletions src/hacker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class Hacker {
*
* @method faker.hacker.abbreviation
*/
abbreviation() {
abbreviation(): string {
return this.faker.random.arrayElement(
this.faker.definitions.hacker.abbreviation
);
Expand All @@ -27,7 +27,7 @@ export class Hacker {
*
* @method faker.hacker.adjective
*/
adjective() {
adjective(): string {
return this.faker.random.arrayElement(
this.faker.definitions.hacker.adjective
);
Expand All @@ -38,7 +38,7 @@ export class Hacker {
*
* @method faker.hacker.noun
*/
noun() {
noun(): string {
return this.faker.random.arrayElement(this.faker.definitions.hacker.noun);
}

Expand All @@ -47,7 +47,7 @@ export class Hacker {
*
* @method faker.hacker.verb
*/
verb() {
verb(): string {
return this.faker.random.arrayElement(this.faker.definitions.hacker.verb);
}

Expand All @@ -56,7 +56,7 @@ export class Hacker {
*
* @method faker.hacker.ingverb
*/
ingverb() {
ingverb(): string {
return this.faker.random.arrayElement(
this.faker.definitions.hacker.ingverb
);
Expand All @@ -67,7 +67,7 @@ export class Hacker {
*
* @method faker.hacker.phrase
*/
phrase() {
phrase(): string {
const data = {
abbreviation: this.abbreviation,
adjective: this.adjective,
Expand Down

0 comments on commit 4ca61ca

Please sign in to comment.