Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chaudhuree/typescript-practice--with-javascript-and-all-
https://github.com/chaudhuree/typescript-practice--with-javascript-and-all-
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chaudhuree/typescript-practice--with-javascript-and-all-
- Owner: chaudhuree
- Created: 2022-12-21T20:08:58.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T23:17:50.000Z (almost 2 years ago)
- Last Synced: 2023-02-28T10:31:17.443Z (over 1 year ago)
- Language: TypeScript
- Size: 281 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## practice all typescript code
> it's kind of rough notes about typescript
i will practice all types of typescript code here
## install typescript globally
```
npm i -g typescript
```
> check tsc version
```
tsc --version
```with this we can use tsc command
we can use:
```
tsc --init
or
npx tsc --init
```> command to run ts file
```
tsc filename.ts
```** with this the file will generate a .js file which will work **
## no emit on error
> tsc filename.ts command emit the file and create javascript file.
> it will generate javascript file wheather it has error or not
> so with this --noEmitOnError flag we can stop this
> now if it has error then tsc command will not generate javascript```
tsc --noEmitOnError filename.ts
```