Why Params
inferred as 3?
type IntersectionOfFunctions = ((a: 1) => void) & ((a: 2) => void) & ((a: 3) => void);
type Params = Parameters<IntersectionOfFunctions>; // why is this infered as 3 ???
How it works under hood?
Why Params
inferred as 3?
type IntersectionOfFunctions = ((a: 1) => void) & ((a: 2) => void) & ((a: 3) => void);
type Params = Parameters<IntersectionOfFunctions>; // why is this infered as 3 ???
How it works under hood?