diff --git a/packages/overmind-vue/src/vue3.ts b/packages/overmind-vue/src/vue3.ts index 71002249..c6d5b5df 100644 --- a/packages/overmind-vue/src/vue3.ts +++ b/packages/overmind-vue/src/vue3.ts @@ -140,12 +140,12 @@ export function createStateHook< } export interface ActionsHook> { - (): Ref + (): Context['actions'] object>( cb: CB ): CB extends (actions: Context['actions']) => infer O ? O extends object - ? Ref + ? O : never : never } @@ -161,12 +161,12 @@ export function createActionsHook< } export interface EffectsHook> { - (): Ref + (): Context['effects'] object>( cb: CB ): CB extends (effects: Context['effects']) => infer O ? O extends object - ? Ref + ? O : never : never }