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/masonry-layout
Advanced tools
npm install --save @types/masonry-layout
This package contains type definitions for Masonry (https://github.com/desandro/masonry).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/masonry-layout.
// Type definitions for Masonry 4.2
// Project: https://github.com/desandro/masonry, https://masonry.desandro.com
// Definitions by: Mark Wilson <https://github.com/m-a-wilson>, Travis Brown <https://github.com/warriorrocker>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery" />
export = Masonry;
declare class Masonry {
constructor(options?: Masonry.Options);
constructor(selector: string | Element, options?: Masonry.Options);
masonry?(): void;
masonry?(eventName: string, listener: any): void;
// layout
layout?(): void;
layoutItems?(items: any[], isStill?: boolean): void;
stamp?(elements: any[]): void;
unstamp?(elements: any[]): void;
// add and remove items
appended?(elements: any[]): void;
prepended?(elements: any[]): void;
addItems?(elements: any[]): void;
remove?(elements: any[]): void;
// events
on?(eventName: string, listener: any): void;
off?(eventName: string, listener: any): void;
once?(eventName: string, listener: any): void;
// utilities
reloadItems?(): void;
destroy?(): void;
getItemElements?(): any[];
data?(element: Element): Masonry;
}
declare namespace Masonry {
interface HiddenOrVisibleStyleOption {
transform?: string | undefined;
opacity?: number | undefined;
}
interface Options {
// layout
itemSelector?: string | undefined;
columnWidth?: any;
percentPosition?: boolean | undefined;
gutter?: any;
stamp?: string | undefined;
fitWidth?: boolean | undefined;
originLeft?: boolean | undefined;
originTop?: boolean | undefined;
horizontalOrder?: boolean | undefined;
hiddenStyle?: HiddenOrVisibleStyleOption | undefined;
visibleStyle?: HiddenOrVisibleStyleOption | undefined;
// setup
containerStyle?: {} | undefined;
transitionDuration?: any;
stagger?: string | number | undefined;
resize?: boolean | undefined;
initLayout?: boolean | undefined;
}
}
declare global {
interface JQuery {
masonry(options?: Masonry.Options): JQuery;
masonry(selector: string | Element, options?: Masonry.Options | JQuery): JQuery;
}
}
These definitions were written by Mark Wilson, and Travis Brown.
FAQs
TypeScript definitions for masonry-layout
The npm package @types/masonry-layout receives a total of 12,365 weekly downloads. As such, @types/masonry-layout popularity was classified as popular.
We found that @types/masonry-layout 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.