diff options
Diffstat (limited to 'src/modules/system')
| -rw-r--r-- | src/modules/system/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/system/index.ts b/src/modules/system/index.ts index 2f3ce371..35ca2c8d 100644 --- a/src/modules/system/index.ts +++ b/src/modules/system/index.ts @@ -38,7 +38,9 @@ const CRON_DAY_OF_WEEK = [ export class SystemModule { constructor(private readonly faker: Faker) { // Bind `this` so namespaced is working correctly - for (const name of Object.getOwnPropertyNames(SystemModule.prototype)) { + for (const name of Object.getOwnPropertyNames( + SystemModule.prototype + ) as Array<keyof SystemModule | 'constructor'>) { if (name === 'constructor' || typeof this[name] !== 'function') { continue; } |
