Skip to content

valueOf can be imported from anywhere #20191

@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd

so i have valueOf function defined in module xxx.ts

export function valueOf<T>(value: { value: T; }): T {
    return value.value;
}

then in file yyy.ts i am trying to do auto import and this is what i see:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: Quick FixesEditor-provided fixes, often called code actions.FixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions