Closed IonianPlayboy closed 9 months ago
We recently switched all of the @nuxt/ui-pro
components defineProps
from type-based to runtime declaration to avoid the need to install TypeScript, you can check the PR here: https://github.com/nuxt/ui-pro/pull/189.
I agree that it would be best to use consistent declaration everywhere! I guess I've missed some like the one you linked.
A PR would be very much welcome to use runtime declaration everywhere 😊
Describe the issue
I've just noticed that
OgImageSaas
is declaring its props by passing an object parameter todefineProps
: https://github.com/nuxt-ui-pro/saas/blob/0863ec2f0249638e26444c7b855f3c0491693706/components/OgImage/OgImageSaas.vue#L6-L15Whereas the
error
page (at the root of the repository is using the type-based declaration: https://github.com/nuxt-ui-pro/saas/blob/0863ec2f0249638e26444c7b855f3c0491693706/error.vue#L10-L12This is not really an issue to be honest, but it would be nice to provide a consistent code structure across the template.
Additional notes
I am willing to make the necessary PRs to enforce consistent
defineProps
declarations across Nuxt templates, I would just need to know which syntax should be prefered and the repos that would need to be updated.