UNPKG

1.05 kBTypeScriptView Raw
1import "react-addons-transition-group";
2import { ComponentClass, CSSTransitionGroupProps } from "react";
3
4declare module "react" {
5 interface CSSTransitionGroupTransitionName {
6 enter: string;
7 enterActive?: string | undefined;
8 leave: string;
9 leaveActive?: string | undefined;
10 appear?: string | undefined;
11 appearActive?: string | undefined;
12 }
13
14 export interface CSSTransitionGroupProps extends HTMLTransitionGroupProps<ReactCSSTransitionGroup> {
15 transitionName: string | CSSTransitionGroupTransitionName;
16 transitionAppear?: boolean | undefined;
17 transitionAppearTimeout?: number | undefined;
18 transitionEnter?: boolean | undefined;
19 transitionEnterTimeout?: number | undefined;
20 transitionLeave?: boolean | undefined;
21 transitionLeaveTimeout?: number | undefined;
22 }
23}
24
25declare var ReactCSSTransitionGroup: ReactCSSTransitionGroup;
26type ReactCSSTransitionGroup = ComponentClass<CSSTransitionGroupProps>;
27export = ReactCSSTransitionGroup;