Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
milankinen committed Oct 30, 2022
1 parent 82e72ad commit 524baa3
Show file tree
Hide file tree
Showing 3 changed files with 1,008 additions and 50 deletions.
4 changes: 2 additions & 2 deletions src/benchmarks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ for (const suite of [
...primitiveBenchmarks.suites,
...stringBenchmarks.suites,
...objectBenchmarks.suites,
...unionBenchmarks.suites,
...discriminatedUnionBenchmarks.suites,
//...unionBenchmarks.suites,
//...discriminatedUnionBenchmarks.suites,
]) {
suite.run();
}
5 changes: 5 additions & 0 deletions src/helpers/parseUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ export interface ParseContext {
readonly parsedType: ZodParsedType;
}

export interface ParseCtx {
readonly contextualErrorMap?: ZodErrorMap
readonly async: boolean
}

export type ParseInput = {
data: any;
path: (string | number)[];
Expand Down
Loading

0 comments on commit 524baa3

Please sign in to comment.