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

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";
主站蜘蛛池模板: 宁国市| 两当县| 土默特左旗| 永川市| 同江市| 喜德县| 裕民县| 鹤岗市| 南京市| 奉新县| 武平县| 罗定市| 社会| 神池县| 平江县| 呈贡县| 同德县| 民乐县| 岚皋县| 江门市| 高阳县| 个旧市| 广水市| 吉林市| 安泽县| 玛纳斯县| 台中县| 祁连县| 澄迈县| 海城市| 子洲县| 西平县| 开原市| 盈江县| 隆化县| 东乌| 宝兴县| 宿州市| 武胜县| 定结县| 盐池县|