Search code examples
typescriptredux-saga

Return type of a `yield call`


I've noticed that the result of a yield call effect is typed as any when used as

const data = yield call(f);

while f is a () => Promise<number> function.

Am I missing something or is it a redux-saga typings limitation?


Solution

  • Check this ongoing thread, tldr; it's a typescript limitation