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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(backend): Export the JSON types for clerk resources #2965
feat(backend): Export the JSON types for clerk resources #2965
Conversation
馃 Changeset detectedLatest commit: 5bf1f61 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
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 |
Question for reviewers: Is there anything in JSON.ts that might not be beneficial to export? |
fcaa0fd
to
740f810
Compare
Should these be re-exported from the rest of "server" packages ? next, fastify, etc. |
I think we re-export everything by default, but I'll check, |
@desiprisg we are not. Check this we are very explicit about which types we return. So far we are just returning the classes as types. We probably need to do the same for the JSON types. |
I would suggest we export explicitly only the types we want and avoid |
packages/backend/src/index.ts
Outdated
/** | ||
* JSON types | ||
*/ | ||
export type * from './api/resources/JSON'; |
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.
馃敡 Let's export ONLY the types we want to and avoid *
as it may result in unwanted exports in the future since the api/resources/JSON
exports are considered to be consumed internally.
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.
@desiprisg PTAL at this one as we'd like to release today
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.
Done, PTAL and let me know if there's anything we want to avoid exporting for now.
740f810
to
5bf1f61
Compare
Description
Export the JSON types for clerk resources
Checklist
npm test
runs as expected.npm run build
runs as expected.Type of change