Setting up emacs for typescript development
If we are going to bother with static types, might as well use them
- tags
- emacs
- typescript
- tide
Contents
I've been playing with deno and typescript, so I thought I'd document how to setup a basic tide environment with emacs.
Prerecs
Things will go better if you have nativejson
support in your emacs
build. I build from scratch which is super easy, but to check what
you have you can run the following elisp:
|
|
Native JSON is available
You also will need Node > 0.12.0, which you can test with:
|
|
v15.12.0
Installing tide
Throw this in your emacs.el
:
|
|
And also tell it about tsx
files:
|
|
Creating a sample project
Lets create a sample project
|
|
And then create a tsconfig.json
file which tells typescript about deno
:
|
|
Lets create a file: test.tsx
|
|
And put your cursor over Deno.stdout
and press M-.
to navigate to the
definition.
Previously
Next