aboutsummaryrefslogtreecommitdiff
path: root/src/modules/hacker
diff options
context:
space:
mode:
authorShinigami <[email protected]>2023-02-15 19:29:44 +0100
committerGitHub <[email protected]>2023-02-15 18:29:44 +0000
commite7230f6f10af9633cf0eca18910cbafaaba9ecba (patch)
tree60c27d30661f85b8ec2155e8a2f39ffdb8559f63 /src/modules/hacker
parent1399375686afb99a4ea55a6153601905f395304d (diff)
downloadfaker-e7230f6f10af9633cf0eca18910cbafaaba9ecba.tar.xz
faker-e7230f6f10af9633cf0eca18910cbafaaba9ecba.zip
chore: activate noImplicitAny (#1839)
Diffstat (limited to 'src/modules/hacker')
-rw-r--r--src/modules/hacker/index.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/hacker/index.ts b/src/modules/hacker/index.ts
index aadf839a..00b9a686 100644
--- a/src/modules/hacker/index.ts
+++ b/src/modules/hacker/index.ts
@@ -6,7 +6,9 @@ import type { Faker } from '../..';
export class HackerModule {
constructor(private readonly faker: Faker) {
// Bind `this` so namespaced is working correctly
- for (const name of Object.getOwnPropertyNames(HackerModule.prototype)) {
+ for (const name of Object.getOwnPropertyNames(
+ HackerModule.prototype
+ ) as Array<keyof HackerModule | 'constructor'>) {
if (name === 'constructor' || typeof this[name] !== 'function') {
continue;
}