Skip to content

Commit 169ab45

Browse files
refactor(api): avoid breaking changes
1 parent fa51eab commit 169ab45

File tree

2 files changed

+5
-5
lines changed
  • crates/tauri-plugin-drag-as-window/src
  • packages/tauri-plugin-drag-as-window-api/guest-js

2 files changed

+5
-5
lines changed

crates/tauri-plugin-drag-as-window/src/api-iife.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/tauri-plugin-drag-as-window-api/guest-js/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ export async function onElementDrop(handler: (data: any) => void) {
6464
*/
6565
export async function dragAsWindow(
6666
el: string | HTMLElement,
67-
options?: DragOptions,
68-
onDrop?: (result: CallbackPayload) => void
67+
onDrop?: (result: CallbackPayload) => void,
68+
options?: DragOptions
6969
): Promise<void> {
7070
const element = typeof el === "string" ? document.querySelector(el) : el;
7171
if (element === null) {
@@ -104,8 +104,8 @@ export async function dragAsWindow(
104104
export async function dragBack(
105105
el: string | HTMLElement,
106106
data: any,
107-
options?: DragOptions,
108-
onEvent?: (result: CallbackPayload) => void
107+
onEvent?: (result: CallbackPayload) => void,
108+
options?: DragOptions
109109
): Promise<void> {
110110
const element = typeof el === "string" ? document.querySelector(el) : el;
111111
if (element === null) {

0 commit comments

Comments
 (0)