feat(nuxt): typed props for layout property in definePageMeta#34409
feat(nuxt): typed props for layout property in definePageMeta#34409
layout property in definePageMeta#34409Conversation
|
|
@nuxt/kit
@nuxt/nitro-server
nuxt
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Repository UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
WalkthroughThe PageMeta.layout type signature in the Nuxt module declaration was updated to implement stronger type safety for layout properties. The change restructures the layout property definition from a union type with generic Record<string, any> props to a mapped-type structure that associates specific layout keys with their corresponding prop types from the NuxtLayouts mapping. This modification replaces the single generic props definition with per-layout prop types indexed by LayoutKey. 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
🔗 Linked issue
no response
📚 Description
no response