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

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";
主站蜘蛛池模板: 金塔县| 江西省| 六盘水市| 靖江市| 天等县| 岱山县| 彭山县| 榆社县| 浦城县| 鄄城县| 乌兰察布市| 崇州市| 碌曲县| 达孜县| 青铜峡市| 调兵山市| 河东区| 金昌市| 富裕县| 荃湾区| 宜州市| 张家川| 迭部县| 溧阳市| 和政县| 石柱| 沁水县| 崇仁县| 双柏县| 格尔木市| 黔西| 巫溪县| 平南县| 泸定县| 饶平县| 友谊县| 虎林市| 林口县| 枣庄市| 阿瓦提县| 丰镇市|