fix: the invalid image types.
This commit is contained in:
parent
988a24e5b8
commit
6edaea9245
@ -69,7 +69,7 @@ const Options = z
|
|||||||
}),
|
}),
|
||||||
thumbnail: z
|
thumbnail: z
|
||||||
.function()
|
.function()
|
||||||
.args(z.object({ src: z.string().min(1), width: z.number(), height: z.number() }))
|
.args(z.object({ src: z.string().min(1), width: z.number().or(z.string()), height: z.number().or(z.string()) }))
|
||||||
.returns(z.string()),
|
.returns(z.string()),
|
||||||
})
|
})
|
||||||
.transform((opts) => {
|
.transform((opts) => {
|
||||||
|
@ -11,11 +11,11 @@ export interface Image {
|
|||||||
/**
|
/**
|
||||||
* image width
|
* image width
|
||||||
*/
|
*/
|
||||||
width: number;
|
width: number | string;
|
||||||
/**
|
/**
|
||||||
* image height
|
* image height
|
||||||
*/
|
*/
|
||||||
height: number;
|
height: number | string;
|
||||||
/**
|
/**
|
||||||
* blurDataURL of the image
|
* blurDataURL of the image
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user