Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
@types/jquery.contextmenu
Advanced tools
Readme
npm install --save @types/jquery.contextmenu
This package contains type definitions for jQuery contextMenu (http://medialize.github.com/jQuery-contextMenu/).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.contextmenu.
// Type definitions for jQuery contextMenu 1.7.0
// Project: http://medialize.github.com/jQuery-contextMenu/
// Definitions by: Natan Vivo <https://github.com/nvivo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery" />
interface JQueryContextMenuOptions {
selector: string;
appendTo?: string | undefined;
trigger?: string | undefined;
autoHide?: boolean | undefined;
delay?: number | undefined;
determinePosition?: ((menu: JQuery) => void) | undefined;
position?: ((opt: JQuery, x: number, y: number) => void) | undefined;
positionSubmenu?: ((menu: JQuery) => void) | undefined;
zIndex?: number | undefined;
animation?: {
duration?: number | undefined;
show?: string | undefined;
hide?: string | undefined;
} | undefined;
events?: {
show?: ((options: any) => boolean) | undefined;
hide?: ((options: any) => boolean) | undefined;
} | undefined;
callback?: ((key: any, options: any) => any) | undefined;
items?: any;
build?: ((triggerElement: JQuery, e: Event) => any) | undefined;
reposition?: boolean | undefined;
className?: string | undefined;
itemClickEvent?: string | undefined;
}
interface JQueryStatic {
contextMenu(options?: JQueryContextMenuOptions): JQuery;
contextMenu(type: string, selector?: any): JQuery;
}
interface JQuery {
contextMenu(options?: any): JQuery;
}
These definitions were written by Natan Vivo.
FAQs
TypeScript definitions for jquery.contextmenu
The npm package @types/jquery.contextmenu receives a total of 1,043 weekly downloads. As such, @types/jquery.contextmenu popularity was classified as popular.
We found that @types/jquery.contextmenu 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.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.