aboutsummaryrefslogtreecommitdiff
path: root/src/modules/image
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/image')
-rw-r--r--src/modules/image/index.ts6
1 files changed, 3 insertions, 3 deletions
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<Image, Image['image']> = [
+ const categories: MethodsOf<ImageModule, ImageModule['image']> = [
'abstract',
'animals',
'business',