官术网_书友最值得收藏!

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";
主站蜘蛛池模板: 兖州市| 潼关县| 正镶白旗| 和顺县| 砀山县| 武定县| 许昌市| 犍为县| 西丰县| 永安市| 信丰县| 蓝山县| 陆丰市| 安陆市| 阆中市| 罗城| 柏乡县| 秦皇岛市| 萨嘎县| 松原市| 永康市| 道孚县| 留坝县| 麻江县| 仁怀市| 泸西县| 秭归县| 津市市| 马鞍山市| 介休市| 丁青县| 绍兴市| 天水市| 西充县| 湘阴县| 靖宇县| 革吉县| 克东县| 芒康县| 登封市| 玉屏|