From eda7df314399929f7ed737423868a5a0780cd944 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 8 May 2024 12:05:15 -0700 Subject: [PATCH] Change RefinementCtx to interface --- deno/lib/types.ts | 4 ++-- src/types.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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"];