Answers for "type annotations can only be used in typescript files.ts(8010)"

0

type annotations can only be used in typescript files.ts(8010)

// @ts-check

module.exports = {
  someMethod: (param: string): string => {
    return param;
  },
};
Posted by: Guest on July-23-2020

Code answers related to "type annotations can only be used in typescript files.ts(8010)"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language