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

Add Typescript to handle global types? #472

Open
3 tasks
RobertGemmaJr opened this issue May 14, 2024 · 1 comment
Open
3 tasks

Add Typescript to handle global types? #472

RobertGemmaJr opened this issue May 14, 2024 · 1 comment
Labels
dependencies Pull requests that update a dependency file question Further information is requested

Comments

@RobertGemmaJr
Copy link
Member

We definitely want to steer away from .ts files but I wonder if adding typescript to the project will be useful simply for the typing of global variables?

  • typing of Vite global variables (MAIN_WINDOW_VITE_DEV_SERVER_URL, MAIN_WINDOW_VITE_NAME)
  • Typing of import.meta.env (properties from Vite)
  • Typing of import.meta.env (Custom environment variables)
@RobertGemmaJr RobertGemmaJr added dependencies Pull requests that update a dependency file question Further information is requested labels May 14, 2024
@RobertGemmaJr
Copy link
Member Author

I don't think I need typescript? Just add an index.d.ts file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant