-
Notifications
You must be signed in to change notification settings - Fork 13.4k
async function needs Promise<T> return type quick fix #36266
Copy link
Copy link
Closed
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsHelp WantedYou can do thisYou can do this
Milestone
Metadata
Metadata
Assignees
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsHelp WantedYou can do thisYou can do this
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> typeerrors. The fix would simply wrap the existing return type into a Promise.Checklist
My suggestion meets these guidelines: