Skip to content

Commit

Permalink
fix: type error affecting users with skipLibCheck unset
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalbdivad committed Jul 15, 2023
1 parent 5a1cd70 commit c6de0b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dev/configs/.changeset/warm-cougars-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"arktype": patch
---

Fix a type error affecting users with skipLibCheck unset
2 changes: 1 addition & 1 deletion src/parse/ast/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type inferNode<node extends Node<$>, $ = {}> = node extends string

export type inferResolution<node extends Node<$>, $> = {
[domain in keyof node]: inferPredicate<
// @ts-expect-error Some very odd inference behavior related to domain I can't resolve
/** @ts-expect-error Some very odd inference behavior related to domain I can't resolve */
domain,
node[domain],
$
Expand Down

0 comments on commit c6de0b7

Please sign in to comment.