@types/lozad
Advanced tools
Comparing version 1.9.0 to 1.16.0
@@ -1,9 +0,9 @@ | ||
// Type definitions for lozad 1.9 | ||
// Type definitions for lozad 1.16 | ||
// Project: https://github.com/ApoorvSaxena/lozad.js | ||
// Definitions by: York Yao <https://github.com/plantain-00> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
declare namespace lozad { | ||
interface Option { | ||
interface Options { | ||
enableAutoReload?: boolean; | ||
rootMargin?: string; | ||
@@ -15,2 +15,6 @@ threshold?: number; | ||
// TODO: remove on next major version bump | ||
// tslint:disable:next-line no-empty-interface | ||
interface Option extends Options {} | ||
interface Observer { | ||
@@ -28,3 +32,3 @@ observe(): void; | ||
declare function lozad(selector?: lozad.Selector, options?: lozad.Option): lozad.Observer; | ||
declare function lozad(selector?: lozad.Selector, options?: lozad.Options): lozad.Observer; | ||
@@ -31,0 +35,0 @@ export as namespace lozad; |
{ | ||
"name": "@types/lozad", | ||
"version": "1.9.0", | ||
"version": "1.16.0", | ||
"description": "TypeScript definitions for lozad", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lozad", | ||
"license": "MIT", | ||
@@ -14,3 +15,3 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -23,4 +24,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "51a1710704b4830acac98b96af0d978d27a5504997a45b8ebcbe1eb95ad10906", | ||
"typeScriptVersion": "2.2" | ||
"typesPublisherContentHash": "b11ed5308682026690a5a796f106c7e3d37973d87ec0d20849df69bc8fd78dc0", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -5,13 +5,52 @@ # Installation | ||
# Summary | ||
This package contains type definitions for lozad ( https://github.com/ApoorvSaxena/lozad.js ). | ||
This package contains type definitions for lozad (https://github.com/ApoorvSaxena/lozad.js). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lozad | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lozad. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lozad/index.d.ts) | ||
````ts | ||
// Type definitions for lozad 1.16 | ||
// Project: https://github.com/ApoorvSaxena/lozad.js | ||
// Definitions by: York Yao <https://github.com/plantain-00> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Tue, 02 Apr 2019 23:13:51 GMT | ||
declare namespace lozad { | ||
interface Options { | ||
enableAutoReload?: boolean; | ||
rootMargin?: string; | ||
threshold?: number; | ||
load?(element: Element): void; | ||
loaded?(element: Element): void; | ||
} | ||
// TODO: remove on next major version bump | ||
// tslint:disable:next-line no-empty-interface | ||
interface Option extends Options {} | ||
interface Observer { | ||
observe(): void; | ||
triggerLoad(element: Element): void; | ||
observer: IntersectionObserver; | ||
} | ||
type Selector = string | Element | HTMLCollectionOf<Element> | NodeListOf<Element>; | ||
const prototype: { | ||
}; | ||
} | ||
declare function lozad(selector?: lozad.Selector, options?: lozad.Options): lozad.Observer; | ||
export as namespace lozad; | ||
export = lozad; | ||
```` | ||
### Additional Details | ||
* Last updated: Wed, 16 Jun 2021 12:31:20 GMT | ||
* Dependencies: none | ||
* Global values: lozad | ||
* Global values: `lozad` | ||
# Credits | ||
These definitions were written by York Yao <https://github.com/plantain-00>. | ||
These definitions were written by [York Yao](https://github.com/plantain-00). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4507
27
0
56