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