我正在尝试创建一个函数,该函数可以按对象键对对象数组进行排序,但是类型记录会抛出一个错误,说明对象类型不是"any“、"number”、"bigint“,也不是"enum”。KeysOfType<T, number>>( propertyKey: K // The left-hand side of an arithmetic operationmust be of type 'any', '
'number | boolean' is not assignable to parameter of type 'number'.对于newX,相关行:azimuthalOffset.value -= (newX - prevX) / 6
The left-hand side of an arithmetic operationmust be of type 'any', 'number', 'bigint</e