Skip to content

Commit

Permalink
decrease definition depth for opts to prevent error TS2589: Type inst…
Browse files Browse the repository at this point in the history
…antiation is excessively deep and possibly infinite
  • Loading branch information
bdemann committed Dec 12, 2024
1 parent e9e26a2 commit a8f65de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function OptArb(
): fc.Arbitrary<CandidValueAndMeta<Opt>> {
const definitionContext = {
...context,
constraints: { depthLevel: DEFAULT_DEFINITION_MAX_DEPTH }
constraints: { depthLevel: DEFAULT_DEFINITION_MAX_DEPTH - 1 }
};
return CandidValueAndMetaArbGenerator(
context,
Expand Down

0 comments on commit a8f65de

Please sign in to comment.