Skip to content

Commit

Permalink
Change RefinementCtx to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed May 8, 2024
1 parent 1968731 commit eda7df3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deno/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any, any, any>;
export type TypeOf<T extends ZodType<any, any, any>> = T["_output"];
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any, any, any>;
export type TypeOf<T extends ZodType<any, any, any>> = T["_output"];
Expand Down

1 comment on commit eda7df3

@simPod
Copy link
Contributor

@simPod simPod commented on eda7df3 May 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why is this change? Thanks!

Please sign in to comment.