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

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";
主站蜘蛛池模板: 阳新县| 合川市| 蓬莱市| 永年县| 皮山县| 和田县| 资溪县| 大兴区| 温宿县| 沂水县| 武山县| 丹阳市| 罗江县| 土默特左旗| 平乡县| 洪湖市| 龙陵县| 兴安盟| 大化| 滕州市| 西藏| 麻阳| 烟台市| 平安县| 台湾省| 嘉荫县| 柘城县| 霞浦县| 海宁市| 新乡市| 元谋县| 盐亭县| 九江市| 望江县| 方城县| 安阳县| 陈巴尔虎旗| 墨江| 泉州市| 霸州市| 平塘县|