This commit is contained in:
plondon 2021-10-17 14:23:31 -04:00
parent c16d4e1539
commit aeb55dc490
1 changed files with 34 additions and 0 deletions

34
langs/typescript.yaml Normal file
View File

@ -0,0 +1,34 @@
id: "typescript"
aliases:
- "ts"
- "tsnode"
- "tsc"
name: "TypeScript"
monacoLang: typescript
install:
riju:
- prettier
npm:
- typescript
- ts-node
repl: |
ts-node
main: "main.ts"
template: |
console.log("Hello, world!");
run: |
ts-node -i -e "$(< main.ts)"
scope:
code: |
let x = 123 * 234;
format:
run: |
prettier --no-config --stdin-filepath=format.ts
input: |
console.log('Hello, world!');