vscode-javascript-booster
vscode-javascript-booster copied to clipboard
"Convert to arrow function" loses TypeScript generics
function identity<T>(t: T): T {
return t;
}
After executing "convert to arrow function":
Expected output:
const identity = <T>(t: T): T => {
return t;
};
Actual output:
const identity = (t: T): T => {
return t;
};