We should run type checks at some point (PRs? builds?) to ensure we're in-line at all times. This came up because our mocks tend to get very out of date; an example is Prismic's Image type where they added two new required fields. Most mocks started showing errors, but as they're never interacted with, they're not getting updated.
We should add a type check, with a PR that fixes all flagged issues. Then, if/when it happens again, it has to be addressed right away and we're less in danger of falling behind.
We should run type checks at some point (PRs? builds?) to ensure we're in-line at all times. This came up because our mocks tend to get very out of date; an example is Prismic's Image type where they added two new required fields. Most mocks started showing errors, but as they're never interacted with, they're not getting updated.
We should add a type check, with a PR that fixes all flagged issues. Then, if/when it happens again, it has to be addressed right away and we're less in danger of falling behind.
Github action? https://github.com/marketplace/actions/typescript-compiler Git hook? https://github.com/guardian/pressreader/blob/main/scripts/setup#L9