# typescript **Repository Path**: chi-xiaosage/typescript ## Basic Information - **Project Name**: typescript - **Description**: TS学习 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-22 - **Last Updated**: 2022-07-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## TypeScript 使用方法 - 全局安装 TypeScript npm install -g typescript - 编译代码 运行 tsc index.ts 同时也会生成 js 文件 - 需要直接运行 TS 文件 需要安装 npm i -g ts-node 运行的使用 直接 ts-node index.ts 不会生存 js 文件