【发布时间】:2019-10-02 07:44:21
【问题描述】:
我在以下 TypeScript 代码中收到 Eslint 警告:
"Missing return type on function.eslint(@typescript-eslint/explicit-function-return-type)" 警告指的是 map 函数中的 lambda。
private headerSelectionChanged(event): void {
const { checked } = event.syntheticEvent.target;
const newGridData = this.props.gridData.map(item => Object.assign(item, { selected: checked }));
this.updateGridData(newGridData);
}
怎么了?我该如何解决?
【问题讨论】:
标签: typescript eslint