UnionToIntersection TypeAlias
Convert a union of types to an intersection of those types. Useful for TransformEvents
.
This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.
For more information about our API support guarantees, see here.
Signature
export type UnionToIntersection<T> = (T extends T ? (k: T) => unknown : never) extends (k: infer U) => unknown ? U : never;
Type Parameters
Parameter | Description |
---|---|
T |