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