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

Update to the new Store interface #212

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

tiennou
Copy link

@tiennou tiennou commented Feb 5, 2024

Pull request summary

Description:

This cleans up the wrong interface definition we have over Store, which breaks TS since it's a type declaration upstream and not an interface. Also provides specific typings for arrays of store contents, updates most of the definitions that have an object-like store-thing ([resourceType: string]: number;) to an explicit type, and switches all of the deprecated before-Store properties to use the new style as well as using thing.store[RESOURCE_THING] instead of the named property.

Testing checklist:

  • Changes are backward-compatible
  • Codebase compiles with current tsconfig configuration
  • Tested changes on public server

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.

1 participant