文件名称:learn-typescript
文件大小:52KB
文件格式:ZIP
更新时间:2024-04-05 23:48:18
TypeScript
学习打字稿 开始吧 Step1安装依赖项 $ npm init -y $ npm install -D typescript ts-node nodemon $ ./node_modules/.bin/tsc --init 步骤2更改TypeScript设置 { " compileOptions " : { " noImplicitAny " : true , " strictNullChecks " : true } } Step3 Nodemon设置 { " watch " : [ " src " ], " ext " : " ts " , " exec " : " ts-node src/main.ts " } Step4 NPM脚本设置 { " scripts " : { " start " : " nodemon " } } 步
【文件预览】:
learn-typescript-master
----.gitignore(2KB)
----nodemon.json(71B)
----tsconfig.json(6KB)
----README.md(547B)
----.nvmrc(8B)
----package.json(772B)
----src()
--------generators()
--------companion-object.d.ts(486B)
--------companion-object.js(1KB)
--------learn-types()
--------curried.ts(484B)
--------sandbox.ts(5KB)
--------error-handling.ts(384B)
--------design-pattern()
--------value-object-example()
--------companion-object.ts(865B)
--------ec-app()
--------sandbox2.ts(575B)
--------is-string.ts(76B)
--------sandbox3.ts(198B)
--------meno.txt(2KB)
--------ddd-ex1.ts(773B)
--------polling.ts(2KB)
--------main.ts(732B)
--------architecture.ts(2KB)
--------conditional-type()
--------companion-object-using.ts(222B)
----yarn.lock(74KB)
----.eslintrc.json(521B)