Skip to content

Instantly share code, notes, and snippets.

@nkt
Created September 26, 2016 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkt/cdff39b903054916b160e1d9915bb04f to your computer and use it in GitHub Desktop.
Save nkt/cdff39b903054916b160e1d9915bb04f to your computer and use it in GitHub Desktop.
/**
* @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