chore(system): handle type annotations

This commit is contained in:
moklick
2025-07-11 09:11:40 +02:00
parent 1c3d99bb33
commit 1a4c6c3ec8
+4 -2
View File
@@ -1,5 +1,8 @@
import type { Position, IsValidConnection } from '.'; import type { Position, IsValidConnection } from '.';
/**
* @inline
*/
export type HandleType = 'source' | 'target'; export type HandleType = 'source' | 'target';
export type Handle = { export type Handle = {
@@ -17,14 +20,13 @@ export type HandleProps = {
/** /**
* Type of the handle. * Type of the handle.
* @default "source" * @default "source"
* @example HandleType.Source, HandleType.Target
*/ */
type: HandleType; type: HandleType;
/** /**
* The position of the handle relative to the node. In a horizontal flow source handles are * The position of the handle relative to the node. In a horizontal flow source handles are
* typically `Position.Right` and in a vertical flow they are typically `Position.Top`. * typically `Position.Right` and in a vertical flow they are typically `Position.Top`.
* @default Position.Top * @default Position.Top
* @example Position.TopLeft, Position.TopRight, Position.BottomLeft, Position.BottomRight * @example Position.Top, Position.Right, Position.Bottom, Position.Left
*/ */
position: Position; position: Position;
/** /**