Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 719 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 719 Bytes

tsc-completion

bash completion spec for tsc

Provides autocomplete for the TypeScript compiler's command line options.

It's only prototype quality and I'm not a very good shell scripter nor a very good JavaScript developer. But it gets the job done.

Installation:

git clone https://github.com/minestarks/tsc-completion.git
cd tsc-completion/
npm install
source ./register-tsc-completion.bash

Then start a new bash session.

Demo:

$ tsc --t<tab><tab>
--target           --traceresolution  --tsbuildinfofile  --typeroots        --types
$ tsc --target es<tab><tab>
es2015  es2016  es2017  es2018  es2019  es2020  es3     es5     es6     esnext