我不断得到:
warning Missing return type on function @typescript-eslint/explicit-function-return-type
但是我的函数如下:
type GetSpecificList = (params: GetSpecificListParams) => Promise<List | undefined>;
export const getSpecificList = (api: ApiType): GetSpecificList => async p => {...}
即使类型是使用类型化函数提供的,但eslint似乎仍会抱怨吗? 关于此规则我缺少什么?