用TS写的代码,属性有警告,不知道怎么改

用TS写的属性:
@property([cc.AudioClip])
audioPaths: cc.AudioClip[] = [];

提示这个警告:
Please change the definition of property ‘audioPaths’ in class ‘AudioPlay’. Starting from v1.10,
properties in CCClass can not be abbreviated if they are of type RawAsset.
Please use the complete form.
For example, if property is Texture2D’s url array, the previous definition is:
audioPaths: [cc.Texture2D],
Now it should be changed to:
audioPaths: {
type: cc.Texture2D, // use ‘type:’ to define an array of Texture2D objects
default: []
},
(This helps us to successfully refactor all RawAssets at v2.0, sorry for the inconvenience. :cold_sweat: )

这种要怎么改?

creator版本 2.1.0

@property({
    type: [cc.AudioClip],
})
audioPaths: cc.AudioClip[] = [];
1赞

我擦,我之前就试过。。。脑子抽了,写成了
@property({
type: [cc.AudioClip],
default: []
})
audioPaths: cc.AudioClip[] = [];