Sitemap
Medium Logo



TypeScript provides modules and namespaces in order to prevent the default global scope of the code and also to organize and maintain a large code base. Modules are a way to create a local scope in the file. So, all variables, classes, functions, etc. that are declared in a module are not accessible outside the module.



In the above Assignment , I will create Multiple Typescript files like student.ts , teacher.ts , pricipal.ts , clerk.ts where I store data and also create another typescript file name app.ts .

Then I will Export my typescript file wear I store data to app.ts

And Import all data form every file in app.ts

I also change configuration of Ts.config file , Pacakage json file.

Hammad ali

Hammad ali

AI Automation & Frontend Developer | SaaS & Chatbot Specialist | Helping Businesses & Startups Automate & Grow