aboutsummaryrefslogtreecommitdiff
path: root/src/modules/image
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-09-09 01:18:57 +0800
committerGitHub <[email protected]>2022-09-08 17:18:57 +0000
commitb9884d098d6e14001da36acfba6fbfebdcef8fea (patch)
tree255dc8698618dfdb0de268f6f3db9bca94b84e83 /src/modules/image
parent1fe2877d0c6b237b3d1a5b6b29c4749578a8f9a4 (diff)
downloadfaker-b9884d098d6e14001da36acfba6fbfebdcef8fea.tar.xz
faker-b9884d098d6e14001da36acfba6fbfebdcef8fea.zip
feat(modules): export module interfaces (#932)
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',