Skip to content

fixAddMissingMember should work for type literal #27615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Oct 8, 2018 · 0 comments · Fixed by #47212
Closed

fixAddMissingMember should work for type literal #27615

ghost opened this issue Oct 8, 2018 · 0 comments · Fixed by #47212
Labels
Domain: Quick Fixes Editor-provided fixes, often called code actions. Experience Enhancement Noncontroversial enhancements Suggestion An idea for TypeScript
Milestone

Comments

@ghost
Copy link

ghost commented Oct 8, 2018

TypeScript Version: 3.2.0-dev.20181004

Code

type T  = {
    x: number;
}

function f(t: T) {
    t.y;
}

Expected behavior:

Code fix to add y to the type literal.

Actual behavior:

No code fix. There is one if we use interface.
This issue should also include getting this to work for types defined in jsdoc syntax.

@ghost ghost added Bug A bug in TypeScript Domain: Quick Fixes Editor-provided fixes, often called code actions. labels Oct 8, 2018
@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript Experience Enhancement Noncontroversial enhancements and removed Bug A bug in TypeScript labels Oct 10, 2018
@weswigham weswigham removed the Suggestion An idea for TypeScript label Nov 6, 2018
@RyanCavanaugh RyanCavanaugh added the Suggestion An idea for TypeScript label Mar 7, 2019
@RyanCavanaugh RyanCavanaugh modified the milestones: Community, Backlog Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Domain: Quick Fixes Editor-provided fixes, often called code actions. Experience Enhancement Noncontroversial enhancements Suggestion An idea for TypeScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants