[]编译时候报错 如下 怎么解决呢
libs/LayaAir.d.ts(4252,38): error TS2694: Namespace 'laya.d3.core' has no exported member 'particle'.
libs/LayaAir.d.ts(26700,11): error TS2417: Class static side 'typeof RenderTarget2D' incorrectly extends base class static side 'typeof Texture'.
Types of property 'create' are incompatible.
Type '(w: number, h: number, surfaceFormat?: number, surfaceType?: number, depthStencilFormat?: number,...' is not assignable to type '(source: any, x: number, y: number, width: number, height: number, offsetX?: number, offsetY?: nu...'.
Types of parameters 'mipMap' and 'offsetX' are incompatible.
Type 'number' is not assignable to type 'boolean'.
libs/LayaAir.d.ts(26700,11): error TS2417: Class static side 'typeof RenderTarget2D' incorrectly extends base class static side 'typeof Texture'.
Types of property 'create' are incompatible.
Type '(w: number, h: number, surfaceFormat?: number, surfaceType?: number, depthStencilFormat?: number,...' is not assignable to type '(source: any, x: number, y: number, width: number, height: number, offsetX?: number, offsetY?: nu...'.
Types of parameters 'mipMap' and 'offsetX' are incompatible.
Type 'number' is not assignable to type 'boolean'.
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
cuixueying
赞同来自: