diff --git a/deno/lib/types.ts b/deno/lib/types.ts index c1364a9b5..9a6311289 100644 --- a/deno/lib/types.ts +++ b/deno/lib/types.ts @@ -41,10 +41,10 @@ import { /////////////////////////////////////// /////////////////////////////////////// -export type RefinementCtx = { +export interface RefinementCtx { addIssue: (arg: IssueData) => void; path: (string | number)[]; -}; +} export type ZodRawShape = { [k: string]: ZodTypeAny }; export type ZodTypeAny = ZodType; export type TypeOf> = T["_output"]; diff --git a/src/types.ts b/src/types.ts index a5217d4a2..f89acb5e0 100644 --- a/src/types.ts +++ b/src/types.ts @@ -41,10 +41,10 @@ import { /////////////////////////////////////// /////////////////////////////////////// -export type RefinementCtx = { +export interface RefinementCtx { addIssue: (arg: IssueData) => void; path: (string | number)[]; -}; +} export type ZodRawShape = { [k: string]: ZodTypeAny }; export type ZodTypeAny = ZodType; export type TypeOf> = T["_output"];