有没有办法将联合类型转换为交集类型:
type FunctionUnion = () => void | (p: string) => void type FunctionIntersection = () => void & (p: string) => void
我想应用转换FunctionUnion来获取FunctionIntersection
FunctionUnion
FunctionIntersection
typescript
typescript ×1