diff options
Diffstat (limited to 'src/modules/number')
| -rw-r--r-- | src/modules/number/index.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts index 87464212..85272aff 100644 --- a/src/modules/number/index.ts +++ b/src/modules/number/index.ts @@ -1,6 +1,5 @@ -import type { SimpleFaker } from '../..'; import { FakerError } from '../../errors/faker-error'; -import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions'; +import { SimpleModuleBase } from '../../internal/module-base'; /** * Module to generate numbers of any kind. @@ -16,11 +15,7 @@ import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-fu * - For numeric strings of a given length, use [`faker.string.numeric()`](https://fakerjs.dev/api/string.html#numeric). * - For credit card numbers, use [`faker.finance.creditCardNumber()`](https://fakerjs.dev/api/finance.html#creditcardnumber). */ -export class NumberModule { - constructor(private readonly faker: SimpleFaker) { - bindThisToMemberFunctions(this); - } - +export class NumberModule extends SimpleModuleBase { /** * Returns a single random integer between zero and the given max value or the given range. * The bounds are inclusive. |
