Overmind icon indicating copy to clipboard operation
Overmind copied to clipboard

Update to the new Store interface

Open tiennou opened this issue 1 year ago • 0 comments

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:

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

tiennou avatar Feb 05 '24 16:02 tiennou