update(types): Rename FlowStore to Store and ReactiveFlowStore to FlowStore
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import useStore from './useStore'
|
||||
import useHooks from './useHooks'
|
||||
import { EmitFunc, ReactiveFlowStore } from '~/types'
|
||||
import { EmitFunc, FlowStore } from '~/types'
|
||||
|
||||
let key = 0
|
||||
export const initFlow = (emit: EmitFunc, id = `vue-flow-${key++}`): ReactiveFlowStore => {
|
||||
export const initFlow = (emit: EmitFunc, id = `vue-flow-${key++}`): FlowStore => {
|
||||
const store = useStore({ id })
|
||||
useHooks(store, emit)
|
||||
return store
|
||||
|
||||
Reference in New Issue
Block a user