arvo-core 1.0.10 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,7 @@ export default class ArvoContract<TUri extends string = string, TType extends st
47
47
  * @returns The validation result.
48
48
  * @throws If the accept type is not found in the contract.
49
49
  */
50
- validateInput<U>(type: TType, input: U): z.SafeParseReturnType<U, z.infer<TAcceptSchema>>;
50
+ validateInput<U>(type: TType, input: U): z.SafeParseReturnType<any, any>;
51
51
  /**
52
52
  * Validates the contract bound handler's output against the
53
53
  * contract's emit schema.
@@ -57,9 +57,7 @@ export default class ArvoContract<TUri extends string = string, TType extends st
57
57
  * @returns The validation result.
58
58
  * @throws If the emit type is not found in the contract.
59
59
  */
60
- validateOutput<U extends keyof TEmits>(type: U, output: unknown): z.SafeParseReturnType<unknown, z.infer<Extract<TEmits, {
61
- type: U;
62
- }>['schema']>>;
60
+ validateOutput<U extends keyof TEmits>(type: U, output: unknown): z.SafeParseReturnType<any, any>;
63
61
  /**
64
62
  * Validates the accepts record.
65
63
  * @param accepts - The accepts record to validate.
@@ -92,5 +90,5 @@ export default class ArvoContract<TUri extends string = string, TType extends st
92
90
  * - accepts: An object containing the accepted input type and its JSON Schema representation
93
91
  * - emits: An array of objects, each containing an emitted event type and its JSON Schema representation
94
92
  */
95
- toJsonSchema(): Object;
93
+ toJsonSchema(): Record<string, any>;
96
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arvo-core",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "This core package contains all the core classes and components of the Arvo Event Driven System",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {