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