Skip to content

hackthefutureofeducation/ts-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript Demo

This repository contains a simple TypeScript demonstration created for the Vijua TypeScript presentation. It showcases core TypeScript features such as types, interfaces, and generics, and demonstrates how TypeScript is compiled into JavaScript.


Prerequisites

  • Node.js (v18+ recommended)
  • npm

Setup

Install dependencies:

npm install

Run the Demo

Compile the TypeScript file:

npx tsc index.ts

Run the generated JavaScript:

node index.js

What This Demo Covers

  • Primitive types (string, number, boolean)
  • Typed functions
  • Interfaces
  • Generics
  • Type safety & compile-time errors
  • TypeScript → JavaScript compilation flow

Project Structure

.
├── index.ts   # TypeScript demo
├── index.js   # Compiled JavaScript output
└── README.md

Purpose

This demo is intended for technical audiences to quickly understand how TypeScript adds type safety, structure, and maintainability to JavaScript projects.


About

This is a TypeScript demonstration for the Vijua presentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors