From 335458176ae5ae6c476944d06141e8745c3babaa Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 3 Aug 2022 11:21:42 +0530 Subject: [PATCH] fix(gui-v2): return type correction of provider Signed-off-by: Pranav C --- packages/nc-gui-v2/composables/useInjectionState/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/composables/useInjectionState/index.ts b/packages/nc-gui-v2/composables/useInjectionState/index.ts index 6cd0f3dbd9..a714fd5f3c 100644 --- a/packages/nc-gui-v2/composables/useInjectionState/index.ts +++ b/packages/nc-gui-v2/composables/useInjectionState/index.ts @@ -3,7 +3,7 @@ import type { InjectionKey } from 'vue' export function useInjectionState( composable: (...args: Arguments) => Return, keyName = 'InjectionState', -): readonly [useProvidingState: (...args: Arguments) => void, useInjectedState: () => Return | undefined] { +): readonly [useInjectionState: (...args: Arguments) => Return, useInjectedState: () => Return | undefined] { const key: string | InjectionKey = Symbol(keyName) const useProvidingState = (...args: Arguments) => {