Skip to content

Jananijana2712/TypeScript_Decorators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript Decorators

Overview

This repository contains a TypeScript laboratory exercise completed during my undergraduate studies. The purpose of this exercise was to understand and implement TypeScript decorators, classes, and object-oriented programming concepts.

Learning Objectives

  • Understand TypeScript decorators
  • Explore class-based programming
  • Learn TypeScript compilation and configuration
  • Practice TypeScript syntax and features
  • Gain experience with JavaScript and TypeScript interoperability

Technologies Used

  • TypeScript
  • JavaScript
  • Node.js

Project Files

  • index.ts – Main TypeScript implementation
  • class.ts – Class and decorator examples
  • index.js – Compiled JavaScript output
  • class.js – Compiled JavaScript output
  • tsconfig.json – TypeScript compiler configuration
  • package.json – Project dependencies and scripts

Concepts Covered

Decorators

This project demonstrates the use of TypeScript decorators for:

  • Class decoration
  • Metadata enhancement
  • Code reusability
  • Custom behavior implementation

Object-Oriented Programming

  • Classes
  • Objects
  • Methods
  • Constructors
  • Encapsulation

How to Run

  1. Install dependencies
npm install
  1. Compile TypeScript
tsc
  1. Run the generated JavaScript
node index.js

Academic Purpose

This repository was created as part of a college laboratory exercise to gain practical experience with TypeScript and decorator-based programming concepts.

Learning Outcome

Through this exercise, I developed a foundational understanding of:

  • TypeScript development
  • Decorator patterns
  • TypeScript compiler configuration
  • Object-oriented programming principles

About

A TypeScript lab exercise demonstrating the implementation and usage of decorators, classes, and TypeScript configuration concepts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors