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 typings for window. #2839

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

benjaminpjones
Copy link
Contributor

@benjaminpjones benjaminpjones commented Oct 2, 2024

(window as any).some_field is abundant across the codebase. This diff applies some types using interface merging. There are two benefits:

  • More consistency when storing and accessing fields.
  • Centralized documentation of the global variables.
  • window.some_field just looks a bit nicer

Tested: yarn webpack builds fine, yarn dev has no errors and looks okay when I visit localhost:8080

The codebase is littered with (window as any).some_field.  This diff applies some
types.  There are two benefits:

- More consistency when storing and accessing fields.
- Centralized documentation of the global variables.
Copy link

github-actions bot commented Oct 2, 2024

Uffizzi Preview deployment-56829 was deleted.

@anoek
Copy link
Member

anoek commented Oct 2, 2024

Nice, thanks!

@anoek anoek merged commit 297724b into online-go:devel Oct 2, 2024
4 checks passed
@benjaminpjones benjaminpjones deleted the window-as-not-any branch October 2, 2024 11:40
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