Skip to content

Conversation

@PrecociouslyDigital
Copy link
Contributor

State is optional on keyframes when you have a default animation; delay was missing on SpringProps

State is optional on keyframes when you have a default animation; delay was missing on SpringProps
@PrecociouslyDigital PrecociouslyDigital changed the title Update type definitions WIP: Update type definitions Jul 24, 2018
Make it so that other props can be added to current primitives, to support prop forwarding. Also automatically support prop forwarding from Keyframes to inbuilt primitives
@PrecociouslyDigital PrecociouslyDigital changed the title WIP: Update type definitions Update type definitions Jul 24, 2018
Nevermind this doesn't do what I thought it would do
Typescript is both beautiful and terrible at the same time
index.d.ts Outdated
type TransitionKeyProps = string | number
type TransitionItemProps = string | number | object
type TransitionKeyProps = string | number;
type TransitionItemProps = string | number | object;
Copy link

@lasseborly lasseborly Jul 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentionally added lonely semi-colons @PrecociouslyDigital ? 😊

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops; My linter is having a fit with the code styles and might have accidentally added them. Personally I think the standard should be semi-colons, but I thought it was better to be consistent

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I agree @PrecociouslyDigital. Cool!

Make the Omit type (the Pick<> Exclude<> combo) correctly omit the "to" property of springprops
Don't allow `to` on other props objects either
@drcmda drcmda merged commit b1909a1 into pmndrs:master Jul 29, 2018
szjemljanoj pushed a commit to szjemljanoj/react-spring that referenced this pull request Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants