fix: the invalid image types.
This commit is contained in:
parent
42776cf8b0
commit
2ddb050dd2
@ -69,7 +69,7 @@ const Options = z
|
||||
}),
|
||||
thumbnail: z
|
||||
.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()),
|
||||
})
|
||||
.transform((opts) => {
|
||||
|
@ -11,11 +11,11 @@ export interface Image {
|
||||
/**
|
||||
* image width
|
||||
*/
|
||||
width: number;
|
||||
width: number | string;
|
||||
/**
|
||||
* image height
|
||||
*/
|
||||
height: number;
|
||||
height: number | string;
|
||||
/**
|
||||
* blurDataURL of the image
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user