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

export DB types #10374

Merged
merged 4 commits into from
Mar 11, 2024
Merged

export DB types #10374

merged 4 commits into from
Mar 11, 2024

Conversation

itsMapleLeaf
Copy link
Contributor

We need to use these types in the dashboard. Since this technically makes the internal-ish types a part of the package's public interface, I'm open to alternate approaches if we want to avoid that

Copy link

changeset-bot bot commented Mar 8, 2024

🦋 Changeset detected

Latest commit: 0e8d8d5

The changes in this PR will be included in the next version bump.

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

@bholmesdev
Copy link
Contributor

Yeah this is a tough one... Because exposing these types could open VS Code completions we'd rather avoid. Is this worth a separate package, or a copy / paste in the meantime?

@itsMapleLeaf
Copy link
Contributor Author

Yeah this is a tough one... Because exposing these types could open VS Code completions we'd rather avoid. Is this worth a separate package, or a copy / paste in the meantime?

Making a separate package sounds like the better solution long-term, so I'd rather do that from the start

Copy link
Contributor

@bholmesdev bholmesdev left a comment

Choose a reason for hiding this comment

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

Alright, I moved all schema and utility types to a separate schemas.js file. Comfortable exposing types as an export now! DBetter merge soon 🙏

@bholmesdev bholmesdev merged commit f76dcb7 into main Mar 11, 2024
13 checks passed
@bholmesdev bholmesdev deleted the export-db-types branch March 11, 2024 22:06
@astrobot-houston astrobot-houston mentioned this pull request Mar 11, 2024
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