You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type '(ids: string[]) => PromiseLike<Users[]>' is not assignable to parameter of type 'BatchLoadFn<string, Users>'.
Type 'PromiseLike<Users[]>' is missing the following properties from type 'Promise<(Users | Error)[]>': catch, [Symbol.toStringTag], finallyts(2345)
The text was updated successfully, but these errors were encountered:
I think you missed the dependencies. The example uses a fork of dataloader which includes this typings patch graphql/dataloader#146 that was never merged. If you change byColumnLoader to be an async function (async byColumnLoader) it should work as well.
Using code copied straight from ghost example. UserSource byIdLoader throws a tslint error:
Code:
dataSources/UserLoader
utils/loaderUtils
Gives tslint error:
The text was updated successfully, but these errors were encountered: