-
Notifications
You must be signed in to change notification settings - Fork 0
Quick setup
Jorge Castro edited this page Nov 10, 2025
·
1 revision
- Download and install Node.js.
- Open the terminal and install TypeScript globally:
npm install -g typescript - Create a JavaScript file and add some content; let's call it
index.ts:console.log("Hello world!");
- Transpile your file into a JavaScript file:
tsc index.ts - Verify that a
index.jsfile was created at the side of theindex.tsfile. - Run your new JavaScript file with Node:
node index.js
You can use the tsc index.ts --watch command to continuously monitor your TypeScript file for changes and transpile it to JavaScript every time your .ts file is saved.
- Sync-Obsidian-with-GitHub-on-iOS
- Obsidian-community-plugins
- Optimizing-Novel-Word-Count-Plugin-for-Git-Users
- What is TypeScript, and why you should use it
- Quick setup
- Inference and type annotations
- Fundamental Types
- Object Types
- Union Types
- Type Aliases and Interfaces
- Type Assertions
- Literal Types
- null and undefined
- Narrowing
- Creating Types from Types
- Common Built‐in and Utility Types
- tsc CLI ‐ (The Compiler)
- Avoid using Object or {}
- Ignoring TypeScript errors
- TypeScript resources