OptionalonOptionalonOptionalonOptionalrethrowWhether callApi() rethrows a failed call (as an ApiCallError) after onError runs.
Defaults to true - the original contract. Set to false when onError already fully
owns error feedback (e.g. it sets a reactive hasError/shows a UI error state) and every
call site would otherwise need its own no-op .catch() just to avoid an unhandled
rejection - a real, duplicated pattern found across luv-autoq-frontend's Pinia stores.
May return
ReturnValuedirectly or aPromise<ReturnValue>-ReturnValueitself is always the resolved data type (whatonSuccess/apiDataactually receive), not whatever the callback's own return type literally is. Passing anasynccallback with no explicituseApi<T>type argument previously madeReturnValueinfer asPromise<T>instead ofT, which type-checked fine inside a loosely-typed callback but broke the momentonSuccess/apiDatawere used against a real, concretely-typed domain object.