Skip to content

Commit cba219d

Browse files
committed
user more portable type for timeout and clear timeout in finish_change (AI suggestions)
1 parent 4643bf3 commit cba219d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/utils/Popper.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
interactive: boolean;
190190
}
191191
let context: ChangeContext | undefined = $state(undefined);
192-
let timeout: NodeJS.Timeout | undefined = $state(undefined);
192+
let timeout: ReturnType<typeof setTimeout> | undefined = $state(undefined);
193193
194194
// start_change debounces calls that attempt to open or close the popover.
195195
// callers must specify whether this request is on behalf of ui interactivity
@@ -220,6 +220,7 @@
220220
if (!context) return;
221221
isOpen = context.nextOpen;
222222
context = undefined;
223+
timeout = undefined;
223224
}
224225
</script>
225226

0 commit comments

Comments
 (0)