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;