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.