App: Add onLazyVisible type definition
This commit is contained in:
7
src/app.d.ts
vendored
7
src/app.d.ts
vendored
@ -16,6 +16,13 @@ declare global {
|
|||||||
// interface PageState {}
|
// interface PageState {}
|
||||||
// interface Platform {}
|
// 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 {};
|
export {};
|
||||||
|
|||||||
Reference in New Issue
Block a user