(def: any)
| 479 | default(def: util.noUndefined<Input>): ZodDefault<this>; |
| 480 | default(def: () => util.noUndefined<Input>): ZodDefault<this>; |
| 481 | default(def: any) { |
| 482 | const defaultValueFunc = typeof def === "function" ? def : () => def; |
| 483 | |
| 484 | return new ZodDefault({ |
| 485 | ...processCreateParams(this._def), |
| 486 | innerType: this, |
| 487 | defaultValue: defaultValueFunc, |
| 488 | typeName: ZodFirstPartyTypeKind.ZodDefault, |
| 489 | }) as any; |
| 490 | } |
| 491 | |
| 492 | brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B>; |
| 493 | brand<B extends string | number | symbol>(): ZodBranded<this, B> { |
nothing calls this directly
no test coverage detected