fix(types): marker types & flowstate id removed from state

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 9dea4bcd61
commit 0eb162f622
3 changed files with 10 additions and 11 deletions
+2 -2
View File
@@ -83,8 +83,8 @@ export interface EdgeProps<Data = any> {
labelBgBorderRadius?: number
animated?: boolean
updatable?: boolean
markerStart?: EdgeMarkerType
markerEnd?: any
markerStart?: string
markerEnd?: string
}
export interface SmoothStepEdgeProps<T = any> extends EdgeProps<T> {
+1 -2
View File
@@ -8,8 +8,7 @@ import { GraphNode, CoordinateExtent, Node } from './node'
import { D3Selection, D3Zoom, D3ZoomHandler, KeyCode, PanOnScrollMode } from './zoom'
import { FlowHooks } from './hooks'
export interface FlowState<N = any, E = N> extends FlowOptions<N, E> {
id?: never
export interface FlowState<N = any, E = N> extends Omit<FlowOptions<N, E>, 'id'> {
hooks: FlowHooks
instance?: FlowInstance