-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Extract grapher and core table types #3056
Conversation
97da006
to
51d723c
Compare
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
51d723c
to
1d68047
Compare
168bd71
to
a5ba090
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! app compiles & runs, DB migrations run fine 🙂👍
searching type \w+ =
in ./packages/@ourworldindata/grapher/src
shows a few places still where we have collections of type declarations in the grapher core library (e.g. StackedConstants.ts
and MarimekkoChartConstants.ts
)
Are those excepted because they're very specific to an internal usecase and closeness is more valuable? Not a blocker either way
Ah yes, nice catch, I have missed some types. I'll merge these and then we can move the remaining ones over in a follow up |
96ebec0
to
58da469
Compare
a5ba090
to
f3522c9
Compare
This PR breaks the messy `owidTypes.ts` file up into around 20 files and moves them into the `types` package. This PR has some issues on the tests that were fixed in the next PR in the stack (#3056) - it is only supposed to be merged as part of the entire stack.
The rest of the codebase still has to be adapted
0c64f41
to
0ee6c51
Compare
This PR extracts all types from the
grapher
andcore-table
packages and moves them into thetypes
package. This will allow us to freely re-use types finally, e.g. so that theChartsRow
type defined in types can specify that thecontent
field is aGrapherInterface
.