@aeriajs/validation 0.0.58 → 0.0.60

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.
@@ -7,7 +7,7 @@ export type ValidateOptions = {
7
7
  coerce?: boolean;
8
8
  };
9
9
  export declare const makeValidationError: <TValidationError extends ValidationError>(error: TValidationError) => TValidationError;
10
- export declare const validateProperty: <TWhat>(propName: string, what: TWhat, property: Property | undefined, options?: ValidateOptions) => Either<PropertyValidationError | ValidationError, any>;
10
+ export declare const validateProperty: <TWhat>(propName: string, what: TWhat, property: Property | undefined, options?: ValidateOptions) => Either<PropertyValidationError | ValidationError, unknown>;
11
11
  export declare const validateWholeness: (what: Record<string, any>, schema: Omit<JsonSchema, '$id'>) => {
12
12
  code: ValidationErrorCode.MissingProperties;
13
13
  errors: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/validation",
3
- "version": "0.0.58",
3
+ "version": "0.0.60",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -26,8 +26,8 @@
26
26
  "@aeriajs/types": "link:../types"
27
27
  },
28
28
  "peerDependencies": {
29
- "@aeriajs/common": "^0.0.55",
30
- "@aeriajs/types": "^0.0.52"
29
+ "@aeriajs/common": "^0.0.57",
30
+ "@aeriajs/types": "^0.0.54"
31
31
  },
32
32
  "scripts": {
33
33
  "test": "env TS_NODE_COMPILER_OPTIONS=\"$(cat ../compilerOptions.json)\" mocha -r ts-node/register tests/*.spec.ts",