我正在使用React开发一个Web应用程序,并希望使用Flow添加类型。
GET方法是我的服务接口类的一部分。该类具有GET
,POST
,PUT
等方法。这些方法返回一个axios promise,将在某种程度上使用:
import Interface from './interface'
const api = new Interface();
export const service = {
users: () => { return api.GET('users') },
//...more endpoints
}
为什么我收到来自Flow的警告,绿色下划线的代码是“未覆盖”?