From b9884d098d6e14001da36acfba6fbfebdcef8fea Mon Sep 17 00:00:00 2001 From: Shinigami Date: Fri, 9 Sep 2022 01:18:57 +0800 Subject: feat(modules): export module interfaces (#932) --- src/modules/image/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/image') diff --git a/src/modules/image/index.ts b/src/modules/image/index.ts index 082f7e73..1a709505 100644 --- a/src/modules/image/index.ts +++ b/src/modules/image/index.ts @@ -10,7 +10,7 @@ import { Unsplash } from './providers/unsplash'; * * Default provider is unsplash image provider. */ -export class Image { +export class ImageModule { readonly lorempixel: Lorempixel; readonly unsplash: Unsplash; readonly lorempicsum: LoremPicsum; @@ -18,7 +18,7 @@ export class Image { constructor(private readonly faker: Faker) { // Bind `this` so namespaced is working correctly - for (const name of Object.getOwnPropertyNames(Image.prototype)) { + for (const name of Object.getOwnPropertyNames(ImageModule.prototype)) { if (name === 'constructor' || typeof this[name] !== 'function') { continue; } @@ -46,7 +46,7 @@ export class Image { * @since 2.0.1 */ image(width?: number, height?: number, randomize?: boolean): string { - const categories: MethodsOf = [ + const categories: MethodsOf = [ 'abstract', 'animals', 'business', -- cgit v1.2.3