1. Creating a TypeScript File in VS Code | A Beginner's Guide to Getting Started

Опубликовано: 03 Июнь 2026
на канале: AI Hub Studio
71
8

In this video, I have covered how to make a basic TypeScript File.
Steps Followed:
1. Create your folder.
2. Open cmd from there, as illustrated in the video.
3. Type code . in cmd press enter to open the file in VS code.
4. Name a new file and save with ts extension (for TypeScript file).
5. Goto terminal.
6. Type: tsc -v (to check your version of TypeScript Compiler Installed)
7. Type: tsc --init
This command creates a tsconfig.json (configuration file to compile your code).
8. Type: npm init -y
(This command creates a package.json file, which is used to manage your project's dependencies and scripts. )
9. Type code.
10. Compile with tsc command.
11. Run using node index
(here index is the filename)
or
node filename
--------------------------------------------------------------------------
#TypeScript #CodingTutorial #TypeScriptTutorial #Programming #Beginners #Tech #LearnToCode #generativeai #TechEducation #CodeWithMe #BuildWithAI