-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use specific type-level marker to
e.shape
(#1048)
Introduces a type-level marker to the return value of the $shape function. This marker is used solely for type inference to carry element, cardinality, and shape information and is not present at runtime. We now detect this specific construct in the `setToTsType` (which is the actual type we alias as `$infer`) and just short-circuit to calculating the object shape as if the shape was wrapped in a select.
- Loading branch information
1 parent
252b0ab
commit 9bb1a27
Showing
3 changed files
with
34 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters