From 2effb90b1c593097d5e137aaf8be2c163cefe086 Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 6 May 2025 23:30:49 +0200 Subject: [PATCH 1/2] chore(react): cleanup tsdoc annotations for ReactFlow --- packages/react/src/types/component-props.ts | 33 ++------------------- 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/packages/react/src/types/component-props.ts b/packages/react/src/types/component-props.ts index 63f0a1be..e1bf01e1 100644 --- a/packages/react/src/types/component-props.ts +++ b/packages/react/src/types/component-props.ts @@ -85,22 +85,11 @@ export interface ReactFlowProps; @@ -148,7 +136,6 @@ export interface ReactFlowProps void; /** @@ -209,7 +196,6 @@ export interface ReactFlowProps void; /** * When a connection line is completed and two nodes are connected by the user, this event fires with the new connection. - * * You can use the `addEdge` utility to convert the connection to a complete edge. * @example // Use helper function to update edges onConnect * import ReactFlow, { addEdge } from '@xyflow/react'; @@ -277,9 +263,7 @@ export interface ReactFlowProps; /** * Custom node types to be available in a flow. - * * React Flow matches a node's type to a component in the `nodeTypes` object. - * @TODO check if @default is correct * @default { * input: InputNode, * default: DefaultNode, @@ -294,9 +278,7 @@ export interface ReactFlowProps void; /** * By default, the viewport extends infinitely. You can use this prop to set a boundary. - * * The first pair of coordinates is the top left boundary and the second pair is the bottom right. * @default [[-∞, -∞], [+∞, +∞]] * @example [[-1000, -10000], [1000, 1000]] @@ -502,7 +481,6 @@ export interface ReactFlowProps; /** * With a threshold greater than zero you can delay node drag events. - * * If threshold equals 1, you need to drag the node 1 pixel before a drag event is fired. - * - * 1 is the default value, so clicks don't trigger drag events. + * 1 is the default value, so that clicks don't trigger drag events. * @default 1 */ nodeDragThreshold?: number; From 67e1cb6891078dbcb9e1d06b9f9fdbfc79860ab6 Mon Sep 17 00:00:00 2001 From: moklick Date: Tue, 6 May 2025 23:31:28 +0200 Subject: [PATCH 2/2] chore(changeset): add --- .changeset/hot-phones-knock.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/hot-phones-knock.md diff --git a/.changeset/hot-phones-knock.md b/.changeset/hot-phones-knock.md new file mode 100644 index 00000000..d041b486 --- /dev/null +++ b/.changeset/hot-phones-knock.md @@ -0,0 +1,5 @@ +--- +'@xyflow/react': patch +--- + +Cleanup TSDoc annotations for ReactFlow