書名: 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";
推薦閱讀
- Raspberry Pi for Secret Agents(Third Edition)
- Java面向對象程序開發及實戰
- Monitoring Elasticsearch
- 大學計算機基礎(第2版)(微課版)
- TradeStation交易應用實踐:量化方法構建贏家策略(原書第2版)
- Learning Salesforce Einstein
- Instant Lucene.NET
- Tableau 10 Bootcamp
- 零基礎學Java(第5版)
- Ubuntu Server Cookbook
- Practical Time Series Analysis
- jBPM6 Developer Guide
- jQuery EasyUI從零開始學
- Selenium自動化測試完全指南:基于Python
- 思維黑客:讓大腦重裝升級的75個超頻用腦法