Return types fail to emit for methods of anonymous plain objects #52415
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
Bug Report
π Search Terms
declaration emit this any
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
π Expected behavior
Make
this
type to work in such contexts and emit that:Or emit the content of the anonymous type there somehow (when possible, be cautious with circularities, generics etc):
Or just emit a diagnostic that this isn't portable and that an explicit annotation is needed.
The text was updated successfully, but these errors were encountered: