Created
September 26, 2016 12:19
-
-
Save nkt/cdff39b903054916b160e1d9915bb04f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
*/ | |
declare module 'react-addons-css-transition-group' { | |
declare type TransitionNameShort = { | |
enter?: string, | |
leave?: string, | |
active?: string | |
}; | |
declare type TransitionNameFull = { | |
enter?: string, | |
enterActive?: string, | |
leave?: string, | |
leaveActive?: string, | |
appear?: string, | |
appearActive?: string | |
}; | |
declare type TransitionName = string | TransitionNameShort | TransitionNameFull; | |
declare type Props = { | |
transitionName: TransitionName, | |
transitionAppear?: boolean, | |
transitionEnter?: boolean, | |
transitionLeave?: boolean, | |
transitionAppearTimeout?: number, | |
transitionEnterTimeout?: number, | |
transitionLeaveTimeout?: number | |
}; | |
declare type DefaultProps = { | |
transitionAppear: false, | |
transitionEnter: true, | |
transitionLeave: true | |
}; | |
declare class ReactCSSTransitionGroup extends React$Component { | |
props: Props; | |
static defaultProps: DefaultProps; | |
} | |
declare var exports: typeof ReactCSSTransitionGroup; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment