diff --git a/src/Transition.js b/src/Transition.js index f1bc717928..acd6239dea 100644 --- a/src/Transition.js +++ b/src/Transition.js @@ -19,7 +19,7 @@ export default class Transition extends React.PureComponent { initial: PropTypes.oneOfType([PropTypes.object, PropTypes.func]), /** Base values (from -> enter), or: item => values */ from: PropTypes.oneOfType([PropTypes.object, PropTypes.func]), - /** Values that apply to new elements, or: fitem => values */ + /** Values that apply to new elements, or: item => values */ enter: PropTypes.oneOfType([ PropTypes.object, PropTypes.array, diff --git a/types/universal.d.ts b/types/universal.d.ts index 208d68276c..dac9748155 100644 --- a/types/universal.d.ts +++ b/types/universal.d.ts @@ -157,7 +157,7 @@ export interface TransitionProps< */ from?: TFrom | ((item: TItem) => TFrom) /** - * Values that apply to new elements, or: fitem => values + * Values that apply to new elements, or: item => values * @default {} */ enter?: TEnter | ((item: TItem) => TEnter) @@ -201,7 +201,7 @@ export interface TransitionProps< /** * Calls back once a transition is about to wrap up */ - onDestroyed?: () => void + onDestroyed?: (item: TItem) => void /** * Useful in combination with "unique", when true it forces incoming items that already exist to restart instead of adapting to their current values * @default false