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