fix(types): edge-text typing
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -20,7 +20,7 @@ interface BezierEdgeProps extends EdgeProps {
|
||||
| string
|
||||
| {
|
||||
component: any
|
||||
props?: EdgeTextProps
|
||||
props?: Record<string, any> & Partial<EdgeTextProps>
|
||||
}
|
||||
labelStyle?: CSSProperties
|
||||
labelShowBg?: boolean
|
||||
|
||||
@@ -8,7 +8,7 @@ interface EdgeTextProps {
|
||||
| string
|
||||
| {
|
||||
component: any
|
||||
props?: EdgeTextProps
|
||||
props?: Record<string, any> & Partial<EdgeTextProps>
|
||||
}
|
||||
labelStyle?: CSSProperties
|
||||
labelShowBg?: boolean
|
||||
|
||||
@@ -20,7 +20,7 @@ interface SmoothStepEdgeProps extends EdgeProps {
|
||||
| string
|
||||
| {
|
||||
component: any
|
||||
props?: EdgeTextProps
|
||||
props?: Record<string, any> & Partial<EdgeTextProps>
|
||||
}
|
||||
labelStyle?: CSSProperties
|
||||
labelShowBg?: boolean
|
||||
|
||||
@@ -19,7 +19,7 @@ interface StepEdgeProps extends EdgeProps {
|
||||
| string
|
||||
| {
|
||||
component: any
|
||||
props?: EdgeTextProps
|
||||
props?: Record<string, any> & Partial<EdgeTextProps>
|
||||
}
|
||||
labelStyle?: CSSProperties
|
||||
labelShowBg?: boolean
|
||||
|
||||
@@ -20,7 +20,7 @@ interface StraightEdgeProps extends EdgeProps {
|
||||
| string
|
||||
| {
|
||||
component: any
|
||||
props?: EdgeTextProps
|
||||
props?: Record<string, any> & Partial<EdgeTextProps>
|
||||
}
|
||||
labelStyle?: CSSProperties
|
||||
labelShowBg?: boolean
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ export interface Edge<T = any> {
|
||||
| string
|
||||
| {
|
||||
component: any
|
||||
props?: EdgeTextProps
|
||||
props?: Record<string, any> & Partial<EdgeTextProps>
|
||||
}
|
||||
labelStyle?: any
|
||||
labelShowBg?: boolean
|
||||
|
||||
Reference in New Issue
Block a user