https://github.com/mbrsagor/typescript
typeScript is a typed superset of JavaScript that compiles to plain JavaScript. If you use typeScript you may maintain and support all versions.
https://github.com/mbrsagor/typescript
javascript typescript typescript-compiler
Last synced: about 2 months ago
JSON representation
typeScript is a typed superset of JavaScript that compiles to plain JavaScript. If you use typeScript you may maintain and support all versions.
- Host: GitHub
- URL: https://github.com/mbrsagor/typescript
- Owner: mbrsagor
- Created: 2020-07-31T08:37:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T16:41:18.000Z (over 4 years ago)
- Last Synced: 2025-03-02T00:26:34.637Z (over 1 year ago)
- Topics: javascript, typescript, typescript-compiler
- Language: JavaScript
- Homepage:
- Size: 3.53 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# typeScript
#### What is typeScript?
>> typeScript is a typed superset of JavaScript that compiles to plain JavaScript.
### Why & what typescript?
- Open source programming language.
- Typed superset javascript.
- Compiles down to plain javascript.
- Relation to javascrpt.
- Optional static typing and type interface.
- IDE Support.
- Fefactor code very easily.
- It's main programmng language of Angular.
###### How to automatically (watch) re-compile?
```tsc file_name --watch```
>> or
```tsc --watch```
### Install Dependency
1st time when I stated typeScript I was geting a simple error. Here I will share below how to run typescript:
```
npm init -y
npm install --save-dev typescript @types/node
echo 'console.log("test")' > index.ts
```
#### How to convert `typeScript` any mode? Please follow the command line hopefully it's will be work.
```tsc file_name.ts```
> If you like to opne `ES6` mode please run the command
`tsc file_name -t es6`
##### Here `-t` is target mode