Passe o tipo genérico para a função AROW Typescript

const foo = <T>(x: T) => x; // ERROR : unclosed `T` tag
Courageous Crab