To get started:
git clone https://gist.github.com/ahocevar/ad7b52a2fa0f6c5495193cd695ab3780.git ol-ts
cd ol-ts
npm install
code .
Now you can enjoy IntelliSense and type checking in VS Code. Try modifying index.ts
to see how it's working.