prismatic-io / spectral

Prismatic's typescript library for custom components
https://prismatic.io/docs/spectral/custom-component-library
35 stars 2 forks source link

Input Type - Inference issue with collection types #240

Closed jasoncomes closed 2 months ago

jasoncomes commented 2 months ago

Reorder the type intersections to correctly infer types.

Issue: Screenshot 2024-07-08 at 10 29 12 AM

Now we get (which is correct): Screenshot 2024-07-08 at 10 26 00 AM

Screenshot 2024-07-08 at 10 26 10 AM