mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
[react-transition-group] Support optional classNames prop on <CSSTransition/>
Since v2.8.0, classNames prop has been optional. See also: - https://github.com/reactjs/react-transition-group/blob/v2.8.0/CHANGELOG.md - https://github.com/reactjs/react-transition-group/pull/481
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ declare namespace CSSTransition {
|
||||
* ```
|
||||
*/
|
||||
interface CSSTransitionProps extends TransitionProps {
|
||||
classNames: string | CSSTransitionClassNames;
|
||||
classNames?: string | CSSTransitionClassNames;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Type definitions for react-transition-group 2.0
|
||||
// Type definitions for react-transition-group 2.8
|
||||
// Project: https://github.com/reactjs/react-transition-group
|
||||
// Definitions by: Karol Janyst <https://github.com/LKay>
|
||||
// Epskampie <https://github.com/Epskampie>
|
||||
|
||||
@@ -120,6 +120,10 @@ const Test: React.StatelessComponent = () => {
|
||||
>
|
||||
<div>{ "test" }</div>
|
||||
</CSSTransition>
|
||||
|
||||
<CSSTransition timeout={ 100 }>
|
||||
<div>{ "test" }</div>
|
||||
</CSSTransition>
|
||||
</TransitionGroup>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user