# TypeScript contribution layer for Spacemacs ![logo](img/TypeScript.png) **Table of Contents** - [TypeScript contribution layer for Spacemacs](#typescript-contribution-layer-for-spacemacs) - [Description](#description) - [Install](#install) - [Prerequisites](#prerequisites) - [Key bindings](#key-bindings) ## Description This layer adds support for TypeScript editing via [typescript-tools][] and [emacs-tss][]. This layer provides: - syntax coloring - error highlighting - auto-completion via Flymake - jump-to-definition ## Install ### Layer To use this contribution add it to your `~/.spacemacs` ```elisp (setq-default dotspacemacs-configuration-layers '(typescript)) ``` ### Prerequisites You'll need [typescript-tools][] and fairly obviously also the TypeScript compiler: ```sh $ npm install typescript $ git clone git://github.com/clausreinke/typescript-tools.git $ cd typescript-tools/ $ npm install -g ``` ## Key bindings Key Binding | Description --------------|------------------------------------------------------------ ` m g g` | Jump to definition ` m h h` | Show popup help (with type info) [emacs-tss]: https://github.com/aki2o/emacs-tss [typescript-tools]: https://github.com/clausreinke/typescript-tools