@aeriajs/types 0.0.3 → 0.0.4

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.
@@ -12,15 +12,18 @@ export type PropertyValidationError = {
12
12
  got: string;
13
13
  };
14
14
  };
15
- export type ValidationError = {
15
+ export type ValidationErrorInvalidProperties = {
16
16
  code: ValidationErrorCodes.InvalidProperties;
17
17
  errors: Record<string, PropertyValidationError | ValidationError>;
18
- } | {
18
+ };
19
+ export type ValidationErrorMissingProperties = {
19
20
  code: ValidationErrorCodes.MissingProperties;
20
21
  errors: Record<string, {
21
22
  type: 'missing';
22
23
  }>;
23
- } | {
24
+ };
25
+ export type ValidationErrorEmptyTarget = {
24
26
  code: ValidationErrorCodes.EmptyTarget;
25
27
  errors: {};
26
28
  };
29
+ export type ValidationError = ValidationErrorInvalidProperties | ValidationErrorMissingProperties | ValidationErrorEmptyTarget;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/types",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",