Skip to content

Instantly share code, notes, and snippets.

@rkhaslarov
Last active May 14, 2021 13:54
Show Gist options
  • Save rkhaslarov/80371dc7ddd6dc24f2e5ebbbf0e62e36 to your computer and use it in GitHub Desktop.
Save rkhaslarov/80371dc7ddd6dc24f2e5ebbbf0e62e36 to your computer and use it in GitHub Desktop.
export function call<Ctx extends { [P in Name]:
(this: Ctx, ...args: any[]) => any }, Name extends string>(
ctxAndFnName: [Ctx, Name],
...args: Parameters<Ctx[Name]>
): CallEffect<SagaReturnType<Ctx[Name]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment