Open
Description
Template added by by @mjbvz
TS Versions: 3.7-20190911
Repo
For the JS:
function A() {}
A.prototype.foo = 1;
[A.prototype.bar] = [2],
{baz: A.prototype.baz} = {baz: 3};
const proto = A.prototype;
proto.prop = 4;
Expected
Intellisense for instances of A
should show four properties
Actual
Only foo
shown.
Original report below
Intellisense seems to only recognize straightforward prototype property definitions like Class.prototype.prop = value
.
Assigning Class.prototype
to a variable and extending that, or using destructuring syntax will not be recognized by it: