From 659c212feb07a7abdf672da0976adec6dfaf9e8b Mon Sep 17 00:00:00 2001 From: lihbr Date: Fri, 4 Feb 2022 12:08:21 +0100 Subject: [PATCH] fix: `isFilled.image` thumbnail names should extend `string | null`, fixes #41 --- src/isFilled.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isFilled.ts b/src/isFilled.ts index 005abce..fb41aee 100644 --- a/src/isFilled.ts +++ b/src/isFilled.ts @@ -94,7 +94,7 @@ export const imageThumbnail = ( * * @returns `true` if `field` is filled, `false` otherwise. */ -export const image = ( +export const image = ( field: ImageField, ): field is ImageField => { return imageThumbnail(field);