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