type on destructuring arguments in function typescript code example Example: array destructuring typescript type function f([a,b,c]: [number, number, number]) { }