File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed
packages/zod/src/v4/classic Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -1043,7 +1043,7 @@ export interface ZodObject<
1043
1043
strict ( ) : ZodObject < Shape , core . $strict > ;
1044
1044
1045
1045
/** This is the default behavior. This method call is likely unnecessary. */
1046
- strip ( ) : ZodObject < Shape , core . $strict > ;
1046
+ strip ( ) : ZodObject < Shape , core . $strip > ;
1047
1047
1048
1048
extend < U extends core . $ZodLooseShape & Partial < Record < keyof Shape , core . SomeType > > > (
1049
1049
shape : U
Original file line number Diff line number Diff line change @@ -2,18 +2,4 @@ import { z } from "zod/v4";
2
2
3
3
z ;
4
4
5
- // const time = z.iso.datetime();
6
- console . log ( "z.iso.datetime()" ) ;
7
- console . log ( z . iso . datetime ( ) . _zod . def . pattern ) ;
8
-
9
- console . log ( "z.iso.datetime({local: true})" ) ;
10
- console . log ( z . iso . datetime ( { local : true } ) . _zod . def . pattern ) ;
11
-
12
- console . log ( "z.iso.datetime({offset: true})" ) ;
13
- console . log ( z . iso . datetime ( { offset : true } ) . _zod . def . pattern ) ;
14
-
15
- console . log ( "z.iso.datetime({precision: z.TimePrecision.Minute})" ) ;
16
- console . log ( z . iso . datetime ( { precision : z . TimePrecision . Minute } ) . _zod . def . pattern ) ;
17
-
18
- console . log ( "z.iso.datetime({offset: true, local: true })" ) ;
19
- console . log ( z . iso . datetime ( { offset : true , local : true } ) . _zod . def . pattern ) ;
5
+ console . dir ( z . iso . datetime ( { local : true } ) . parse ( "2025-05-21T12:00" ) , { depth : null } ) ;
You can’t perform that action at this time.
0 commit comments