aboutsummaryrefslogtreecommitdiff
path: root/src/modules/airline
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/airline')
-rw-r--r--src/modules/airline/index.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/airline/index.ts b/src/modules/airline/index.ts
index 3a5a400c..aeeb4873 100644
--- a/src/modules/airline/index.ts
+++ b/src/modules/airline/index.ts
@@ -66,7 +66,9 @@ const aircraftTypeSeats: Record<AircraftType, string[]> = {
export class AirlineModule {
constructor(private readonly faker: Faker) {
// Bind `this` so namespaced is working correctly
- for (const name of Object.getOwnPropertyNames(AirlineModule.prototype)) {
+ for (const name of Object.getOwnPropertyNames(
+ AirlineModule.prototype
+ ) as Array<keyof AirlineModule | 'constructor'>) {
if (name === 'constructor' || typeof this[name] !== 'function') {
continue;
}