= typescript =
* https://www.typescriptlang.org
* https://www.typescriptlang.org/docs/tutorial.html
Typescript is a typed superset of [[Javascript]] that transpiles (is converted) to plain [[Javascript]].
== Install, compile and run ==
{{{#!highlight sh
sudo npm install -g typescript # install
echo "console.log(\"Hello world\");" > helloworld.ts
tsc helloworld.ts # compile
node helloworld.js # run
}}}
== kate ==
https://github.com/PrettyFlower/KateTypeScriptSyntaxHighlighting
{{{#!highlight bash
wget https://github.com/PrettyFlower/KateTypeScriptSyntaxHighlighting/raw/master/typescript.xml
cp typescript.xml /usr/share/apps/katepart/syntax/typescript.xml
}}}
With let keyword added
{{{#!highlight xml
Hello World!!! -- {this.text} -- {this.state.greetings}
Human {this.state.human != null ? this.state.human.getName() : ""} {this.state.currDate}