@wpkernel/ui / ensureControllerRuntime
Function: ensureControllerRuntime()
ts
function ensureControllerRuntime(candidate): DataViewsControllerRuntime;Ensures that the provided runtime is a valid DataViewsControllerRuntime.
Throws a DataViewsConfigurationError if the runtime is invalid.
Parameters
candidate
The runtime candidate to validate.
WPKernelDataViewsRuntime | DataViewsControllerRuntime
Returns
The validated DataViewsControllerRuntime instance.
