引擎3.3版本后,请问如果增加.d.ts文件,没有对应的.js文件, .js文件会由打包时(或者是平台打入),根据不同平台要不要增加,或者增加不同的。
但现在引擎代码只要有.d.ts文件,就会报错。
// TestPlatform.d.ts
declare class TestPlatform {
public a: number;
public f1(a: number): void;
}
export const testPlatform: TestPlatform;
// 调用声名代码
testPlatform?.f1(3);
无法从 file:///D:/Workspace/workspace/CarCraftIO/assets/scripts/GameView.ts 解析出模块 ./TestPlatform,已将其视为外部模块。
这是因为:Error: 以 file:///D:/Workspace/workspace/CarCraftIO/assets/scripts/GameView.ts 为起点找不到模块 "./TestPlatform"
