Skip to content
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

Fix the use of Pick type in type definition #120

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

hongrich
Copy link

@hongrich hongrich commented Mar 6, 2024

This change was originally made in #111. Pick type only takes two parameters: https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys

The keys should be unioned with |. 'path' and 'animationData' are separated with , which makes them invalid. They also don't need to be picked from AnimationConfig since we already add them in explicitly.

This change was originally made in mifi#111. Pick type only takes two parameters: https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys

The keys should be unioned with `|`. `'path'` and `'animationData'` are separated with `,` which makes them invalid. They also don't need to be picked from `AnimationConfig` since we already add them in explicitly.
@mifi mifi merged commit 7d4759f into mifi:master Mar 13, 2024
3 checks passed
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.

2 participants