Skip to content

Commit

Permalink
fix: isFilled.image thumbnail names should extend string | null, f…
Browse files Browse the repository at this point in the history
…ixes #41
  • Loading branch information
lihbr committed Feb 4, 2022
1 parent ea814ca commit 659c212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isFilled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const imageThumbnail = (
*
* @returns `true` if `field` is filled, `false` otherwise.
*/
export const image = <ThumbnailNames extends string>(
export const image = <ThumbnailNames extends string | null>(
field: ImageField<ThumbnailNames>,
): field is ImageField<ThumbnailNames, "filled"> => {
return imageThumbnail(field);
Expand Down

0 comments on commit 659c212

Please sign in to comment.