From 8ce7f3ea8b1daa76097af40693d67a61e2dfbef5 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 29 Apr 2022 12:39:55 +0200 Subject: chore: fix any warnings in image module (#886) --- src/image.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/image.ts') 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 = [ 'abstract', 'animals', 'business', -- cgit v1.2.3