mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
26 lines
610 B
TypeScript
26 lines
610 B
TypeScript
// Type definitions for lozad 1.1
|
|
// Project: https://github.com/ApoorvSaxena/lozad.js
|
|
// Definitions by: York Yao <https://github.com/plantain-00>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare namespace lozad {
|
|
interface Option {
|
|
rootMargin?: string;
|
|
threshold?: number;
|
|
load?(element: HTMLElement | HTMLCanvasElement): void;
|
|
}
|
|
|
|
interface Observer {
|
|
observe(): void;
|
|
}
|
|
|
|
const prototype: {
|
|
};
|
|
}
|
|
|
|
declare function lozad(selector?: string, options?: lozad.Option): lozad.Observer;
|
|
|
|
export as namespace lozad;
|
|
|
|
export = lozad;
|