type arguments cna on ly be used in a .ts file code example
Example: type annotations can only be used in typescript files.ts(8010)
// @ts-check
module.exports = {
someMethod: (param: string): string => {
return param;
},
};
// @ts-check
module.exports = {
someMethod: (param: string): string => {
return param;
},
};