为了显著提升代码的可读性与可维护性,当下众多项目纷纷采用 TypeScript 进行构建。很多用户在使用Designer的时候,发现引入GC后,定义designer时会出现问题,如下图所示,会提示”TS2694: Namespace GC.Spread.Sheets has no exported member Designer “
那么 ,该怎么办呢?
其实,很简单:
import * as GC from "@grapecity-software/spread-sheets";
import * as GCD from "@grapecity-software/spread-sheets-designer";