fix(store): Getter type
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import useState from './state'
|
||||
import { ComputedGetters } from './getters'
|
||||
import {
|
||||
Actions,
|
||||
ComputedGetters,
|
||||
Connection,
|
||||
CoordinateExtent,
|
||||
Edge,
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import { ComputedRef } from 'vue'
|
||||
import { defaultEdgeTypes, defaultNodeTypes } from './state'
|
||||
import { ComputedGetters, State, GraphEdge, GraphNode } from '~/types'
|
||||
import { State, GraphEdge, GraphNode, Getters } from '~/types'
|
||||
import { getNodesInside, isEdgeVisible } from '~/utils'
|
||||
|
||||
export type ComputedGetters<N = any, E = N> = { [key in keyof Getters<N, E>]: ComputedRef<Getters<N, E>[key]> }
|
||||
|
||||
export default (state: State): ComputedGetters => {
|
||||
const getEdgeTypes = computed(() => {
|
||||
const edgeTypes: Record<string, any> = {
|
||||
|
||||
Reference in New Issue
Block a user