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: nightly (2.3.0-dev.20170314)
Code
[1, 2, 3].map(n => ({ x: n, y: n }));
Hover over map.
map
Expected behavior:
(method) Array<number>.map<U>(callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any): U[] (+ 4 overloads) (inferred) U = { x: number; y: number; }
Actual behavior:
(method) Array<number>.map<{ x: number; y: number; }>(callbackfn: (value: number, index: number, array: number[]) => { x: number; y: number; }, thisArg?: any): { x: number; y: number; }[] (+4 overloads)
This is long enough that reading the documentation in VSCode's quick info window requires scrolling down!
Mentioned this to @DanielRosenwasser and @sandersn earlier today.
The text was updated successfully, but these errors were encountered:
Not quite a duplicate of #14662, but strongly related. Although in this case I'm still suggesting showing all the type info, just not repeating it.
Sorry, something went wrong.
No branches or pull requests
TypeScript Version: nightly (2.3.0-dev.20170314)
Code
Hover over
map
.Expected behavior:
Actual behavior:
This is long enough that reading the documentation in VSCode's quick info window requires scrolling down!
Mentioned this to @DanielRosenwasser and @sandersn earlier today.
The text was updated successfully, but these errors were encountered: