MockTypedInteraction interface

Namespace @runic-artifex/views/mock · @runic-artifex/views 0.7.0-preview.5

interface MockTypedInteraction<TInput, TOutput>

An interaction that .NET asks the browser to handle.

Properties

handled

readonly handled: boolean;

Whether a mounted client currently handles it.

Methods

request

request(input: TInput, options?: MockInteractionOptions): Promise<{
    readonly kind: "answered";
    readonly output: TOutput;
} | {
    readonly kind: "cancelled" | "failed" | "unhandled";
}>;

Sends a request to the client's handler and resolves with its reply.