0.0.10 • Published 5 years ago

ts-enhancer-plugin v0.0.10

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

About

ts-enhancer-plugin is a simple plugin that I created to support some lacking features in the typescript language service. Luckily the service has a plugin api. Atm I only implemented an auto initialize feature for object literal that are supposed to be of interface or anonymous types. Let me know if theres any issues.
You can debug the language server by setting the TSS_LOG environment variable to -logToFile true -file somefile -level verbose.
If you're working in vscode you need to select the local typescript version: Execute command TypeScript: Select TypeScript Version and select Use Workspace Version (see here for more). You also obviously must have installed a local typescript version in your project.

Installation

  • execute npm i --save-dev ts-enhancer-plugin
  • in tsconfig.json
{
  "compilerOptions": {
    "plugins": [
      { "name": "ts-enhancer-plugin" }
    ]
  }
}
  • if you use vscode, make sure to have the local typescript version selected: Execute command TypeScript: Select TypeScript Version and select Use Workspace Version (see here for more).

Showcase

npm.io

Thanks

thanks to David Sherret, the dev of ts-morph