-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Open
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript
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:
Metadata
Metadata
Assignees
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript
