From 236efaeee1b11275857913944a7b85664dc7cd8c Mon Sep 17 00:00:00 2001 From: Puru Vijay <47742487+PuruVJ@users.noreply.github.com> Date: Tue, 23 Apr 2024 18:57:44 +0530 Subject: [PATCH] fix: options are no longer required. Regression from before (#160) --- .changeset/twelve-needles-obey.md | 5 +++++ packages/svelte/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/twelve-needles-obey.md diff --git a/.changeset/twelve-needles-obey.md b/.changeset/twelve-needles-obey.md new file mode 100644 index 00000000..03659728 --- /dev/null +++ b/.changeset/twelve-needles-obey.md @@ -0,0 +1,5 @@ +--- +"@neodrag/svelte": patch +--- + +fix: options are no longer required. Regression from before diff --git a/packages/svelte/src/index.ts b/packages/svelte/src/index.ts index 44b37649..c2010eb5 100644 --- a/packages/svelte/src/index.ts +++ b/packages/svelte/src/index.ts @@ -74,7 +74,7 @@ export interface Action< export const draggable = coreDraggable as Action< HTMLElement, - DragOptions, + DragOptions | undefined, { 'on:neodrag:start': (e: CustomEvent) => void; 'on:neodrag': (e: CustomEvent) => void;