cc.Tween.sequence 使用 array 做参数时 ts 声明报错,运行时正常

  • Creator 版本: 2.4.1

  • 目标平台:全

  • 重现方式:编码时报错
    Argument of type ‘Action[]’ is not assignable to parameter of type ‘Action | Tween’.
    Type ‘Action[]’ is missing the following properties from type ‘Tween’: then, target, start, stop, and 21 more.
    运行时不影响。

查看 creator.d.ts 2662 行
sequence(action: Action|Tween<T>, ...actions: (Action|Tween<T>)[]): Tween<T>;

参考 creator.d.ts 779行修改后正常
export function sequence(actionOrActionArray: FiniteTimeAction|FiniteTimeAction[], ...tempArray: FiniteTimeAction[]): ActionInterval;

sequence(action: actionOrActionArray: (Action | Tween) | (Action | Tween<T>)[], ...tempArray: (Action | Tween<T>)[]): Tween<T>;