async function needs Promise<T> return type quick fix #36266
Labels
Domain: Error Messages
The issue relates to error messaging
Domain: Quick Fixes
Editor-provided fixes, often called code actions.
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Milestone
Search Terms
Suggestion
It would be nice if TypeScript contributed a quick fix to resolve
The return type of an async or global function must be the global Promise<T> type
errors. The fix would simply wrap the existing return type into a Promise.Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: