MockTypedOperationHandler type alias

Module @runic-artifex/views/mock in @runic-artifex/views 0.23.0

type MockTypedOperationHandler<TState, TInput, TResult, TFailure = never> = (state: TState, input: TInput, operation: MockTypedOperation<TInput, TResult, TFailure>) => Awaitable<MockTypedOperationOutcome<TState, TResult> | void>;

Runs a started operation. When it returns, a still running operation succeeds with the outcome; a throw fails it, and throw mockFailure(failure) ends it with its declared failure. Return a promise that waits on the operation's signal, or use "manual", to settle it from the test.