Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invoke typescript definition issue #142

Open
jackmellis opened this issue Feb 4, 2021 · 3 comments
Open

invoke typescript definition issue #142

jackmellis opened this issue Feb 4, 2021 · 3 comments

Comments

@jackmellis
Copy link

I just upgraded from 0.2.18 to 0.2.19 and got hit by a tonne of typescript issues for invoke.

It looks like the args have been tightened up from ...any[] to fn: (ctx) => Promise

v0.2.18...v0.2.19#diff-7aa4473ede4abd9ec099e87fec67fd57afafaf39e05d493ab4533acc38547eb8R102

But from my usage (unless this has changed) the function passed to invoke also takes an event argument?

@matthewp
Copy link
Owner

matthewp commented May 7, 2021

Mind sending a pR?

@frederikhors
Copy link

Same here. A lot of confusion. How to fix this?

@frederikhors
Copy link

This is the commit. But here I see two invoke definitions... aa34adf#diff-7aa4473ede4abd9ec099e87fec67fd57afafaf39e05d493ab4533acc38547eb8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants