refactor(types)!: Remove ElementId type

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 fe0eeaeae9
commit f00f34d84b
28 changed files with 99 additions and 150 deletions
+9 -9
View File
@@ -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
}