-
-
Notifications
You must be signed in to change notification settings - Fork 140
Fix nested tuple expression functional inference #565
Copy link
Copy link
Closed
Description
Nesting a tuple expression requiring functional inference in a tuple like this currently breaks validation. This is likely a convoluted TS bug, as the equivalent form in an object literal is correctly inferred:
// @ts-expect-error
type([["boolean", "=>", (b) => b === true]]).inferI tried for a very long time to fix this to no avail. Workaround is to use an expression helper like:
type([narrow("boolean", (b) => b === true)])Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done (merged or closed)