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 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