From c8d3ff6a29993f0823cd0974c0ad68bcbf8affaf Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 18 Nov 2021 23:42:37 +0100 Subject: [PATCH] update: add return type to useVueFlow default export Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- src/composables/useVueFlow.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/composables/useVueFlow.ts b/src/composables/useVueFlow.ts index e27ffbf9..0e129c10 100644 --- a/src/composables/useVueFlow.ts +++ b/src/composables/useVueFlow.ts @@ -1,6 +1,6 @@ import useHooks from './useHooks' import useStore from './useStore' -import { EmitFunc, FlowOptions } from '~/types' +import { EmitFunc, FlowOptions, FlowStore } from '~/types' export const initFlow = (emit: EmitFunc, options: Partial) => { const store = useStore(options) @@ -12,4 +12,4 @@ export const initFlow = (emit: EmitFunc, options: Partial) => { } } -export default (options?: Partial) => useStore(options) +export default (options?: Partial): FlowStore => useStore(options)