Out of the box npx create-react-app app-name --template typescript
produces the following:
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 => ...