Skip to content

Commit

Permalink
Merge pull request #443 from salguerooo/master
Browse files Browse the repository at this point in the history
Updating onDestroyed typing on TransitionProps
  • Loading branch information
drcmda committed Jan 14, 2019
2 parents fc9a49c + 318bc03 commit 14dbbd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Transition.js
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions types/universal.d.ts
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 14dbbd3

Please sign in to comment.