Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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

// @ts-check

module.exports = {
  someMethod: (param: string): string => {
    return param;
  },
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #type #annotations #typescript
ADD COMMENT
Topic
Name
6+9 =