You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
class completions include implemented interface's optional attribute #54703
List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback.
class implements interface completions
✅ Viability Checklist
My suggestion meets these guidelines:
This wouldn't be a breaking change in existing TypeScript/JavaScript code
This wouldn't change the runtime behavior of existing JavaScript code
This could be implemented without emitting different JS based on the types of the expressions
This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
interfaceType{isA?: false;isB?: false;}typePickType<TextendskeyofType>={[KinkeyofType]?: KextendsT ? true : false|undefined;};classAimplementsPickType<'isA'>{isA: true=true;a=1;}classBimplementsPickType<'isB'>{isB: true=true;b=1;}typeAorB=A|B;leta: AorB|undefined;if(a){if(a.isA)a.a;// error Property 'isA' does not exist on type 'B'if(a.isB)a.b;// error Property 'isB' does not exist on type 'A'}
To expedite the triage process, we need everyone to follow the issue template and instructions.
When you clicked "Create New Issue", the issue form was pre-populated with a template and some instructions. We need you to read those instructions completely, follow them, and then fill in all the fields in that template.
We are not able to assist with issues that don't follow the template instructions as they represent a significantly larger amount of work compared to issues which are correctly specified. Thank you for understanding.
Activity
RyanCavanaugh commentedon Jun 19, 2023
To expedite the triage process, we need everyone to follow the issue template and instructions.
When you clicked "Create New Issue", the issue form was pre-populated with a template and some instructions. We need you to read those instructions completely, follow them, and then fill in all the fields in that template.
We are not able to assist with issues that don't follow the template instructions as they represent a significantly larger amount of work compared to issues which are correctly specified. Thank you for understanding.