ParametersToIntersection
HardCreate ParametersToIntersection<T> which converts union of function parameter types to intersection.
TypeScript•UTF-8
Run your code to see results.
Click the Run button above
ParametersToIntersection
HardCreate ParametersToIntersection<T> which converts union of function parameter types to intersection.
Examples:
Input 1: type Result = ParametersToIntersection<(a: { x: number }) | (b: { y: string })>
Output 1: { x: number } & { y: string }
Output
Run your code to see results.