App: Add onLazyVisible type definition

This commit is contained in:
2024-12-17 21:23:44 +01:00
parent b1bea37e20
commit c954b0f3b0

7
src/app.d.ts vendored
View File

@ -16,6 +16,13 @@ declare global {
// interface PageState {}
// interface Platform {}
}
declare namespace svelteHTML {
interface HTMLAttributes<T> {
/** This element will be dispatched once an element with [use:lazyload] starts intersecting with the viewport. */
onLazyVisible?: (event: CustomEvent) => void;
}
}
}
export {};