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
- Host: GitHub
- URL: https://github.com/alicw/typescript-demo
- Owner: AliCW
- Created: 2024-10-25T08:37:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T14:33:37.000Z (over 1 year ago)
- Last Synced: 2025-08-31T02:39:42.634Z (11 months ago)
- Language: JavaScript
- Size: 1.29 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.