Skip to content
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

[TS] Fix missing default Page type export #11919

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Philzen
Copy link
Contributor

@Philzen Philzen commented Jan 22, 2025

As the title says. Fixes the last TypeScript error in packages/router/src/__tests__/pageLoadingContext.test.tsx.

@Philzen
Copy link
Contributor Author

Philzen commented Jan 22, 2025

@Tobbe do you think we could easily introduce a typecheck job (similar to yarn rw tc in RW projects) into the CI and start fixing & including files and folders incrementally?

Not sure if there were any rules of engagement regarding this approach in the past, the downside here is of course slightly increased CI runtime and a slower iteration cycles. But the advantages could be worth it, especially we could never break working and tested types again in new releases – thinking of all the commits that were just rolled back in the Router Set type for example, which would never have been merged in the first place if such a job was in place.

@Philzen
Copy link
Contributor Author

Philzen commented Jan 22, 2025

@Tobbe do you think we could easily introduce a typecheck job (similar to yarn rw tc in RW projects) into the CI and start fixing & including files and folders incrementally?

Ahh it looks like there already exists something like that:

grafik

However it apparently does not check the tests folder – which i believe should be included as they are the actual application of the types.

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