aboutsummaryrefslogtreecommitdiff
path: root/src/modules/airline
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/airline
parent358572d9e76f4cd22bfcb09c092a1eaf3a31f005 (diff)
downloadfaker-48a7af4f0470115945ab166b540d0bedc7e5eb20.tar.xz
faker-48a7af4f0470115945ab166b540d0bedc7e5eb20.zip
refactor: simplify module creation (#2485)
Diffstat (limited to 'src/modules/airline')
-rw-r--r--src/modules/airline/index.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/modules/airline/index.ts b/src/modules/airline/index.ts
index f6d2fdc7..f0ada30c 100644
--- a/src/modules/airline/index.ts
+++ b/src/modules/airline/index.ts
@@ -4,8 +4,7 @@
* responsible for setting standards relating to many aspects of airline
* operations.
*/
-import type { Faker } from '../..';
-import { bindThisToMemberFunctions } from '../../internal/bind-this-to-member-functions';
+import { ModuleBase } from '../../internal/module-base';
export enum Aircraft {
Narrowbody = 'narrowbody',
@@ -78,11 +77,7 @@ const aircraftTypeSeats: Record<AircraftType, string[]> = {
*
* - To generate sample passenger data, you can use the methods of the [`faker.person`](https://fakerjs.dev/api/person.html) module.
*/
-export class AirlineModule {
- constructor(private readonly faker: Faker) {
- bindThisToMemberFunctions(this);
- }
-
+export class AirlineModule extends ModuleBase {
/**
* Generates a random airport.
*