arvo-core 1.0.11 → 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<
|
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<
|
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.
|