Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@types/jquery
Advanced tools
The @types/jquery package provides TypeScript type definitions for jQuery, a fast, small, and feature-rich JavaScript library. It allows developers using TypeScript to get compile-time type checking and IntelliSense support when working with jQuery, ensuring that they use jQuery functions correctly according to their defined signatures.
DOM Manipulation
Allows for the manipulation of the HTML content of the selected elements. For example, changing the inner HTML of elements matching the selector.
$(selector).html(value)
Event Handling
Enables attaching event handlers to selected elements. For instance, executing a function when an element is clicked.
$(selector).click(function() { /* handler code here */ })
AJAX
Facilitates making asynchronous HTTP (AJAX) requests. This example demonstrates making a GET request to a specified URL and handling the response.
$.ajax({ url: 'example.com/api', success: function(result) { /* handle result */ } })
Effects and Animations
Provides easy-to-use functions for creating effects and animations on selected elements, such as fading them in.
$(selector).fadeIn()
Provides TypeScript definitions for React, a library for building user interfaces. While it serves a different ecosystem (React vs. jQuery), it similarly offers type checking and IntelliSense for React components and functions.
Offers TypeScript definitions for Underscore.js, a utility library for JavaScript. Like @types/jquery, it enhances development by providing type safety for Underscore's utility functions, though it focuses more on functional programming helpers rather than DOM manipulation or AJAX.
npm install --save @types/jquery
This package contains type definitions for jQuery 1.10.x / 2.0.x (http://jquery.com/).
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/jquery
Additional Details
These definitions were written by Boris Yankov https://github.com/borisyankov/, Christian Hoffmeister https://github.com/choffmeister, Steve Fenton https://github.com/Steve-Fenton, Diullei Gomes https://github.com/Diullei, Tass Iliopoulos https://github.com/tasoili, Jason Swearingen https://github.com/jasons-novaleaf, Sean Hill https://github.com/seanski, Guus Goossens https://github.com/Guuz, Kelly Summerlin https://github.com/ksummerlin, Basarat Ali Syed https://github.com/basarat, Nicholas Wolverson https://github.com/nwolverson, Derek Cicerone https://github.com/derekcicerone, Andrew Gaspar https://github.com/AndrewGaspar, James Harrison Fisher https://github.com/jameshfisher, Seikichi Kondo https://github.com/seikichi, Benjamin Jackman https://github.com/benjaminjackman, Poul Sorensen https://github.com/s093294, Josh Strobl https://github.com/JoshStrobl, John Reilly https://github.com/johnnyreilly/, Dick van den Brink https://github.com/DickvdBrink.
FAQs
TypeScript definitions for jquery
The npm package @types/jquery receives a total of 2,284,539 weekly downloads. As such, @types/jquery popularity was classified as popular.
We found that @types/jquery demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.