Last active
May 14, 2021 13:54
-
-
Save rkhaslarov/80371dc7ddd6dc24f2e5ebbbf0e62e36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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