Skip to content

Globals type fix / Typescript 5.7#57

Closed
marcustyphoon wants to merge 3 commits into
mainfrom
typescript-5.7
Closed

Globals type fix / Typescript 5.7#57
marcustyphoon wants to merge 3 commits into
mainfrom
typescript-5.7

Conversation

@marcustyphoon

@marcustyphoon marcustyphoon commented Nov 29, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
Member 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
Copy Markdown
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