Skip to content

Commit 66bda74

Browse files
committed
Remove .refine() from ZodMiniType
1 parent 9443aab commit 66bda74

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

packages/zod/src/v4/mini/schemas.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ export interface ZodMiniType<
1212
type: Internals["def"]["type"];
1313
check(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
1414
with(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
15-
refine<Ch extends (arg: core.output<this>) => unknown | Promise<unknown>>(
16-
check: Ch,
17-
params?: string | core.$ZodCustomParams
18-
): Ch extends (arg: any) => arg is infer R ? core.$ZodNarrow<this, R> : this;
1915
clone(def?: Internals["def"], params?: { parent: boolean }): this;
2016
register<R extends core.$ZodRegistry>(
2117
registry: R,
@@ -72,7 +68,6 @@ export const ZodMiniType: core.$constructor<ZodMiniType> = /*@__PURE__*/ core.$c
7268
);
7369
};
7470
inst.with = inst.check;
75-
inst.refine = (check, params) => inst.check(refine(check, params)) as never;
7671
inst.clone = (_def, params) => core.clone(inst, _def, params);
7772
inst.brand = () => inst as any;
7873
inst.register = ((reg: any, meta: any) => {

packages/zod/src/v4/mini/tests/refine.test.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)