From 85763e1b51bd905df66fca5e4847e3c8176731e6 Mon Sep 17 00:00:00 2001 From: Sinh Date: Sat, 17 Aug 2024 05:29:43 +0000 Subject: [PATCH] enhancement: update autoform emit submit event type(#716) If compiler options are only added to just tsconfig.json, module resolution fails for `@/lib/utils` during build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - [ ] ๐Ÿ“– Documentation (updates to the documentation, readme or JSdoc annotations) - [ ] ๐Ÿž Bug fix (a non-breaking change that fixes an issue) - [x] ๐Ÿ‘Œ Enhancement (improving an existing functionality like performance) - [ ] โœจ New feature (a non-breaking change that adds functionality) - [ ] ๐Ÿงน Chore (updates to the build process or auxiliary tools and libraries) - [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to change) The change is mean to allow event type to support `values: z.infer`, not only `values: Record` Resolves #716 - [x] I have linked an issue or discussion. - [ ] I have updated the documentation accordingly. --- apps/www/src/lib/registry/default/ui/auto-form/AutoForm.vue | 2 +- apps/www/src/lib/registry/new-york/ui/auto-form/AutoForm.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)