Open
Description
π Search Terms
quick info, hover hint, deferred keyof
π Version & Regression Information
- This changed in PR Fixed substition types for non-generic indexed accessesΒ #51621
β― Playground Link
π» Code
type BasicConditional<T> = keyof T extends any
? true
: false;
type Config = { rejectClose: true };
type Test =
Config extends {}
? {
rejectClose: BasicConditional<Config>;
}
: never;
type RejectClose = Test["rejectClose"];
// ^? keyof Config extends any ? true : false
π Actual behavior
RejectClose
's quick info is keyof Config extends any ? true : false
which is un-simplified and rather ugly.
π Expected behavior
RejectClose
should be simplified to just true
in this case.
Additional information about the issue
No response