diff --git a/apps/www/src/content/docs/installation/vite.md b/apps/www/src/content/docs/installation/vite.md index 97011ae0..a06440a4 100644 --- a/apps/www/src/content/docs/installation/vite.md +++ b/apps/www/src/content/docs/installation/vite.md @@ -91,6 +91,12 @@ Install `tailwindcss` and its peer dependencies, then generate your `tailwind.co ### Edit tsconfig/jsconfig.json + + +If you're using TypeScript, the current version of Vite splits configuration into three files, requiring the same change for `tsconfig.app.json`. + + + Add the code below to the compilerOptions of your `tsconfig.json` or `jsconfig.json` so your app can resolve paths without error ```json {4-7} diff --git a/apps/www/src/lib/registry/default/ui/auto-form/AutoForm.vue b/apps/www/src/lib/registry/default/ui/auto-form/AutoForm.vue index 3cdf2c89..f836bbe6 100644 --- a/apps/www/src/lib/registry/default/ui/auto-form/AutoForm.vue +++ b/apps/www/src/lib/registry/default/ui/auto-form/AutoForm.vue @@ -17,7 +17,7 @@ const props = defineProps<{ }>() const emits = defineEmits<{ - submit: [event: GenericObject] + submit: [event: z.infer] }>() const { dependencies } = toRefs(props) diff --git a/apps/www/src/lib/registry/new-york/ui/auto-form/AutoForm.vue b/apps/www/src/lib/registry/new-york/ui/auto-form/AutoForm.vue index 6eb3ce5f..02581961 100644 --- a/apps/www/src/lib/registry/new-york/ui/auto-form/AutoForm.vue +++ b/apps/www/src/lib/registry/new-york/ui/auto-form/AutoForm.vue @@ -17,7 +17,7 @@ const props = defineProps<{ }>() const emits = defineEmits<{ - submit: [event: GenericObject] + submit: [event: z.infer] }>() const { dependencies } = toRefs(props)