diff options
| author | ST-DDT <[email protected]> | 2023-11-21 00:23:16 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-20 23:23:16 +0000 |
| commit | 808aa82f3f86a0b25f272c0c1760115a0920b614 (patch) | |
| tree | 94a4485ebd3933b710b9280fe8f68c2d041d4adb /src/modules/datatype | |
| parent | 96195673448e9b56ea330a1d02ff63374a11ca8b (diff) | |
| download | faker-808aa82f3f86a0b25f272c0c1760115a0920b614.tar.xz faker-808aa82f3f86a0b25f272c0c1760115a0920b614.zip | |
docs: consistent @see jsdoc tags (#2473)
Diffstat (limited to 'src/modules/datatype')
| -rw-r--r-- | src/modules/datatype/index.ts | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/modules/datatype/index.ts b/src/modules/datatype/index.ts index ad0b5489..f46cfc0b 100644 --- a/src/modules/datatype/index.ts +++ b/src/modules/datatype/index.ts @@ -22,8 +22,8 @@ export class DatatypeModule extends SimpleModuleBase { * * @throws When options define `max < min`. * - * @see faker.number.int() for the default precision of `1` - * @see faker.number.float() for a custom precision + * @see faker.number.int(): For generating a random integer. + * @see faker.number.float(): For generating a random floating-point number. * * @example * faker.datatype.number() // 55422 @@ -85,7 +85,7 @@ export class DatatypeModule extends SimpleModuleBase { * @param options.max Upper bound for generated number. Defaults to `min + 99999`. * @param options.precision Precision of the generated number. Defaults to `0.01`. * - * @see faker.number.float() + * @see faker.number.float(): For the replacement method. * * @example * faker.datatype.float() // 51696.36 @@ -153,8 +153,8 @@ export class DatatypeModule extends SimpleModuleBase { * When not provided or larger than `8640000000000000`, `2100-01-01` is considered * as maximum generated date. Defaults to `4102444800000`. * - * @see faker.date.anytime() - * @see faker.date.between() + * @see faker.date.anytime(): For generating a random date in either the past or future. + * @see faker.date.between(): For generating a random date in between two dates. * * @example * faker.datatype.datetime() // '2089-04-17T18:03:24.956Z' @@ -216,7 +216,7 @@ export class DatatypeModule extends SimpleModuleBase { * @param options Length of the generated string or an options object. * @param options.length Length of the generated string. Max length is `2^20`. Defaults to `10`. * - * @see faker.string.sample() + * @see faker.string.sample(): For the replacement method. * * @example * faker.datatype.string() // 'Zo!.:*e>wR' @@ -257,7 +257,7 @@ export class DatatypeModule extends SimpleModuleBase { /** * Returns a UUID v4 ([Universally Unique Identifier](https://en.wikipedia.org/wiki/Universally_unique_identifier)). * - * @see faker.string.uuid() + * @see faker.string.uuid(): For the replacement method. * * @example * faker.datatype.uuid() // '4136cd0b-d90b-4af7-b485-5d1ded8db252' @@ -334,7 +334,8 @@ export class DatatypeModule extends SimpleModuleBase { * @param options.prefix Prefix for the generated number. Defaults to `'0x'`. * @param options.case Case of the generated number. Defaults to `'mixed'`. * - * @see faker.string.hexadecimal() + * @see faker.string.hexadecimal(): For generating a random hexadecimal string. + * @see faker.number.hex(): For generating a random hexadecimal number. * * @example * faker.datatype.hexadecimal() // '0xB' @@ -464,7 +465,7 @@ export class DatatypeModule extends SimpleModuleBase { * * @throws When options define `max < min`. * - * @see faker.number.bigInt() + * @see faker.number.bigInt(): For the replacement method. * * @example * faker.datatype.bigInt() // 55422n |
