function f([a,b,c]) { // this works but a,b and c are any }
有可能写出类似的东西吗?
function f([a: number,b: number,c: number]) { // being a, b and c typed as number }
arrays types destructuring typescript
arrays ×1
destructuring ×1
types ×1
typescript ×1