An open API service indexing awesome lists of open source software.

https://github.com/alicw/typescript-demo

typescript demonstration - first practice
https://github.com/alicw/typescript-demo

Last synced: 6 months ago
JSON representation

typescript demonstration - first practice

Awesome Lists containing this project

README

          

# typescript-demo
typescript demonstration - first practice

## useful commands

to compile:

tsc consoleLog.ts

to run:

node consoleLog.js

to compile .tsx files:

tsc --jsx react Main.tsx

### bugs

'AbortSignal' was also declared here: (https://github.com/microsoft/TypeScript/issues/51567)

Delete the pacakge-lock.json file and run the below to re-install dependencies

npm i -d @types/node

You should be able to compile without the error now.