refactor(types)!: Remove ElementId type
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ElementId, Position } from './flow'
|
||||
import { Position } from './flow'
|
||||
import { HandleType } from './components'
|
||||
|
||||
export enum ConnectionLineType {
|
||||
@@ -9,10 +9,10 @@ export enum ConnectionLineType {
|
||||
}
|
||||
|
||||
export interface Connection {
|
||||
source: ElementId
|
||||
target: ElementId
|
||||
sourceHandle?: ElementId
|
||||
targetHandle?: ElementId
|
||||
source: string
|
||||
target: string
|
||||
sourceHandle?: string
|
||||
targetHandle?: string
|
||||
}
|
||||
|
||||
export type ConnectionLineProps = {
|
||||
@@ -28,8 +28,8 @@ export type ConnectionLineProps = {
|
||||
|
||||
export type OnConnectFunc = (connection: Connection) => void
|
||||
export type OnConnectStartParams = {
|
||||
nodeId?: ElementId
|
||||
handleId?: ElementId
|
||||
nodeId?: string
|
||||
handleId?: string
|
||||
handleType?: HandleType
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export enum ConnectionMode {
|
||||
}
|
||||
|
||||
export type SetConnectionId = {
|
||||
connectionNodeId: ElementId | undefined
|
||||
connectionHandleId: ElementId | undefined
|
||||
connectionNodeId: string | undefined
|
||||
connectionHandleId: string | undefined
|
||||
connectionHandleType: HandleType | undefined
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user