mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
24 lines
804 B
TypeScript
24 lines
804 B
TypeScript
// Type definitions for react-motion-ui-pack 0.10
|
|
// Project: https://github.com/souporserious/react-motion-ui-pack
|
|
// Definitions by: Jason Unger <https://github.com/jsonunger>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from 'react';
|
|
import * as motion from 'react-motion';
|
|
|
|
declare namespace Transition {
|
|
interface TransitionProps {
|
|
component?: string | boolean | React.ReactElement;
|
|
runOnMount?: boolean;
|
|
appear?: motion.Style;
|
|
enter?: motion.Style;
|
|
leave?: motion.Style;
|
|
onEnter?: (style: motion.PlainStyle) => void;
|
|
onLeave?: (style: motion.Style) => void;
|
|
}
|
|
}
|
|
|
|
declare const Transition: React.ComponentClass<Transition.TransitionProps>;
|
|
export default Transition;
|