forked from eiriklv/react-masonry-component
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypings.d.ts
35 lines (32 loc) · 984 Bytes
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { ComponentClass } from "react"
export interface MasonryOptions {
columnWidth?: number | string | HTMLElement | null
itemSelector?: string
gutter?: number | string
percentPosition?: boolean
horizontalOrder?: boolean
stamp?: string
fitWidth?: boolean
originLeft?: boolean
originTop?: boolean
containerStyle?: Object
transitionDuration?: number | string
resize?: boolean
initLayout?: boolean
}
export interface MasonryPropTypes {
enableResizableChildren?: boolean
disableImagesLoaded?: boolean
updateOnEachImageLoad?: boolean
onImagesLoaded?: (instance: any) => void
options?: MasonryOptions
className?: string
elementType?: string
style?: Object
onLayoutComplete?: (instance: any) => void
onRemoveComplete?: (instance: any) => void
updateOnEachComponentUpdate?: boolean
}
declare const Masonry: ComponentClass<MasonryPropTypes>
export as namespace Masonry
export default Masonry