Skip to content

Add missing member fix should work for missing function #26217

Closed
@ghost

Description

TypeScript Version: 3.1.0-dev.20180804

Code

class C {}
new C().m();

f();

namespace N { export const x = 0; }
N.f();

import * as m from "./mod";
m.f();

Expected behavior:

Codefix for both m() and for every f().

Actual behavior:

Codefix for only m().

Metadata

Metadata

Assignees

No one assigned

    Labels

    CommittedThe team has roadmapped this issueDomain: Quick FixesEditor-provided fixes, often called code actions.Help WantedYou can do thisSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions