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 Version: 3.9.2, Nightly
Search Terms: inconsistent type hover
Expected behavior: When the variable x is of type T, the type shown in the hover information is the same for both.
x
T
Actual behavior: The variable x is of type T, but the type shown for x is different than the type shown for T.
Related Issues: N/A
Code
// Hover `T` shows { a: 5 } type T = Pick<{ a: 5, b: "string" }, "a"> // Hover `T` shows { a: 5 } // Hover `x` shows Pick<{ a: 5, b: "string" }, "a"> declare const x: T;
"use strict";
{ "compilerOptions": { "noImplicitAny": true, "strictNullChecks": true, "strictFunctionTypes": true, "strictPropertyInitialization": true, "strictBindCallApply": true, "noImplicitThis": true, "noImplicitReturns": true, "useDefineForClassFields": false, "alwaysStrict": true, "allowUnreachableCode": false, "allowUnusedLabels": false, "downlevelIteration": false, "noEmitHelpers": false, "noLib": false, "noStrictGenericChecks": false, "noUnusedLocals": false, "noUnusedParameters": false, "esModuleInterop": true, "preserveConstEnums": false, "removeComments": false, "skipLibCheck": false, "checkJs": false, "allowJs": false, "declaration": true, "experimentalDecorators": false, "emitDecoratorMetadata": false, "target": "ES2017", "module": "ESNext" } }
Playground Link: Provided
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TypeScript Version: 3.9.2, Nightly
Search Terms: inconsistent type hover
Expected behavior: When the variable
x
is of typeT
, the type shown in the hover information is the same for both.Actual behavior: The variable
x
is of typeT
, but the type shown forx
is different than the type shown forT
.Related Issues: N/A
Code
Output
Compiler Options
Playground Link: Provided
The text was updated successfully, but these errors were encountered: