what about start with that class to which that instance really belongs or could belongs?
method(instanceVariable: InstanceClass1 | InstanceClass2): void { if (instanceVariable instanceof InstanceClass1) {} //it doesnt suggest possible classes, nor i have defined in parameter area of method or not }
Would you expect to see InstanceClass1 and InstanceClass2 when hitting Ctrl+Space after if (instanceVariable instanceof ? Please feel free to file a request for this feature to youtrack, https://youtrack.jetbrains.com/issues/WEB
Please can you elaborate on this? What suggestions would you expect to see? Code snippets would be helpful
what about start with that class to which that instance really belongs or could belongs?
method(instanceVariable: InstanceClass1 | InstanceClass2): void {
if (instanceVariable instanceof InstanceClass1) {} //it doesnt suggest possible classes, nor i have defined in parameter area of method or not
}
Would you expect to see InstanceClass1 and InstanceClass2 when hitting Ctrl+Space after if (instanceVariable instanceof ?
Please feel free to file a request for this feature to youtrack, https://youtrack.jetbrains.com/issues/WEB
yes
and in general maybe a class in which was created that instance