Abeer
0
Q:

why can't define generic function in tsx file

const f = <T1, _>(arg1: T1) => {
   return { arg1 };
};

// or just adding a comma
const g = <T1,>(arg1: T1) => {
   return { arg1 };
};
0

New to Communities?

Join the community