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