refactor(types): only export HandleProps but not HandleComponentProps

This commit is contained in:
moklick
2024-05-07 16:22:26 +02:00
parent 5093213116
commit 2b0d75ddaa
8 changed files with 19 additions and 41 deletions
+1 -3
View File
@@ -1,4 +1,4 @@
import type { Position, OnConnect, IsValidConnection } from '.';
import type { Position, IsValidConnection } from '.';
export type HandleType = 'source' | 'target';
@@ -42,8 +42,6 @@ export type HandleProps = {
isConnectableStart?: boolean;
/** Should you be able to connect to this handle */
isConnectableEnd?: boolean;
/** Callback called when connection is made */
onConnect?: OnConnect;
/** Callback if connection is valid
* @remarks connection becomes an edge if isValidConnection returns true
*/