diff options
Diffstat (limited to 'src/modules/airline')
| -rw-r--r-- | src/modules/airline/index.ts | 9 |
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. * |
