aboutsummaryrefslogtreecommitdiff
path: root/src/modules/finance
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/finance')
-rw-r--r--src/modules/finance/index.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/finance/index.ts b/src/modules/finance/index.ts
index b381e16c..ddf3fffe 100644
--- a/src/modules/finance/index.ts
+++ b/src/modules/finance/index.ts
@@ -1,7 +1,6 @@
-import type { Faker } from '../..';
import { FakerError } from '../../errors/faker-error';
-import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions';
import { deprecated } from '../../internal/deprecated';
+import { ModuleBase } from '../../internal/module-base';
import iban from './iban';
/**
@@ -37,11 +36,7 @@ export interface Currency {
*
* For blockchain related methods, use: [`bitcoinAddress()`](https://fakerjs.dev/api/finance.html#bitcoinaddress), [`ethereumAddress()`](https://fakerjs.dev/api/finance.html#ethereumaddress) and [`litecoinAddress()`](https://fakerjs.dev/api/finance.html#litecoinaddress).
*/
-export class FinanceModule {
- constructor(private readonly faker: Faker) {
- bindThisToMemberFunctions(this);
- }
-
+export class FinanceModule extends ModuleBase {
/**
* Generates a random account number.
*