We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
According to the #21496 PR, there should be string & number expected results
string & number
type Bar<T> = T extends { a: (x: infer U) => void; b: (x: infer U) => void } ? U : never; type T20 = Bar<{ a: (x: string) => void; b: (x: string) => void }>; // string type T21 = Bar<{ a: (x: string) => void; b: (x: number) => void }>; // string & number
However, under ts version 3.6.4, the results are not as expected