After running ESLint on my TypeScript code, I received a warning that says:
"Missing return type on function.eslint(@typescript-eslint/explicit-function-return-type)". The warning specifically points to the lambda function within the map function.
private headerSelectionChanged(event): void {
const { checked } = event.syntheticEvent.target;
const newGridData = this.props.gridData.map(item => Object.assign(item, { selected: checked }));
this.updateGridData(newGridData);
}
I am unsure what is causing this warning. Can you help me understand and fix it?