- Preparing search index...
- The search index is not available
TESSA Web API
Function runWithValidationResultAsync
- runWithValidationResultAsync<T>(f: (() => Promise<T>)): Promise<[ValidationResult, T | null]>
-
Parameters
-
f: (() => Promise<T>)
-
- (): Promise<T>
-
Returns Promise<T>
Wraps an async function and returns validation result if an error occurs.
Returns
Validation result and target async function execution result.
Example