DefinitelyTyped/types/react-transition-group/index.d.ts
Masafumi Koba a0eb795fa9 [react-transition-group] Restrict Transition child function's argument type (#27894)
> A `function` child can be used instead of a React element.
> This function is called with the current transition status
> ('entering', 'entered', 'exiting', 'exited', 'unmounted'), which can be used
> to apply context specific props to a component.

b8da4f2f23/src/Transition.js (L379)

See also #27693
2018-08-06 12:07:43 -07:00

18 lines
604 B
TypeScript

// Type definitions for react-transition-group 2.0
// Project: https://github.com/reactjs/react-transition-group
// Definitions by: Karol Janyst <https://github.com/LKay>
// Epskampie <https://github.com/Epskampie>
// Masafumi Koba <https://github.com/ybiquitous>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import CSSTransition = require("./CSSTransition");
import Transition from "./Transition";
import TransitionGroup = require("./TransitionGroup");
export {
CSSTransition,
Transition,
TransitionGroup
};