From d0e183014539c0d9d312fa127920224c5f683539 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Tue, 17 Dec 2024 21:23:44 +0100 Subject: [PATCH] Add onLazyVisible type definition --- src/app.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app.d.ts b/src/app.d.ts index 726c9be..d17213d 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -16,6 +16,13 @@ declare global { // interface PageState {} // interface Platform {} } + + declare namespace svelteHTML { + interface HTMLAttributes { + /** This element will be dispatched once an element with [use:lazyload] starts intersecting with the viewport. */ + onLazyVisible?: (event: CustomEvent) => void; + } + } } export {};