We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typescript: 4.7.0-dev.20220327 vscode: 1.66.0-insider
reproduce:
class Tex { type = 'Text' as const; } class Svg { type = 'Svg' as const; } const map = { text: Tex, svg: Svg } type M = typeof map; export function bar<T extends keyof M>(type: T): M[T] { const s = map[type]; return s; } const cons = bar('text'); const a = new cons(); const t = s.type;
The text was updated successfully, but these errors were encountered:
I'm seeing this as well. Temporary fix is to change the version via the command palette (works for me with 4.6.3).
Sorry, something went wrong.
Bisected to #36747
weswigham
Successfully merging a pull request may close this issue.
typescript: 4.7.0-dev.20220327
vscode: 1.66.0-insider
reproduce:
The text was updated successfully, but these errors were encountered: