Skip to content

fixAddMissingMember should work for type literal #27615

Closed
@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions