diff options
| author | ST-DDT <[email protected]> | 2022-04-29 12:39:55 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-29 12:39:55 +0200 |
| commit | 8ce7f3ea8b1daa76097af40693d67a61e2dfbef5 (patch) | |
| tree | 6e974eefdb1f4a10041ecb257a7d14ef92175772 /src/image.ts | |
| parent | 98b6289bb94fee4cba9e5e605ea76e55a1d63128 (diff) | |
| download | faker-8ce7f3ea8b1daa76097af40693d67a61e2dfbef5.tar.xz faker-8ce7f3ea8b1daa76097af40693d67a61e2dfbef5.zip | |
chore: fix any warnings in image module (#886)
Diffstat (limited to 'src/image.ts')
| -rw-r--r-- | src/image.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/image.ts b/src/image.ts index 8aeab602..9fe7f603 100644 --- a/src/image.ts +++ b/src/image.ts @@ -2,6 +2,7 @@ import type { Faker } from '.'; import { LoremPicsum } from './image_providers/lorempicsum'; import { Lorempixel } from './image_providers/lorempixel'; import { Unsplash } from './image_providers/unsplash'; +import type { MethodsOf } from './utils/types'; /** * Module to generate placeholder images. @@ -40,7 +41,7 @@ export class Image { * faker.image.image(1234, 2345, true) // 'http://loremflickr.com/1234/2345/nature?56789' */ image(width?: number, height?: number, randomize?: boolean): string { - const categories = [ + const categories: MethodsOf<Image, Image['image']> = [ 'abstract', 'animals', 'business', |
