-
Notifications
You must be signed in to change notification settings - Fork 112
feat(history-sync): add encode interface
#535
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 5a9b0de The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| articleId: String(id), | ||
| }), | ||
| decode: ({ articleId }) => ({ | ||
| id: Number(articleId), |
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.
I'm pretty surprised that the decode function can be used to make non-string activity params, which clashes with the assumption of ActivityBaseParams that expects Record<string, string | unknown>. Is it okay?
8eb426c to
0a105c3
Compare
0a105c3 to
8f68834
Compare
8ba90ff to
745ac22
Compare
745ac22 to
5a9b0de
Compare
encodeinterface, counterpart of the existingdecodeinterfaceencodeanddecodewith Future API