@types/masonry-layout
Advanced tools
Comparing version 4.2.2 to 4.2.3
@@ -44,4 +44,4 @@ // Type definitions for Masonry 4.2 | ||
interface HiddenOrVisibleStyleOption { | ||
transform?: string; | ||
opacity?: number; | ||
transform?: string | undefined; | ||
opacity?: number | undefined; | ||
} | ||
@@ -51,20 +51,20 @@ | ||
// layout | ||
itemSelector?: string; | ||
itemSelector?: string | undefined; | ||
columnWidth?: any; | ||
percentPosition?: boolean; | ||
percentPosition?: boolean | undefined; | ||
gutter?: any; | ||
stamp?: string; | ||
fitWidth?: boolean; | ||
originLeft?: boolean; | ||
originTop?: boolean; | ||
horizontalOrder?: boolean; | ||
hiddenStyle?: HiddenOrVisibleStyleOption; | ||
visibleStyle?: HiddenOrVisibleStyleOption; | ||
stamp?: string | undefined; | ||
fitWidth?: boolean | undefined; | ||
originLeft?: boolean | undefined; | ||
originTop?: boolean | undefined; | ||
horizontalOrder?: boolean | undefined; | ||
hiddenStyle?: HiddenOrVisibleStyleOption | undefined; | ||
visibleStyle?: HiddenOrVisibleStyleOption | undefined; | ||
// setup | ||
containerStyle?: {}; | ||
containerStyle?: {} | undefined; | ||
transitionDuration?: any; | ||
stagger?: string | number; | ||
resize?: boolean; | ||
initLayout?: boolean; | ||
stagger?: string | number | undefined; | ||
resize?: boolean | undefined; | ||
initLayout?: boolean | undefined; | ||
} | ||
@@ -71,0 +71,0 @@ } |
{ | ||
"name": "@types/masonry-layout", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"description": "TypeScript definitions for Masonry", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/masonry-layout", | ||
"license": "MIT", | ||
@@ -29,4 +30,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "966e8fc51f7557c2f7b90cfc49f0f2535aecdcd5f89d4c086450225d5248bb07", | ||
"typeScriptVersion": "3.2" | ||
"typesPublisherContentHash": "d7f46d79c9b260e9577564392c9dd70a97039e40c80116b37260ba80d1edb265", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,84 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/masonry-layout. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/masonry-layout/index.d.ts) | ||
````ts | ||
// 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/borisyankov/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; | ||
} | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 29 Oct 2020 07:29:43 GMT | ||
* Last updated: Thu, 08 Jul 2021 16:24:03 GMT | ||
* Dependencies: [@types/jquery](https://npmjs.com/package/@types/jquery) | ||
@@ -14,0 +93,0 @@ * Global values: none |
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
7347
0
96