'Code completion for constructor parameter types
I often have to inject dependencies in some class:
class Foo {
constructor(private userService: UserService) {
}
}
What I'm looking for is a code completion for a UserService type when I'm typing userService:
class Foo {
constructor(private userSer) { // <-- suggests UserService type so I can get the previous code example
}
}
I know it is possible with Kotlin and IntelliJ IDEA but I'm wondering whether it is possible with TypeScript and WebStorm.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
