Refactor(types): unify node and edge handling (#3978)

* refactor(types): unify node and edge type behaviour

* chore(changelogs): update

* chore(examples): cleanup
This commit is contained in:
Moritz Klack
2024-03-05 13:15:28 +01:00
committed by GitHub
parent 3122a3ac21
commit 4a12a9f781
29 changed files with 174 additions and 104 deletions
@@ -1,5 +1,4 @@
<script lang="ts">
import type { ChangeEventHandler } from 'svelte/elements';
import { writable } from 'svelte/store';
import {
SvelteFlow,
@@ -1,10 +1,10 @@
<script lang="ts">
import type { Writable } from 'svelte/store';
import { Handle, Position, type NodeProps } from '@xyflow/svelte';
import { Handle, Position, type NodeProps, type Node } from '@xyflow/svelte';
type $$Props = NodeProps;
type $$Props = NodeProps<Node<{ colorStore: Writable<string> }>>;
export let data: { colorStore: Writable<string> };
export let data: $$Props['data'];
const { colorStore } = data;
</script>