Skip to content

Remove type parameters quick fix forgets the trailing > #40257

@AlCalzone

Description

@AlCalzone

TypeScript Version: 4.1.0-dev.20200826

Search Terms: remove parameter fix

Code

export type CCResponsePredicate<
	TSent extends CommandClass = CommandClass,
	TReceived extends CommandClass = CommandClass
> = (sentCommand: CommandClass, receivedCommand: CommandClass) => CCResponseRole;
  1. Cursor after CCResponsePredicate<
  2. Trigger "remove all type parameters" quick fix

Expected behavior:

export type CCResponsePredicate = (sentCommand: CommandClass, receivedCommand: CommandClass) => CCResponseRole;

Actual behavior:

export type CCResponsePredicate> = (sentCommand: CommandClass, receivedCommand: CommandClass) => CCResponseRole;

Playground Link: The playground doesn't offer this quick fix

Related Issues: none found

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Quick FixesEditor-provided fixes, often called code actions.Effort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Fix AvailableA PR has been opened for this issueHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions