-
Notifications
You must be signed in to change notification settings - Fork 14
Q: eslint: Missing return type on function (ModuleActionContext) #29
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
Comments
This context parameter is of type |
I don't want to have eslint warnings about returned type of |
In |
I guess we can close this issue? |
@paleo I don't understand which code should be in my usecase:
|
Maybe something like: const getTypedContext = (ctx: any) => moduleActionContext(ctx, modSomeForm) as DirectActionContext<never, typeof modSomeForm>; But I guess that useless rules from the linter should just be disabled. |
@paleo Typescript declarations are not useless =)) |
Uh oh!
There was an error while loading. Please reload this page.
https://github.com/paleo/direct-vuex#in-a-vuex-module
const mod1ActionContext = (context: any) => moduleActionContext(context, mod1)
<R,O>
should be inDirectActionContext
here?The text was updated successfully, but these errors were encountered: