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(type): use correct type for transformed date #470

Merged

Conversation

spaenleh
Copy link
Member

This PR fixes incorrect types in the hooks.

Explanation

The API returns the createdAtDay as a ISOString representation of a date.
We have an interceptor for axios that automatically applies a transform to convert dates formatted in strings to Date objects. So the correct type that the consumer will see in this case is Date.

@spaenleh spaenleh linked an issue Oct 11, 2023 that may be closed by this pull request
@spaenleh spaenleh self-assigned this Oct 11, 2023
@spaenleh spaenleh added bug 🪲 Something isn't working chore Generic task or chore labels Oct 11, 2023
@spaenleh spaenleh force-pushed the 469-fix-type-of-data-returned-by-useaggregateactions-1 branch from f1ced88 to 02a126e Compare October 11, 2023 08:50
Copy link
Contributor

@pyphilia pyphilia left a comment

Choose a reason for hiding this comment

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

LGTM 👍

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
@spaenleh spaenleh force-pushed the 469-fix-type-of-data-returned-by-useaggregateactions-1 branch from 6287ed9 to 8b88751 Compare November 2, 2023 16:02
@spaenleh spaenleh merged commit a46c8a5 into main Nov 2, 2023
2 checks passed
@spaenleh spaenleh deleted the 469-fix-type-of-data-returned-by-useaggregateactions-1 branch November 2, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working chore Generic task or chore v2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix type of data returned by useAggregateActions
4 participants