chore(system): handle type annotations
This commit is contained in:
@@ -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;
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user