aboutsummaryrefslogtreecommitdiff
path: root/src/modules/company
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-11-06 09:40:49 +0100
committerGitHub <[email protected]>2023-11-06 08:40:49 +0000
commit48a7af4f0470115945ab166b540d0bedc7e5eb20 (patch)
treeb6344afcc6f9fca2d16555d5e3495439952b9a57 /src/modules/company
parent358572d9e76f4cd22bfcb09c092a1eaf3a31f005 (diff)
downloadfaker-48a7af4f0470115945ab166b540d0bedc7e5eb20.tar.xz
faker-48a7af4f0470115945ab166b540d0bedc7e5eb20.zip
refactor: simplify module creation (#2485)
Diffstat (limited to 'src/modules/company')
-rw-r--r--src/modules/company/index.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/company/index.ts b/src/modules/company/index.ts
index 36144961..14fe0eba 100644
--- a/src/modules/company/index.ts
+++ b/src/modules/company/index.ts
@@ -1,6 +1,5 @@
-import type { Faker } from '../..';
-import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions';
import { deprecated } from '../../internal/deprecated';
+import { ModuleBase } from '../../internal/module-base';
/**
* Module to generate company related entries.
@@ -16,11 +15,7 @@ import { deprecated } from '../../internal/deprecated';
* - For products and commerce, use [`faker.commerce`](https://fakerjs.dev/api/commerce.html).
* - For finance-related entries, use [`faker.finance`](https://fakerjs.dev/api/finance.html).
*/
-export class CompanyModule {
- constructor(private readonly faker: Faker) {
- bindThisToMemberFunctions(this);
- }
-
+export class CompanyModule extends ModuleBase {
/**
* Returns an array with possible company name suffixes.
*