diff options
| author | ST-DDT <[email protected]> | 2024-02-05 09:39:09 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-05 08:39:09 +0000 |
| commit | acba5b7dd864ee51bc5dbc6861a2d5f3219ed5b2 (patch) | |
| tree | 5d0cd07d093535a20a0781939848b2c92dba98c3 /src/modules/number | |
| parent | acbdae73347aa9cafb253c7c51b677ca762da9c4 (diff) | |
| download | faker-acba5b7dd864ee51bc5dbc6861a2d5f3219ed5b2.tar.xz faker-acba5b7dd864ee51bc5dbc6861a2d5f3219ed5b2.zip | |
docs: missing options jsdocs (#2638)
Diffstat (limited to 'src/modules/number')
| -rw-r--r-- | src/modules/number/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts index b4137cce..9e9eb4ed 100644 --- a/src/modules/number/index.ts +++ b/src/modules/number/index.ts @@ -134,7 +134,7 @@ export class NumberModule extends SimpleModuleBase { * The maximum number of digits to appear after the decimal point, for example `2` will round to 2 decimal points. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed. */ fractionDigits?: number; - /* + /** * Deprecated alias for `multipleOf`. Only one of `multipleOf`, `precision` or `fractionDigits` should be passed. * * @deprecated Use `multipleOf` instead. @@ -156,7 +156,9 @@ export class NumberModule extends SimpleModuleBase { min = 0, max = 1, fractionDigits, + // eslint-disable-next-line deprecation/deprecation precision, + // eslint-disable-next-line deprecation/deprecation multipleOf: originalMultipleOf = precision, multipleOf = precision ?? (fractionDigits == null ? undefined : 10 ** -fractionDigits), |
