Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quang-pham-dev/training-typescript-4-new-member
This is repo for training new member - 2019
https://github.com/quang-pham-dev/training-typescript-4-new-member
typescript
Last synced: about 1 month ago
JSON representation
This is repo for training new member - 2019
- Host: GitHub
- URL: https://github.com/quang-pham-dev/training-typescript-4-new-member
- Owner: quang-pham-dev
- Created: 2021-05-14T03:57:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-23T02:05:05.000Z (about 3 years ago)
- Last Synced: 2024-05-18T07:47:56.689Z (8 months ago)
- Topics: typescript
- Language: TypeScript
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## TypeScript Course
## Requirements
- Optional: HTML, CSS, JS
- Node.js and Npm
- Console / Terminal Usage# Useful Commands
- to transpile: `tsc myfile.ts`
- all files: `tsc *.ts`
- target Option: `--target ES5`
- to execute your transpiled file: `node myfile.js`, because is js you can use it on whatever js enviroment## Considerations
- Ts will generate an output JS, even with errors## More Info
- (Typescript Github)[]
- typescript components
- compile or transpile?## Tools:
- [TS PlayGround](https://www.typescriptlang.org/play/index.html)
- Intellisense
- typescript(npm or yarn)
- Visual Studio
- vsCode## You can Learn from this Code
- transpile a .ts file to .js file
- basics
- hello world
- strong typing
- syntatic sugar
- types or optional static type annotation
- scope variables
- avoid type juggling
- type coercion
- types
- ts added optional static type annotation to js
- transform it in a strongly typed programming language
- functions
- objects
- ambient declarations- interfaces
- clases: Person.ts
- enums
- modules
- generic types- file extension .d.ts, third libs compatibility
- type coercion
- tsconfig.json## Appendix
- how to debuggin ts file with vs Code
- configure tsconfig.json
- how to configure ts compiler with visual studio Code
- go to "Open User Settings"
- go to settings.json at "typescript.sdk", by default the property has the value null
- obtain where is installed npm modules: `npm root -g`
- append the path with /typescript/lib as SDK path
- to configure a build task
- to configure Tasks: `Ctrl + shift + P` > Tasks > Typescript
- to execute: `Ctrl/cmd + Shift + B`
- how to ignore js outputs from ts