-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update type definitions #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
State is optional on keyframes when you have a default animation; delay was missing on SpringProps
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
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; |
There was a problem hiding this comment.
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 ? 😊
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Update type definitions
State is optional on keyframes when you have a default animation; delay was missing on SpringProps