@aerogel/core 0.1.1-next.01bc3a1d850a91b650f8cade6c0dd8e44109e0d8 → 0.1.1-next.1d7c8c18816e65c5c2c583364135435a9eb414fa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aerogel/core",
3
- "version": "0.1.1-next.01bc3a1d850a91b650f8cade6c0dd8e44109e0d8",
3
+ "version": "0.1.1-next.1d7c8c18816e65c5c2c583364135435a9eb414fa",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -112,6 +112,10 @@ export default class FormController<Fields extends FormFieldDefinitions = FormFi
112
112
  return this._fields[field]?.rules?.split('|') ?? [];
113
113
  }
114
114
 
115
+ public setFieldErrors<T extends keyof Fields>(field: T, errors: string[] | null): void {
116
+ this._errors[field] = errors;
117
+ }
118
+
115
119
  public getFieldType<T extends keyof Fields>(field: T): FormFieldType | null {
116
120
  return this._fields[field]?.type ?? null;
117
121
  }