ts_study
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

ts_study

简易的ts学习_ts语法_ 你好ts

    1. 需要全局安装 typescript包
npm i typescript -D
tsc --init 
    1. 安装测试框架和断言库
npm i mocha -D
npm i chai -D

配置成的文件如下:

{
  "compilerOptions": {
    "target": "es5", // 指定ECMAScript目标版本
    "module": "commonjs", // 指定模块化类型
    "declaration": true, // 生成 `.d.ts` 文件
    "outDir": "./dist", // 编译后生成的文件目录
    "strict": true // 开启严格的类型检测
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i ts_study

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.52 kB

Total Files

6

Last publish

Collaborators

  • dream-children