Created
May 15, 2017 20:52
-
-
Save Hypnosphi/e60e71431edabe305028c49b3de450f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import FlipMove from "./FlipMove"; | |
declare class Class0 extends Element<> { | |
accessKey: string, | |
accessKeyLabel: string, | |
className: string, | |
contentEditable: string, | |
contextMenu: ?HTMLMenuElement, | |
dataset: { [key: string]: string }, | |
dir: "ltr" | "trl" | "auto", | |
draggable: boolean, | |
dropzone: any, | |
hidden: boolean, | |
id: string, | |
innerHTML: string, | |
isContentEditable: boolean, | |
itemProp: any, | |
itemScope: boolean, | |
itemType: any, | |
itemValue: Object, | |
lang: string, | |
offsetHeight: number, | |
offsetLeft: number, | |
offsetParent: Element, | |
offsetTop: number, | |
offsetWidth: number, | |
onabort: ?Function, | |
onblur: ?Function, | |
oncancel: ?Function, | |
oncanplay: ?Function, | |
oncanplaythrough: ?Function, | |
onchange: ?Function, | |
onclick: ?Function, | |
oncuechange: ?Function, | |
ondblclick: ?Function, | |
ondurationchange: ?Function, | |
onemptied: ?Function, | |
onended: ?Function, | |
onerror: ?Function, | |
onfocus: ?Function, | |
oninput: ?Function, | |
oninvalid: ?Function, | |
onkeydown: ?Function, | |
onkeypress: ?Function, | |
onkeyup: ?Function, | |
onload: ?Function, | |
onloadeddata: ?Function, | |
onloadedmetadata: ?Function, | |
onloadstart: ?Function, | |
onmousedown: ?Function, | |
onmouseenter: ?Function, | |
onmouseleave: ?Function, | |
onmousemove: ?Function, | |
onmouseout: ?Function, | |
onmouseover: ?Function, | |
onmouseup: ?Function, | |
onmousewheel: ?Function, | |
onpause: ?Function, | |
onplay: ?Function, | |
onplaying: ?Function, | |
onprogress: ?Function, | |
onratechange: ?Function, | |
onreadystatechange: ?Function, | |
onreset: ?Function, | |
onresize: ?Function, | |
onscroll: ?Function, | |
onseeked: ?Function, | |
onseeking: ?Function, | |
onselect: ?Function, | |
onshow: ?Function, | |
onstalled: ?Function, | |
onsubmit: ?Function, | |
onsuspend: ?Function, | |
ontimeupdate: ?Function, | |
ontoggle: ?Function, | |
onvolumechange: ?Function, | |
onwaiting: ?Function, | |
properties: any, | |
spellcheck: boolean, | |
style: CSSStyleDeclaration, | |
tabIndex: number, | |
title: string, | |
translate: boolean, | |
blur(): void, | |
click(): void, | |
focus(): void, | |
forceSpellcheck(): void, | |
getBoundingClientRect(): ClientRect | |
} | |
declare export default Class< | |
React$Component< | |
{ | |
delay: string | number, | |
disableAllAnimations: boolean, | |
duration: string | number, | |
easing: string, | |
enterAnimation: | |
| $Keys<{ | |
accordionHorizontal: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
accordionVertical: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
elevator: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
fade: { from: { [_: string]: string }, to: { [_: string]: string } }, | |
none: null | |
}> | |
| boolean | |
| { from: { [_: string]: string }, to: { [_: string]: string } }, | |
getPosition: ( | |
_: Class0 | |
) => { | |
bottom: number, | |
height: number, | |
left: number, | |
right: number, | |
top: number, | |
width: number | |
}, | |
leaveAnimation: | |
| $Keys<{ | |
accordionHorizontal: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
accordionVertical: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
elevator: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
fade: { from: { [_: string]: string }, to: { [_: string]: string } }, | |
none: null | |
}> | |
| boolean | |
| { from: { [_: string]: string }, to: { [_: string]: string } }, | |
maintainContainerHeight: boolean, | |
staggerDelayBy: string | number, | |
staggerDurationBy: string | number, | |
typeName: string, | |
verticalAlignment: "top" | "bottom" | |
}, | |
{ | |
delay: string | number, | |
disableAllAnimations: boolean, | |
duration: string | number, | |
easing: string, | |
enterAnimation: | |
| $Keys<{ | |
accordionHorizontal: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
accordionVertical: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
elevator: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
fade: { from: { [_: string]: string }, to: { [_: string]: string } }, | |
none: null | |
}> | |
| boolean | |
| { from: { [_: string]: string }, to: { [_: string]: string } }, | |
getPosition: ( | |
_: Class0 | |
) => { | |
bottom: number, | |
height: number, | |
left: number, | |
right: number, | |
top: number, | |
width: number | |
}, | |
leaveAnimation: | |
| $Keys<{ | |
accordionHorizontal: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
accordionVertical: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
elevator: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
fade: { from: { [_: string]: string }, to: { [_: string]: string } }, | |
none: null | |
}> | |
| boolean | |
| { from: { [_: string]: string }, to: { [_: string]: string } }, | |
maintainContainerHeight: boolean, | |
staggerDelayBy: string | number, | |
staggerDurationBy: string | number, | |
typeName: string, | |
verticalAlignment: "top" | "bottom" | |
} & { | |
onFinish?: ( | |
_: { | |
key: mixed /* UNEXPECTED TYPE: EvalT */, | |
props: mixed /* UNEXPECTED TYPE: EvalT */, | |
ref: mixed /* UNEXPECTED TYPE: EvalT */, | |
type: mixed /* UNEXPECTED TYPE: EvalT */ | |
}, | |
_: ?Class0 | |
) => mixed, | |
onFinishAll?: ( | |
_: Array<{ | |
key: mixed /* UNEXPECTED TYPE: EvalT */, | |
props: mixed /* UNEXPECTED TYPE: EvalT */, | |
ref: mixed /* UNEXPECTED TYPE: EvalT */, | |
type: mixed /* UNEXPECTED TYPE: EvalT */ | |
}>, | |
_: Array<?Class0> | |
) => mixed, | |
onStart?: ( | |
_: { | |
key: mixed /* UNEXPECTED TYPE: EvalT */, | |
props: mixed /* UNEXPECTED TYPE: EvalT */, | |
ref: mixed /* UNEXPECTED TYPE: EvalT */, | |
type: mixed /* UNEXPECTED TYPE: EvalT */ | |
}, | |
_: ?Class0 | |
) => mixed, | |
onStartAll?: ( | |
_: Array<{ | |
key: mixed /* UNEXPECTED TYPE: EvalT */, | |
props: mixed /* UNEXPECTED TYPE: EvalT */, | |
ref: mixed /* UNEXPECTED TYPE: EvalT */, | |
type: mixed /* UNEXPECTED TYPE: EvalT */ | |
}>, | |
_: Array<?Class0> | |
) => mixed | |
} & { style?: { [_: string]: string | number } } & { | |
appearAnimation?: | |
| $Keys<{ | |
accordionHorizontal: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
accordionVertical: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
elevator: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
fade: { | |
from: { [_: string]: string }, | |
to: { [_: string]: string } | |
}, | |
none: null | |
}> | |
| boolean | |
| { from: { [_: string]: string }, to: { [_: string]: string } }, | |
children?: mixed, | |
disableAnimations?: boolean | |
}, | |
void | |
> | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Generated by
flow gen-flow-files src/index/.js --out-dir lib && prettier lib/index.js.flow --write --parser-flow