Can Intellisense recognize javascript prototype functions?

1.5k Views Asked by At

I'm using VS Code and I would like Intellisense to recognize javascript prototype functions. Is there a way to configure it to do so?

function MyObject() {}

MyObject.prototype.foo = function() {};
MyObject.prototype.bar = function() {};

var myObj = new MyObject();

myObj.  //I want Intellisense to show me the foo and bar functions here
1

There are 1 best solutions below

2
On BEST ANSWER

This is supported in the latest versions of VS Code.

https://github.com/Microsoft/TypeScript/wiki/Salsa