Extract<keyof T, string>
breaks inference for deep keys.
#29692
Labels
Needs Investigation
This issue needs a team member to investigate its status.
TypeScript Version: 3.4.0-dev.20190201
Search Terms:
Extracting string from key breaks inference;
Extract<keyof T, string>
breaks inference;Extract<keyof T, string>
breaks inference for deep keys;Code
Expected behavior:
bar.broken("a", "1", true);
should infer type"1"
.Actual behavior:
bar.broken("a", "1", true);
infers type"1" | "2" | "3"
.Playground Link:
some smart text, a.k.a. bad sense of humour
Related issues:
#25065
The text was updated successfully, but these errors were encountered: