- Learn React with TypeScript 3
- Carl Rippon
- 62字
- 2021-06-10 19:16:37
Default exports
We can specify a single item that can be exported by default using the default keyword:
export default interface {
name: string;
unitPrice: number;
}
Notice that we don't need to name the interface. We can then import a default exported item using an import statement without the curly braces with a name of our choice:
import Product from "./product";
推薦閱讀
- HornetQ Messaging Developer’s Guide
- Kibana Essentials
- Modular Programming with Python
- C語言程序設計案例教程(第2版)
- PyTorch自動駕駛視覺感知算法實戰
- Java EE 7 Development with NetBeans 8
- Troubleshooting PostgreSQL
- STM32F0實戰:基于HAL庫開發
- Spring+Spring MVC+MyBatis整合開發實戰
- Learning Unreal Engine Android Game Development
- GameMaker Essentials
- Distributed Computing in Java 9
- ActionScript 3.0從入門到精通(視頻實戰版)
- Flask Web開發實戰:入門、進階與原理解析
- 開源心法