From c7d6b4f054b7ce3c3184aa2d086abc4ef72538ab Mon Sep 17 00:00:00 2001 From: Davide Di Pumpo Date: Thu, 30 Oct 2025 13:01:51 +0100 Subject: [PATCH 1/2] fix: OmegaForm schema validation --- .../vue-components/src/components/OmegaForm/OmegaFormStuff.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vue-components/src/components/OmegaForm/OmegaFormStuff.ts b/packages/vue-components/src/components/OmegaForm/OmegaFormStuff.ts index 9b2189ccf8..09c18e9b36 100644 --- a/packages/vue-components/src/components/OmegaForm/OmegaFormStuff.ts +++ b/packages/vue-components/src/components/OmegaForm/OmegaFormStuff.ts @@ -15,7 +15,7 @@ export type Leaves = T extends ReadonlyArray & {} }[keyof T] -export type BaseProps = { +export type BaseProps = NestedKeyOf> = { /** * Will fallback to i18n when not specified. * Can also be provided via #label slot for custom HTML labels. @@ -24,7 +24,7 @@ export type BaseProps = { label?: string validators?: FieldValidators // Use FlexibleArrayPath: if name contains [], just use TName; otherwise intersect with Leaves - name: Leaves + name: TName & Leaves /** * Optional class to apply to the input element. * - If a string is provided, it will be used instead of the general class From 3fcbcddaf5e03b53946b5cdf7f999f74dcf38e75 Mon Sep 17 00:00:00 2001 From: Davide Di Pumpo Date: Thu, 30 Oct 2025 13:02:33 +0100 Subject: [PATCH 2/2] chore --- .changeset/cyan-clubs-joke.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/cyan-clubs-joke.md diff --git a/.changeset/cyan-clubs-joke.md b/.changeset/cyan-clubs-joke.md new file mode 100644 index 0000000000..21190b3376 --- /dev/null +++ b/.changeset/cyan-clubs-joke.md @@ -0,0 +1,5 @@ +--- +"@effect-app/vue-components": patch +--- + +Fixes name for state update