@regle/schemas 1.0.2 → 1.0.3

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.
@@ -211,9 +211,9 @@ type RegleSchemaStatus<TState extends Record<string, any> = Record<string, any>,
211
211
  /** Collection of all the error messages, collected for all children properties and nested forms.
212
212
  *
213
213
  * Only contains errors from properties where $dirty equals true. */
214
- readonly $errors: RegleErrorTree<TState>;
214
+ readonly $errors: RegleErrorTree<TState, {}, true>;
215
215
  /** Collection of all the error messages, collected for all children properties. */
216
- readonly $silentErrors: RegleErrorTree<TState>;
216
+ readonly $silentErrors: RegleErrorTree<TState, {}, true>;
217
217
  /** Will return a copy of your state with only the fields that are dirty. By default it will filter out nullish values or objects, but you can override it with the first parameter $extractDirtyFields(false). */
218
218
  $extractDirtyFields: (filterNullishValues?: boolean) => PartialDeep<TState>;
219
219
  } & (IsRoot extends true ? {
@@ -260,9 +260,9 @@ type RegleSchemaCollectionStatus<TSchema extends Record<string, any>, TState ext
260
260
  /** Collection of all the error messages, collected for all children properties and nested forms.
261
261
  *
262
262
  * Only contains errors from properties where $dirty equals true. */
263
- readonly $errors: RegleCollectionErrors<TSchema>;
263
+ readonly $errors: RegleCollectionErrors<TSchema, {}, true>;
264
264
  /** Collection of all the error messages, collected for all children properties and nested forms. */
265
- readonly $silentErrors: RegleCollectionErrors<TSchema>;
265
+ readonly $silentErrors: RegleCollectionErrors<TSchema, {}, true>;
266
266
  /** Will return a copy of your state with only the fields that are dirty. By default it will filter out nullish values or objects, but you can override it with the first parameter $extractDirtyFields(false). */
267
267
  $extractDirtyFields: (filterNullishValues?: boolean) => PartialDeep<TState>;
268
268
  } & ([TShortcuts['collections']] extends [never] ? {} : {
@@ -211,9 +211,9 @@ type RegleSchemaStatus<TState extends Record<string, any> = Record<string, any>,
211
211
  /** Collection of all the error messages, collected for all children properties and nested forms.
212
212
  *
213
213
  * Only contains errors from properties where $dirty equals true. */
214
- readonly $errors: RegleErrorTree<TState>;
214
+ readonly $errors: RegleErrorTree<TState, {}, true>;
215
215
  /** Collection of all the error messages, collected for all children properties. */
216
- readonly $silentErrors: RegleErrorTree<TState>;
216
+ readonly $silentErrors: RegleErrorTree<TState, {}, true>;
217
217
  /** Will return a copy of your state with only the fields that are dirty. By default it will filter out nullish values or objects, but you can override it with the first parameter $extractDirtyFields(false). */
218
218
  $extractDirtyFields: (filterNullishValues?: boolean) => PartialDeep<TState>;
219
219
  } & (IsRoot extends true ? {
@@ -260,9 +260,9 @@ type RegleSchemaCollectionStatus<TSchema extends Record<string, any>, TState ext
260
260
  /** Collection of all the error messages, collected for all children properties and nested forms.
261
261
  *
262
262
  * Only contains errors from properties where $dirty equals true. */
263
- readonly $errors: RegleCollectionErrors<TSchema>;
263
+ readonly $errors: RegleCollectionErrors<TSchema, {}, true>;
264
264
  /** Collection of all the error messages, collected for all children properties and nested forms. */
265
- readonly $silentErrors: RegleCollectionErrors<TSchema>;
265
+ readonly $silentErrors: RegleCollectionErrors<TSchema, {}, true>;
266
266
  /** Will return a copy of your state with only the fields that are dirty. By default it will filter out nullish values or objects, but you can override it with the first parameter $extractDirtyFields(false). */
267
267
  $extractDirtyFields: (filterNullishValues?: boolean) => PartialDeep<TState>;
268
268
  } & ([TShortcuts['collections']] extends [never] ? {} : {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@regle/schemas",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Schemas adapter for Regle",
5
5
  "dependencies": {
6
6
  "@standard-schema/spec": "1.0.0",
7
- "@regle/core": "1.0.2",
8
- "@regle/rules": "1.0.2"
7
+ "@regle/core": "1.0.3",
8
+ "@regle/rules": "1.0.3"
9
9
  },
10
10
  "peerDependencies": {
11
11
  "valibot": "^1.0.0-beta.11",