You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#167
Weirdly the `Resolve` helper only resolves types at the top level, not
in functions:
```ts
interface Point {
x: number;
y: number;
}
type Resolve<Raw> = Raw extends Function ? Raw : { [K in keyof Raw]: Raw[K] };
function foo(pt: Point) {
let k: keyof Point;
for (k in pt) {
// ^? let k: keyof Point
type SynthK = Resolve<keyof Point>;
// ^? type SynthK = keyof Point
}
}
type SynthT2 = Resolve<keyof Point>;
// ^? type SynthT2 = "x" | "y"`);
```
This might be microsoft/TypeScript#49852
#145 added support for "equivalent to" assertions for type aliases. But what about values?
The text was updated successfully, but these errors were encountered: