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

Globals type fix / Typescript 5.7 #57

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

marcustyphoon
Copy link
Collaborator

@marcustyphoon marcustyphoon commented Nov 29, 2024

At time of writing, Typescript 5.7 will throw an error on build because withGw2Theme.jsx in the globals package doesn't sufficiently specify its types. We currently don't export types from that package anyway, but I don't know how to fix the build script to deal with that.

This instead fixes the type (sort of) (it's hacky because it's a jsx file) (note that @mui/types probably has to be a peer dep now also?). See microsoft/TypeScript#58176 (comment).

This also thus enables exporting types from the globals package, which is... good? Right? I have no idea what this package is for in the first place so I don't really know.

@gw2princeps
Copy link
Member

Considering that the rewritten website repository no longer depends on @discretize/globals, would it make sense to merge @discretize/globals into the optimizer repository?

@marcustyphoon
Copy link
Collaborator Author

I don't understand what led to its creation/what differentiates it from our other repos :D Probably? Possibly? Would someone wanting to make a site with our components generally want any of the code in it?

@gw2princeps
Copy link
Member

Sole reason was to share code with the main site.

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