Skip to content

Commit

Permalink
Detect promises in parsing instead of using ctx.async
Browse files Browse the repository at this point in the history
  • Loading branch information
jussisaurio committed May 12, 2024
1 parent 144a2dc commit fdd8344
Show file tree
Hide file tree
Showing 4 changed files with 296 additions and 246 deletions.
2 changes: 0 additions & 2 deletions deno/lib/helpers/parseUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const makeIssue = (
export type ParseParams = {
path: (string | number)[];
errorMap: ZodErrorMap;
async: boolean;
};

export type ParsePathComponent = string | number;
Expand All @@ -59,7 +58,6 @@ export type ParsePath = ParsePathComponent[];
export interface ParseContext {
readonly contextualErrorMap?: ZodErrorMap;
readonly basePath: ParsePath;
readonly async: boolean;
readonly schemaErrorMap?: ZodErrorMap;
}

Expand Down
Loading

0 comments on commit fdd8344

Please sign in to comment.