-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorSuggestionAn idea for TypeScriptAn idea for TypeScript
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
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorThe issue relates to showing completion lists in an editorSuggestionAn idea for TypeScriptAn idea for TypeScript