Installations
npm install @types/imagesloaded
Developer Guide
Typescript
Yes
Module System
N/A
Score
90.9
Supply Chain
91
Quality
75.9
Maintenance
100
Vulnerability
100
License
Contributors
Languages
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
DefinitelyTyped
Download Statistics
Total Downloads
4,885,905
Last Day
2,344
Last Week
13,012
Last Month
56,147
Last Year
625,406
GitHub Statistics
NOASSERTION License
49,190 Stars
88,715 Commits
30,308 Forks
640 Watchers
5 Branches
9,978 Contributors
Updated on Feb 14, 2025
Package Meta Information
Latest Version
4.1.6
Package Id
@types/imagesloaded@4.1.6
Unpacked Size
6.65 kB
Size
2.12 kB
File Count
5
Published on
Nov 21, 2023
Total Downloads
Cumulative downloads
Total Downloads
4,885,905
Last Day
-15.7%
2,344
Compared to previous day
Last Week
2.1%
13,012
Compared to previous week
Last Month
43.4%
56,147
Compared to previous month
Last Year
-36.3%
625,406
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Installation
npm install --save @types/imagesloaded
Summary
This package contains type definitions for imagesloaded (https://github.com/desandro/imagesloaded).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagesloaded.
index.d.ts
1/// <reference types="jquery" /> 2 3declare namespace ImagesLoaded { 4 type ElementSelector = Element | NodeList | Element[] | string; 5 6 /** interface for an image currently loading or completed */ 7 interface LoadingImage { 8 img: HTMLImageElement; 9 isLoaded: boolean; 10 } 11 12 interface ImagesLoadedCallback { 13 (instance?: ImagesLoaded): void; 14 } 15 16 interface ImagesLoadedListener { 17 (instance: ImagesLoaded, image?: LoadingImage): void; 18 } 19 20 interface ImagesLoaded { 21 new(elem: ElementSelector, callback: ImagesLoadedCallback): ImagesLoaded; 22 23 images: LoadingImage[]; 24 25 // event listeners 26 on(event: string, listener: ImagesLoadedListener): void; 27 off(event: string, listener: ImagesLoadedListener): void; 28 once(event: string, listener: ImagesLoadedListener): void; 29 } 30 31 interface ImagesLoadedOptions { 32 background: true | string; 33 } 34 35 interface ImagesLoadedConstructor { 36 /** 37 * Creates a new ImagesLoaded object with the provided callback 38 * @param elem Element, NodeList, Element array, or selector string for images to watch 39 * @param options object that can tell imagesloaded to watch background images as well 40 * @param callback function triggered after all images have been loaded 41 */ 42 (elem: ElementSelector, options: ImagesLoadedOptions, callback?: ImagesLoadedCallback): ImagesLoaded; 43 (elem: ElementSelector, callback?: ImagesLoadedCallback): ImagesLoaded; 44 } 45} 46 47declare var imagesLoaded: ImagesLoaded.ImagesLoadedConstructor; 48 49declare module "imagesloaded" { 50 export = imagesLoaded; 51} 52 53interface JQuery { 54 imagesLoaded(callback?: ImagesLoaded.ImagesLoadedCallback): JQueryDeferred<ImagesLoaded.ImagesLoaded>; 55 imagesLoaded( 56 options: ImagesLoaded.ImagesLoadedOptions, 57 callback?: ImagesLoaded.ImagesLoadedCallback, 58 ): JQueryDeferred<ImagesLoaded.ImagesLoaded>; 59} 60
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:24 GMT
- Dependencies: @types/jquery
Credits
These definitions were written by Chris Charabaruk, and Cameron Little.

No vulnerabilities found.
Reason
30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
- Warn: npmCommand not pinned by hash: types/lodash/scripts/generate-all.sh:5
- Warn: npmCommand not pinned by hash: types/lodash/scripts/generate-all.sh:12
- Info: 20 out of 20 GitHub-owned GitHubAction dependencies pinned
- Info: 8 out of 8 third-party GitHubAction dependencies pinned
- Info: 0 out of 2 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/UpdateCodeowners.yml:19
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ghostbuster.yml:20
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/support-window.yml:22
- Info: topLevel 'contents' permission set to 'read': .github/workflows/CI.yml:16
- Info: topLevel 'contents' permission set to 'read': .github/workflows/UpdateCodeowners.yml:14
- Warn: no topLevel permission defined: .github/workflows/format-and-commit.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/ghostbuster.yml:15
- Info: topLevel 'contents' permission set to 'read': .github/workflows/lint-md.yml:7
- Warn: no topLevel permission defined: .github/workflows/pnpm-cache.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/support-window.yml:17
- Warn: no topLevel permission defined: .github/workflows/watchdog-publisher.yml:1
- Warn: no topLevel permission defined: .github/workflows/watchdog-typescript-bot.yml:1
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 27 are checked with a SAST tool
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
7
/10
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More