Home > front end >  reportWebVitals missing return type
reportWebVitals missing return type

Time:10-31

Out of the box npx create-react-app app-name --template typescript produces the following:

enter image description here

I couldn't seem to find anywhere on what the expected return type is for this. Anyone have any ideas?

CodePudding user response:

Just assign return type to be void as linter suggests:

const reportWebVitals = (onPerfEntry: ReportHandler): void => ...
  • Related