lhp96 / TypeScript-learn

My TypeScript Learning Records

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript-learn

My TypeScript Learning Records

new TS Project

yarn init --yes
yarn add typescript --dev

# 编译 某个文件
yarn tsc xx.ts

配置

# 生成配置文件
yarn tsc --init
# 编译整个项目
yarn tsc 

# tsconfig.json
"target": "es2016",  
"module": "commonjs",
"rootDir": "src",     
"sourceMap": true, 
"outDir": "dist", 

About

My TypeScript Learning Records


Languages

Language:TypeScript 95.1%Language:HTML 2.6%Language:CSS 2.2%