@types/lozad
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for lozad 1.0 | ||
// Type definitions for lozad 1.1 | ||
// Project: https://github.com/ApoorvSaxena/lozad.js | ||
@@ -6,15 +6,13 @@ // Definitions by: York Yao <https://github.com/plantain-00> | ||
interface Option { | ||
rootMargin?: string; | ||
threshold?: number; | ||
load?(element: HTMLElement | HTMLCanvasElement): void; | ||
} | ||
declare namespace lozad { | ||
interface Option { | ||
rootMargin?: string; | ||
threshold?: number; | ||
load?(element: HTMLElement | HTMLCanvasElement): void; | ||
} | ||
interface Observer { | ||
observe(): void; | ||
} | ||
interface Observer { | ||
observe(): void; | ||
} | ||
declare function lozad(selector?: string, options?: Option): Observer; | ||
declare namespace lozad { | ||
const prototype: { | ||
@@ -24,4 +22,6 @@ }; | ||
declare function lozad(selector?: string, options?: lozad.Option): lozad.Observer; | ||
export as namespace lozad; | ||
export = lozad; |
{ | ||
"name": "@types/lozad", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "TypeScript definitions for lozad", | ||
@@ -20,4 +20,4 @@ "license": "MIT", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "5552361605b74c9c1a2f2d0375eb976e212932bd04cb1c3a28b4bdb0f0ca84a7", | ||
"typesPublisherContentHash": "43714690a906f2302344fe0de877a667658c5838c74785ccf6c4e9b7c9f5682f", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 18 Sep 2017 14:13:55 GMT | ||
* Last updated: Wed, 29 Nov 2017 01:09:44 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: lozad |
2932