在测试一些从类型记录文件中转出的javascript代码时,我得到了以下错误。
以下是错误:
Error: _mapAction2.default is not a constructor
下面是导致错误的代码行:
var mapAction = new MapAction(MapActionType.POLYGONDRAGGED, []);
这里是原始类型记录文件map-action.ts
import { IMapAction} from './imap-action';
import { MapActionType } from './map-action-typ