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