From 25f2a0326b1103c8a47a06156d43d71d2d72b7fa Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Mon, 19 Feb 2024 20:32:33 +0100 Subject: docs: more jsdoc fixes (#2668) --- src/modules/finance/index.ts | 6 +++--- src/modules/helpers/index.ts | 2 +- src/modules/internet/index.ts | 10 +++++----- src/modules/location/index.ts | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'src/modules') diff --git a/src/modules/finance/index.ts b/src/modules/finance/index.ts index 4013f99f..335bac97 100644 --- a/src/modules/finance/index.ts +++ b/src/modules/finance/index.ts @@ -759,8 +759,8 @@ export class FinanceModule extends ModuleBase { /** * Generates a random credit card number. * - * @param options An options object. Defaults to `''`. - * @param options.issuer The name of the issuer (case-insensitive) or the format used to generate one. + * @param options An options object. + * @param options.issuer The name of the issuer (case-insensitive) or the format used to generate one. Defaults to `''`. * * @example * faker.finance.creditCardNumber() // '4427163488662' @@ -781,7 +781,7 @@ export class FinanceModule extends ModuleBase { * Generates a random credit card number. * * @param options An options object, the issuer or a custom format. - * @param options.issuer The name of the issuer (case-insensitive) or the format used to generate one. + * @param options.issuer The name of the issuer (case-insensitive) or the format used to generate one. Defaults to `''`. * * @example * faker.finance.creditCardNumber() // '4427163488662' diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index bd905740..36f050e8 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -1343,7 +1343,7 @@ export class HelpersModule extends SimpleHelpersModule { * faker.helpers.fake('{{person.lastName}}, {{person.firstName}} {{person.suffix}}') // 'Durgan, Noe MD' * faker.helpers.fake('This is static test.') // 'This is static test.' * faker.helpers.fake('Good Morning {{person.firstName}}!') // 'Good Morning Estelle!' - * faker.helpers.fake('You can call me at {{phone.number(!## ### #####!)}}.') // 'You can call me at 202 555 973722.' + * faker.helpers.fake('You can visit me at {{location.streetAddress(true)}}.') // 'You can visit me at 3393 Ronny Way Apt. 742.' * faker.helpers.fake('I flipped the coin and got: {{helpers.arrayElement(["heads", "tails"])}}') // 'I flipped the coin and got: tails' * faker.helpers.fake('Your PIN number is: {{string.numeric(4, {"exclude": ["0"]})}}') // 'Your PIN number is: 4834' * diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index 86b03098..df860169 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -701,11 +701,11 @@ export class InternetModule extends ModuleBase { * * @example * faker.internet.displayName() // 'Nettie_Zboncak40' - * faker.internet.displayName({ firstname 'Jeanne', lastName: 'Doe' }) // 'Jeanne98' - note surname not used. - * faker.internet.displayName({ firstname 'John', lastName: 'Doe' }) // 'John.Doe' - * faker.internet.displayName({ firstname 'Hélene', lastName: 'Müller' }) // 'Hélene_Müller11' - * faker.internet.displayName({ firstname 'Фёдор', lastName: 'Достоевский' }) // 'Фёдор.Достоевский50' - * faker.internet.displayName({ firstname '大羽', lastName: '陳' }) // '大羽.陳' + * faker.internet.displayName({ firstName: 'Jeanne', lastName: 'Doe' }) // 'Jeanne98' - note surname not used. + * faker.internet.displayName({ firstName: 'John', lastName: 'Doe' }) // 'John.Doe' + * faker.internet.displayName({ firstName: 'Hélene', lastName: 'Müller' }) // 'Hélene_Müller11' + * faker.internet.displayName({ firstName: 'Фёдор', lastName: 'Достоевский' }) // 'Фёдор.Достоевский50' + * faker.internet.displayName({ firstName: '大羽', lastName: '陳' }) // '大羽.陳' * * @since 8.0.0 */ diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index 54766d8a..fee40fd2 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -629,9 +629,9 @@ export class LocationModule extends ModuleBase { * * @example * faker.location.longitude() // -30.9501 - * faker.location.longitude({ max: 10 }) // 5.7225 - * faker.location.longitude({ max: 10, min: -10 }) // -9.6273 - * faker.location.longitude({ max: 10, min: -10, precision: 5 }) // 2.68452 + * faker.location.longitude(10) // 5.7225 + * faker.location.longitude(10, -10) // -9.6273 + * faker.location.longitude(10, -10, 5) // 2.68452 * * @since 8.0.0 * -- cgit v1.2.3