BridgeViewRequestHandler type alias

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

type BridgeViewRequestHandler<TInput> = (input: TInput, context: BridgeViewRequestContext) => void | Promise<void>;

Handles one view request of a View: a one-way presentation action the ViewModel raised, such as focusing a field or showing a toast. It runs once the page painted the state the request was raised with, so the elements of that state are rendered. Its return value is ignored; a throw or rejection is reported with reportError.