Skip to content

Comments

Update to the new Store interface#212

Open
tiennou wants to merge 1 commit intobencbartlett:devfrom
tiennou:fix/store-changes
Open

Update to the new Store interface#212
tiennou wants to merge 1 commit intobencbartlett:devfrom
tiennou:fix/store-changes

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

@tiennou tiennou force-pushed the fix/store-changes branch from dc5f5ad to c048630 Compare March 23, 2024 21:38
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