File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ test("args method", () => {
69
69
const t1 = z . function ( ) ;
70
70
type t1 = ( typeof t1 ) [ "_input" ] ;
71
71
expectTypeOf < t1 > ( ) . toEqualTypeOf < ( ...args_1 : never [ ] ) => unknown > ( ) ;
72
+ t1 . _input ;
72
73
73
74
const t2args = z . tuple ( [ z . string ( ) ] , z . unknown ( ) ) ;
74
75
Original file line number Diff line number Diff line change @@ -45,8 +45,16 @@ export class $ZodFunction<
45
45
Args extends $ZodFunctionIn = $ZodFunctionIn ,
46
46
Returns extends $ZodFunctionOut = $ZodFunctionOut ,
47
47
> {
48
- _def : $ZodFunctionDef < Args , Returns > ;
48
+ // _zod!: {
49
+ // def: $ZodFunctionDef<Args, Returns>;
50
+ // input: $InferInnerFunctionType<Args, Returns>;
51
+ // output: $InferOuterFunctionType<Args, Returns>;
52
+ // };
53
+
49
54
def : $ZodFunctionDef < Args , Returns > ;
55
+
56
+ /** @deprecated */
57
+ _def ! : $ZodFunctionDef < Args , Returns > ;
50
58
_input ! : $InferInnerFunctionType < Args , Returns > ;
51
59
_output ! : $InferOuterFunctionType < Args , Returns > ;
52
60
You can’t perform that action at this time.
0 commit comments