typescript-plugin-method-delegate
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

  • Adding types in Visual studio Code Editor

How to use:

npm i --save-dev typescript-plugin-method-delegate

in your tsconfig.json, add the plugin:

{
  "compilerOptions": {
    ...
    "plugins": [{
        "name": "typescript-plugin-method-delegate"
    }]
    ...
  }
}

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:

{
  // Specifies the folder path containing the tsserver and lib*.d.ts files to use.
  "typescript.tsdk": "node_modules/typescript/lib"
}

Package Sidebar

Install

npm i typescript-plugin-method-delegate

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

35.5 kB

Total Files

20

Last publish

Collaborators

  • cancerberosgx