fix(flow): store & usevueflow types

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent c1594b0071
commit 95bc46e616
9 changed files with 25 additions and 32 deletions
+4 -6
View File
@@ -30,14 +30,12 @@ export class Storage {
public create(id: string, options?: Partial<FlowOptions>) {
const store = useStore(options)
const flow = {
const flow: UseVueFlow = {
id,
store: reactive(store),
store,
...(store as any),
...toRefs(store.state),
...store.getters,
...store.actions,
...store.hooksOn,
} as unknown as UseVueFlow
}
this.set(id, flow)
return flow
}