Comparing version 3.22.0-canary.20230521T223947 to 3.22.0-canary.20230521T230122
@@ -744,3 +744,3 @@ import { enumUtil } from "./helpers/enumUtil"; | ||
type: "preprocess"; | ||
transform: (arg: T) => any; | ||
transform: (arg: T, ctx: RefinementCtx) => any; | ||
}; | ||
@@ -758,3 +758,3 @@ export declare type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>; | ||
static create: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"], input<I>>; | ||
static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>; | ||
static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>; | ||
} | ||
@@ -966,3 +966,3 @@ export { ZodEffects as ZodTransformer }; | ||
declare const nullableType: <T extends ZodTypeAny>(type: T, params?: RawCreateParams) => ZodNullable<T>; | ||
declare const preprocessType: <I extends ZodTypeAny>(preprocess: (arg: unknown) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>; | ||
declare const preprocessType: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>; | ||
declare const pipelineType: typeof ZodPipeline.create; | ||
@@ -969,0 +969,0 @@ declare const ostring: () => ZodOptional<ZodString>; |
{ | ||
"name": "zod", | ||
"version": "3.22.0-canary.20230521T223947", | ||
"version": "3.22.0-canary.20230521T230122", | ||
"author": "Colin McDonnell <colin@colinhacks.com>", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
606615
13898