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