From 0669606050bb2138a44a1591176ac8e16afeb0f1 Mon Sep 17 00:00:00 2001 From: Dimitri POSTOLOV Date: Sat, 5 Apr 2025 17:15:42 +0200 Subject: [PATCH] Fix typo `React Flow` -> `Svelte Flow` --- .changeset/chilly-parrots-rest.md | 5 +++++ packages/svelte/src/lib/types/edges.ts | 4 ++-- packages/svelte/src/lib/utils/index.ts | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/chilly-parrots-rest.md diff --git a/.changeset/chilly-parrots-rest.md b/.changeset/chilly-parrots-rest.md new file mode 100644 index 00000000..9801602e --- /dev/null +++ b/.changeset/chilly-parrots-rest.md @@ -0,0 +1,5 @@ +--- +'@xyflow/svelte': patch +--- + +Fix typo `React Flow` -> `Svelte Flow` diff --git a/packages/svelte/src/lib/types/edges.ts b/packages/svelte/src/lib/types/edges.ts index b2f6ba7e..2a9a1445 100644 --- a/packages/svelte/src/lib/types/edges.ts +++ b/packages/svelte/src/lib/types/edges.ts @@ -11,8 +11,8 @@ import type { import type { Node } from '$lib/types'; /** - * An `Edge` is the complete description with everything React Flow needs - *to know in order to render it. + * An `Edge` is the complete description with everything Svelte Flow needs to know in order to + * render it. * @public */ export type Edge< diff --git a/packages/svelte/src/lib/utils/index.ts b/packages/svelte/src/lib/utils/index.ts index 10f205ca..ed1aef35 100644 --- a/packages/svelte/src/lib/utils/index.ts +++ b/packages/svelte/src/lib/utils/index.ts @@ -3,7 +3,7 @@ import { isNodeBase, isEdgeBase } from '@xyflow/system'; import type { Edge, Node } from '$lib/types'; /** - * Test whether an object is useable as a Node + * Test whether an object is usable as a Node * @public * @remarks In TypeScript this is a type guard that will narrow the type of whatever you pass in to Node if it returns true * @param element - The element to test @@ -13,7 +13,7 @@ export const isNode = (element: unknown): element isNodeBase(element); /** - * Test whether an object is useable as an Edge + * Test whether an object is usable as an Edge * @public * @remarks In TypeScript this is a type guard that will narrow the type of whatever you pass in to Edge if it returns true * @param element - The element to test