Files
DefinitelyTyped/types/jquery-lazyload/index.d.ts
AndersonFriaca 76fb5a78b1 Adjustments
2018-02-19 07:37:16 -04:00

27 lines
856 B
TypeScript

// Type definitions for JQuery Lazy Load 1.9
// Project: https://github.com/tuupola/jquery_lazyload
// Definitions by: Anderson Friaça <https://github.com/AndersonFriaca>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery" />
declare namespace JQueryLazyLoad {
interface Options {
threshold?: number;
failure_limit?: number;
event?: string;
effect?: string;
container?: JQuery;
data_attribute?: string;
skip_invisible?: boolean;
appear?: null;
load?: (elementsLeft?: number, options?: Options) => void;
placeholder?: string;
}
}
interface JQuery {
lazyload(options?: JQueryLazyLoad.Options): JQuery;
on(event: 'load', callback: ((options?: JQueryLazyLoad.Options) => void)): JQuery;
}