我想为Highcharts模块Boost使用TypeScript定义
定义如下:
// Type definitions for Highcharts 4.2.6 (boost module)
// Project: http://www.highcharts.com/
// Definitions by: Daniel Martin <http://github.com/inad9300>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Static } from "highcharts";
declare function HighchartsBoost(H: Static): Static;
export = HighchartsBoost;
export as namespace HighchartsBoost;当我尝试将它们作为以下任一项导入时:
import { HighchartsBoost } from "highcharts/modules/boost";
import * as HighchartsBoost from "highcharts/modules/boost";我得到了错误:模块解析为非模块实体,不能使用此结构导入。
有什么想法吗?
发布于 2017-07-27 06:09:39
您应该使用:import HighchartsBoost from "highcharts/modules/boost";
https://stackoverflow.com/questions/45338224
复制相似问题