Patch Changes
- #5247
e8891030162214acc751a9f79a5d57ec916565ee
Thanks @davidkpiano! - Fix type inference for discriminated union event types in thetrigger
and theemit
object. Previously, usingOmit
with union types would incorrectly combine event types, breaking type inference for discriminated unions. This has been fixed by introducing aDistributiveOmit
type that correctly preserves the relationship between discriminated properties.