一切正常,除了typescript似乎看到一个类型不匹配的事实。Type 'DefaultClient<unknown>' is not assignable to type 'ApolloClient<object>'.客户端与阿波罗的token authentication documentation中所示的客户端非常相似 import { ApolloClient } from 'apollo-client';
im
在我的api服务中,我有这个简单的getUsers函数来获取Api上的所有用户。ApiSettings.apiBasepath + 'users/') this.userData = users; }
} 这是我在编译时得到的类型错误Type 'Object' is not assignable to type 'IUser[]