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.
- Understand TypeScript decorators
- Explore class-based programming
- Learn TypeScript compilation and configuration
- Practice TypeScript syntax and features
- Gain experience with JavaScript and TypeScript interoperability
- TypeScript
- JavaScript
- Node.js
index.ts– Main TypeScript implementationclass.ts– Class and decorator examplesindex.js– Compiled JavaScript outputclass.js– Compiled JavaScript outputtsconfig.json– TypeScript compiler configurationpackage.json– Project dependencies and scripts
This project demonstrates the use of TypeScript decorators for:
- Class decoration
- Metadata enhancement
- Code reusability
- Custom behavior implementation
- Classes
- Objects
- Methods
- Constructors
- Encapsulation
- Install dependencies
npm install- Compile TypeScript
tsc- Run the generated JavaScript
node index.jsThis repository was created as part of a college laboratory exercise to gain practical experience with TypeScript and decorator-based programming concepts.
Through this exercise, I developed a foundational understanding of:
- TypeScript development
- Decorator patterns
- TypeScript compiler configuration
- Object-oriented programming principles