Open
Description
π Search Terms
object literal getter completion
π Version & Regression Information
- This is the behavior in every version I tried
β― Playground Link
π» Code
interface A {
foo(): { propertyName: number };
bar: { propertyName: number };
}
const a: A = {
foo() { return {
// <- try typing "p" here
}
},
get bar() {
return {
// <- try typing "p" here
}
}
}
π Actual behavior
π Good completions inside the function body:
π’ Poor completions inside the getter body:
π Expected behavior
It should provide the same completions inside a getter, as it does inside a function.
Additional information about the issue
No response