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.
1 parent 2337ef2 commit 0ef6333Copy full SHA for 0ef6333
packages/vue-composable/src/event/onScroll.ts
@@ -40,6 +40,18 @@ export function useOnScroll(
40
options?: boolean | AddEventListenerOptions,
41
wait?: number
42
): ScrollResult;
43
+
44
+export function useOnScroll<T extends Element>(
45
+ el: Ref<T> | Ref<T | null>,
46
+ options?: boolean | AddEventListenerOptions,
47
+ wait?: number
48
+): ScrollResult;
49
50
51
+ el: Ref<T | null>,
52
+ wait: number
53
54
55
export function useOnScroll(
56
el?: any,
57
options?: number | boolean | AddEventListenerOptions,
0 commit comments