Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

'Implement interface' quick fix generates bodies in ambient contexts #19703

Copy link
Copy link
@DanielRosenwasser

Description

@DanielRosenwasser
Issue body actions
interface Hook {
    tap(): void
}

declare class SyncHook implements Hook {
    
}

Try using the "Implement interface" quick fix on SyncHook.

Expected:

declare class SyncHook implements Hook {
    tap(): void;
}

Actual:

declare class SyncHook implements Hook {
    tap(): void {
        throw new Error("Method not implemented.");
    }

}
Reactions are currently unavailable

Metadata

Metadata

Labels

BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.