Microsoft/TypeScript

'declare method' quick fix for adding a private method

Open

#37,782 opened on Apr 3, 2020

View on GitHub
聽(17 comments)聽(3 reactions)聽(0 assignees)TypeScript聽(48,455 stars)聽(6,726 forks)batch import
Good First IssueHelp WantedSuggestion

Description

From https://github.com/microsoft/vscode/issues/94118

TypeScript Version: 3.9.0-dev.20200330

Search terms

  • quick fix
  • declare method
  • private

Repro For ts file:

index.ts

class Bar {
    bar() {
         this._baz(123)
    }
}
  1. Trigger quick fixes on _baz

Feature request: https://github.com/microsoft/TypeScript/issues/36249 added a quick fix for adding private properties. However there is no quick fix for adding a private method

Playground Link:

Related Issues:

Contributor guide

'declare method' quick fix for adding a private method 路 Microsoft/TypeScript#37782 | Good First Issue