DefinitelyTyped/types/jquery-lazyload/index.d.ts
Nathan Shively-Sanders f0ce987bc1 Update project urls to match NPM url
Note that this *trivially* updates project urls by adding the NPM url to
the end, even when the urls are almost identical or the DT one is
outdated. I'll clean up the urls in a later commit.

This PR is unfinished! Please do not merge it yet.
2019-02-11 17:10:55 -08:00

27 lines
954 B
TypeScript

// Type definitions for JQuery Lazy Load 1.9
// Project: https://github.com/tuupola/jquery_lazyload, http://www.appelsiini.net/projects/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?: ((elementsLeft: number, options: Options) => void) | 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;
}