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
{{ message }}
Repository navigation
2.7.1 regression: method doesn't show up in intellisense #21711
TypeScript Version: 2.7.1 and typescript@next (2.8.0-dev.20180206)
Code
declareclassKlass<A>{readonlyvalue: Aconstructor(value: A)f<Bextendsnumber>(this: Klass<B>): void}constx=newKlass(1).// <= `f` is not suggested by intellisense
Expected behavior:
f should be listed in intellisense as happens with typescript v2.6.2
Most operator functions are no longer available as suggestions. They all declare this: Sequence<T> via arguments (or with a more specific type parameter).
Andy (Andrewkraft) (@Andy-MS) Thanks for info. I've tested with TS 2.7.2 and Intellij IDEA but the issue still persists. Is it fixed in a future TS version?
Activity
DanielRosenwasser commentedon Feb 7, 2018
This is likely due to #20616.
winterbe commentedon Feb 14, 2018
Daniel Rosenwasser (@DanielRosenwasser) I've encountered a similar issue with my ts library Sequency. Code suggestions work fine in TS 2.6.1 but are incomplete in 2.7.1.
Please take a look at this declaration: https://github.com/winterbe/sequency/blob/master/src/Sequence.ts#L76-L91
Most operator functions are no longer available as suggestions. They all declare
this: Sequence<T>via arguments (or with a more specific type parameter).Tested in VSCode and Intellij IDEA (using typescript service): https://youtrack.jetbrains.com/issue/WEB-31141
2.6.1
2.7.1
sant123 commentedon Mar 19, 2018
Any advance on this topic? microsoft/vscode#43489
Just asking 😝
winterbe commentedon Mar 19, 2018
Yea, it seems all linked issues are closed without any further note. 🤷♂️
sant123 commentedon Mar 19, 2018
May you look for sequelize Typescript Andy (Andrewkraft) (@Andy-MS)? findAll method doesn't show up on intellisense, but you can write it completely.
winterbe commentedon Mar 19, 2018
Andy (Andrewkraft) (@Andy-MS) Thanks for info. I've tested with TS 2.7.2 and Intellij IDEA but the issue still persists. Is it fixed in a future TS version?
sant123 commentedon Mar 19, 2018
It's working! Thanks a lot Andy (Andrewkraft) (@Andy-MS)
Edit: using
typescript@next