typescript-plugin-method-delegate
A TypeScript Language Server Plugin that will suggest to create methods that delegate in implementatoin of selected property.
- Editor agnostic - tested on Visual Studio Code and Atom but it should work on any TypeScript-aware editor
Demo
How to use:
npm i --save-dev typescript-plugin-method-delegate
in your tsconfig.json
, add the plugin:
Make sure you have installed typescript in your project (npm i --save-dev typescript
) the editor you are using uses that typescript and not another. For example, Visual Studio Code comes with its own typescript version, so I need to "Select TypeScript Version" of the workspace: