Because there is not an exported value, getting the form errors by injection:
- is currently brittle (could change on a future release without causing errors) and
- does not benefit from implicit typing.
Before:
```
import type { FormError } from "@nuxt/ui";
const formErrors = inject<FormError[]>('form-errors');
```
After:
```
const formErrors = inject(formErrorsInjectionKey);
```
cco3
changed the title
Export a formErrorsInjectionKey
feat(useFormField): Export a formErrorsInjectionKey
benjamincanac
changed the title
feat(useFormField): Export a formErrorsInjectionKey
feat(useFormField): export form errors injection key