@astral/validations 4.14.2 → 4.14.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.
@@ -26,9 +26,9 @@ export interface Guard<TLastSchemaValues extends Record<string, unknown> = {}, A
26
26
  /**
27
27
  * @description Функция для создания нового guard с переопределенными дефолтными параметрами. Возвращает новый guard
28
28
  * @param options - параметры, позволяющие переопределить дефолтные настройки guard
29
- * @example string.define({ requiredMessage: 'ИНН не может быть пустым' })(inn())
29
+ * @example string(inn()).define({ requiredMessage: 'ИНН не может быть пустым' })
30
30
  */
31
- define(options: GuardDefOptions<AddDefOptions>): Guard<TLastSchemaValues, AddDefOptions>;
31
+ define<TDefineLastSchemaValues extends Record<string, unknown> = {}>(options: GuardDefOptions<AddDefOptions>): Guard<TDefineLastSchemaValues, AddDefOptions>;
32
32
  }
33
33
  /**
34
34
  * @description Интерфейс асинхронной функции guard, которая в прототипе содержит метод define
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/validations",
3
- "version": "4.14.2",
3
+ "version": "4.14.3",
4
4
  "browser": "./index.js",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
@@ -4,6 +4,6 @@ import { type object } from '../object';
4
4
  * @param objectGuard
5
5
  * @example partial(object({ name: string() }))
6
6
  */
7
- export declare const partial: (objectGuard: ReturnType<typeof object>) => import("../core").Guard<Record<string, unknown>, {
7
+ export declare const partial: (objectGuard: ReturnType<typeof object>) => import("../core").Guard<{}, {
8
8
  isPartial?: boolean | undefined;
9
9
  }>;