当前位置:网站首页>Run typescript code directly using TS node
Run typescript code directly using TS node
2022-06-23 06:59:00 【Tianmiao studio】
test ts Code time For convenience no need tsc To compile Direct use ts-node To joint commissioning ts Code
install typescript
npm install -g typescript
//$ tsc -v
//Version 3.2.2
install ts-node npm Official address https://www.npmjs.com/package/ts-node
npm install -g ts-nodedemo.ts file
const test1:number =1;
console.log(test1);The input terminal
ts-node demo.ts
// Be careful ts File path such as ts-node D:/project1/testTs.ts
// The terminal prints out 1
边栏推荐
- VS2013 FFMPEG环境配置及常见错误处理
- ssm + ftp +ueditor
- Problem: when the attribute in the data object (defined data) in the access component is also the attribute in the object object, an error is reported
- 【STL】顺序容器之deque用法总结
- js中if逻辑过多,常见优化
- idea自动生成serialVersionUID
- How to view native IP
- 【Qt】基础学习笔记
- MySQL重做日志 redo log
- Haas506 2.0 development tutorial -sntp (only versions above 2.2 are supported)
猜你喜欢

xml dtd 记录

MySQL的意向共享锁、意向排它锁和死锁

ssm + ftp +ueditor
![[bull Chinese document] queue package used to process distributed jobs and messages in nodejs](/img/f9/1bd79d3754c1b4d1b114d02283f95e.png)
[bull Chinese document] queue package used to process distributed jobs and messages in nodejs
![[project training] change of linear arrow](/img/a4/7554522c13684d7590d247f28a6965.png)
[project training] change of linear arrow

Badly placed()'s problem

redux Actions may not have an undefined “type“ property. Have you misspelled a constant?

Measurement principle and thickness measurement mode of spectral confocal

994. 腐烂的橘子-非递归法

二叉树的遍历及相关知识
随机推荐
746. 使用最小花费爬楼梯-动态规划
Idea automatically generates serialVersionUID
C语言运算符优先级口诀
Set tensorflow1 X to pytorch
项目_过滤器Filter解决中文乱码
利用fuser查看文件使用情况
【毕业季·进击的技术er】自己的选择,跪着也要走
QT设计师无法修改窗口大小,无法通过鼠标拖动窗口改变大小的解决方案
MySQL MVCC多版本并发控制
【shell】Tree命令
【STL】pair用法总结
[project training] details of linear components
system 权限程序不能访问sd卡问题
Swagger3 integrates oauth2 authentication token
Storage mode of data in memory (C language)
How to realize video call and live interaction in a small program when live broadcasting is so popular?
【BULL中文文档】用于在 NodeJS 中处理分布式作业和消息的队列包
What are the pension financial products in 2022? Low risk
[project training] multi segment line expanded to parallel line
解决挖矿病毒 sshd2(redis未设密码、清除crontab定时任务)