We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4af232f + 7f4678f commit c2fe09cCopy full SHA for c2fe09c
.changeset/bitter-pears-tickle.md
@@ -0,0 +1,5 @@
1
+---
2
+"svelte-file-tree": patch
3
4
+
5
+fix: allow destructuring `source` and `items` in drag and drop callbacks
packages/svelte-file-tree/src/lib/components/types.ts
@@ -92,6 +92,7 @@ export type ItemDragEventArgs<
92
type: "item";
93
input: DragInput;
94
source: TreeItemState<TFile, TFolder>;
95
+ items?: never;
96
destination: TFolder | TTree;
97
};
98
@@ -102,6 +103,7 @@ export type ExternalDragEventArgs<
102
103
> = {
104
type: "external";
105
106
+ source?: never;
107
items: Array<DataTransferItem>;
108
109
0 commit comments