From 113e2e71662ba6eb736dd6f3075adc3891cda333 Mon Sep 17 00:00:00 2001 From: Maxime Pauvert Date: Tue, 15 Apr 2025 10:28:57 +0200 Subject: [PATCH] docs(form): fix typo in expose section (#3895) --- docs/content/3.components/form.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/3.components/form.md b/docs/content/3.components/form.md index 1a0776e3..e3a08f52 100644 --- a/docs/content/3.components/form.md +++ b/docs/content/3.components/form.md @@ -199,7 +199,7 @@ This will give you access to the following: | `validate(opts: { name?: keyof T \| (keyof T)[], silent?: boolean, nested?: boolean, transform?: boolean })`{lang="ts-type"} | `Promise`{lang="ts-type"}

Triggers form validation. Will raise any errors unless `opts.silent` is set to true.

| | `clear(path?: keyof T)`{lang="ts-type"} | `void`

Clears form errors associated with a specific path. If no path is provided, clears all form errors.

| | `getErrors(path?: keyof T)`{lang="ts-type"} | `FormError[]`{lang="ts-type"}

Retrieves form errors associated with a specific path. If no path is provided, returns all form errors.

| -| `setErrors(errors: FormError[], path?: keyof T)`{lang="ts-type"} | `void`

Sets form errors for a given path. If no path is provided, overrides all errors.

| +| `setErrors(errors: FormError[], name?: keyof T)`{lang="ts-type"} | `void`

Sets form errors for a given path. If no path is provided, overrides all errors.

| | `errors`{lang="ts-type"} | `Ref`{lang="ts-type"}

A reference to the array containing validation errors. Use this to access or manipulate the error information.

| | `disabled`{lang="ts-type"} | `Ref`{lang="ts-type"} | | `dirty`{lang="ts-type"} | `Ref`{lang="ts-type"} `true` if at least one form field has been updated by the user.| @@ -209,4 +209,4 @@ This will give you access to the following: ## Theme -:component-theme \ No newline at end of file +:component-theme