- Expert Angular
- Mathieu Nayrolles Rajesh Gunasundaram Sridhar Rao
- 68字
- 2021-07-15 17:05:33
Modules
TypeScript also supports modules As we deal with a large number of external JavaScript libraries, this modularity will really help us organize our code. Using the import statement, we can import modules as follows:
Import { inv } from "./Inventory"; var p = new inv.Product('mobile', 101);
Here, we just imported the previously created module, Inventory, created an instance of Product and assigned it to the variable p.
推薦閱讀
- Learning C# by Developing Games with Unity 2020
- Docker and Kubernetes for Java Developers
- Getting Started with React
- Redis入門指南(第3版)
- Python程序設(shè)計(第3版)
- Rust Cookbook
- 名師講壇:Java微服務(wù)架構(gòu)實戰(zhàn)(SpringBoot+SpringCloud+Docker+RabbitMQ)
- STM32F0實戰(zhàn):基于HAL庫開發(fā)
- Web程序設(shè)計(第二版)
- Oracle GoldenGate 12c Implementer's Guide
- 零基礎(chǔ)學(xué)C語言程序設(shè)計
- C語言程序設(shè)計與應(yīng)用(第2版)
- Learning Python Data Visualization
- SQL Server實例教程(2008版)
- C/C++代碼調(diào)試的藝術(shù)