Skip to content

Commit eda7df3

Browse files
committed
Change RefinementCtx to interface
1 parent 1968731 commit eda7df3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deno/lib/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ import {
4141
///////////////////////////////////////
4242
///////////////////////////////////////
4343

44-
export type RefinementCtx = {
44+
export interface RefinementCtx {
4545
addIssue: (arg: IssueData) => void;
4646
path: (string | number)[];
47-
};
47+
}
4848
export type ZodRawShape = { [k: string]: ZodTypeAny };
4949
export type ZodTypeAny = ZodType<any, any, any>;
5050
export type TypeOf<T extends ZodType<any, any, any>> = T["_output"];

src/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ import {
4141
///////////////////////////////////////
4242
///////////////////////////////////////
4343

44-
export type RefinementCtx = {
44+
export interface RefinementCtx {
4545
addIssue: (arg: IssueData) => void;
4646
path: (string | number)[];
47-
};
47+
}
4848
export type ZodRawShape = { [k: string]: ZodTypeAny };
4949
export type ZodTypeAny = ZodType<any, any, any>;
5050
export type TypeOf<T extends ZodType<any, any, any>> = T["_output"];

0 commit comments

Comments
 (0)