(transform)
| 29766 | return ZodIntersection.create(this, incoming, this._def); |
| 29767 | } |
| 29768 | transform(transform) { |
| 29769 | return new ZodEffects({ |
| 29770 | ...processCreateParams(this._def), |
| 29771 | schema: this, |
| 29772 | typeName: ZodFirstPartyTypeKind.ZodEffects, |
| 29773 | effect: { type: "transform", transform } |
| 29774 | }); |
| 29775 | } |
| 29776 | default(def) { |
| 29777 | const defaultValueFunc = typeof def === "function" ? def : () => def; |
| 29778 | return new ZodDefault({ |
no test coverage detected