Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* @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