mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-01 10:54:34 +08:00
27 lines
856 B
TypeScript
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;
|
|
}
|