mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-22 17:28:09 +00:00
Summary: Flow provides a utility type for this purpose; there’s no need to implement, document, and keep it in sync ourselves: <https://flow.org/en/docs/types/utilities/#toc-shape> Test Plan: As written, `yarn flow` passes. Changing the definition of `params` on line 77 of `load.test.js` to add a key `foo: "wat"` or change the value of `weights` to `{hmm: "hmm"}` yield appropriate type errors. wchargin-branch: use-shape