Closed as not planned
Description
π Search Terms
template literal union distributive conditional type
π Version & Regression Information
5.4.5 and Nightly
β― Playground Link
π» Code
type FooN = `foo${'100' | (`${number}` & {})}`;
// type FooN = `foo${`${number}` & {}}`
// expected = "foo100" | `foo${`${number}` & {}}`
π Actual behavior
'100'
and `${number}` & {}
are being simplified to `${number}` & {}
. FooN
does not have autocomplete for 'foo100'
π Expected behavior
FooN
should be of type "foo100" | `foo${`${number}` & {}}
and provide autocomplete for foo100
while allowing foo101
or any other number
Additional information about the issue
No response