Skip to content

Commit

Permalink
Merge pull request #442 from salguerooo/master
Browse files Browse the repository at this point in the history
Updating types for initial, from, enter, leave and update on TransitionProps
  • Loading branch information
drcmda committed Jan 12, 2019
2 parents ef2d5f8 + a99950f commit fc9a49c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions types/universal.d.ts
Expand Up @@ -150,22 +150,22 @@ export interface TransitionProps<
/**
* First-render initial values, if present overrides "from" on the first render pass. It can be "null" to skip first mounting transition. Otherwise it can take an object or a function (item => object)
*/
initial?: TInit | null
initial?: TInit | ((item: TItem) => TInit) | null
/**
* Base values (from -> enter), or: item => values
* @default {}
*/
from?: TFrom
from?: TFrom | ((item: TItem) => TFrom)
/**
* Values that apply to new elements, or: fitem => values
* @default {}
*/
enter?: TEnter
enter?: TEnter | ((item: TItem) => TEnter)
/**
* Values that apply to leaving elements, or: item => values
* @default {}
*/
leave?: TLeave
leave?: TLeave | ((item: TItem) => TLeave)
/**
* Callback when the animation comes to a still-stand
*/
Expand All @@ -174,7 +174,7 @@ export interface TransitionProps<
/**
* Values that apply to elements that are neither entering nor leaving (you can use this to update present elements), or: item => values
*/
update?: TUpdate
update?: TUpdate | ((item: TItem) => TUpdate)
/**
* The same keys you would normally hand over to React in a list. Keys can be specified as a key-accessor function, an array of keys, or a single value
*/
Expand Down

0 comments on commit fc9a49c

Please sign in to comment.