Closed jakelowen closed 5 years ago
I think you missed the dependencies. The example uses a fork of dataloader which includes this typings patch https://github.com/facebook/dataloader/pull/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: