类型 'number' 不可分配给类型 'Spec<any, never>'.ts(2322)

Type 'number' is not assignable to type 'Spec<any, never>'.ts(2322)

我在 items: { $splice: [[[index], 1]] } 上遇到上述错误。

我该如何解决这个问题?

我的部分回购:https://github.com/TheoMer/next_apollo

将 [index] 设为 any 以消除类型错误。

[[index] as any,1]