【发布时间】:2020-11-19 02:16:04
【问题描述】:
我是打字稿的新手,我正在使用 Wijimo 库,我正在尝试实现以下接口
interface IItemCreator<T = any> {
(): T;
}
我已经尝试了以下
export class SystemPageModel implements wijmo.collections.IItemCreator<SystemPageModel> {
constructor(): SystemPageModel {
return new SystemPageModel();
}
public PK: Guid;
public Name: string;
public SystemName: string;
public SystemTypePK: string;
public ff(): SystemPageModel { };
}
【问题讨论】:
标签: typescript wijmo