egghead-next
egghead-next copied to clipboard
chore: Improve the type safety of php-collection-page-layout.tsx

The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| egghead-io-nextjs | ✅ Ready (Inspect) | Visit Preview | Aug 24, 2022 at 0:56AM (UTC) |
| egghead-next-storybook | ✅ Ready (Inspect) | Visit Preview | Aug 24, 2022 at 0:56AM (UTC) |
It looks like you’re trying to achieve a few different things in this PR:
- Upgrade
ModuleCollectionandLessonLinkResourcewith better types so that we aren’t just usinganys. - Rename
NestedResourcetoModuleResource(good catch, that’s an improvement!)
After that, I see some reorganization of the structure of the types which seems to be leading to a refactoring of the ResourceCollection JSX. I’m less clear about the “why” on those changes. Am I reading this PR right? Could you say more about what else you’re trying to do?
Thanks for this line of discussion Josh.
Stepping back from my fine-grained nits to the broader context of "why?" 💯