Skip to content

Improve completions with --checkJs turned off #25931

Open
@ghost

Description

TypeScript Version: 3.1.0-dev.20180725

Code

/**
 * @typedef {object} I
 * @property {number} m
 */

/** @returns {I} */
function f() { return { x: 0 }; }
const x = f();
x.

Expected behavior:

Get completion for m only.

Actual behavior:

Get completions for I, f, and x. None of which are properties.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureDomain: Completion ListsThe issue relates to showing completion lists in an editorSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions