File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export function isZodType(arg: unknown): arg is z.ZodTypeAny {
1212 return Boolean ( prototype && Reflect . get ( prototype , 'name' ) === 'ZodType' ) ;
1313}
1414
15- export const $BooleanLike = z . preprocess ( ( arg ) => {
15+ export const $BooleanLike : z . ZodType < boolean , z . ZodTypeDef , any > = z . preprocess ( ( arg ) => {
1616 if ( typeof arg === 'string' ) {
1717 if ( arg . trim ( ) . toLowerCase ( ) === 'true' ) {
1818 return true ;
@@ -23,7 +23,7 @@ export const $BooleanLike = z.preprocess((arg) => {
2323 return arg ;
2424} , z . boolean ( ) ) ;
2525
26- export const $NumberLike = z . preprocess ( ( arg ) => {
26+ export const $NumberLike : z . ZodType < number , z . ZodTypeDef , any > = z . preprocess ( ( arg ) => {
2727 if ( isNumberLike ( arg ) ) {
2828 return parseNumber ( arg ) ;
2929 }
You can’t perform that action at this time.
0 commit comments