Function: withAsyncErrorHandling()
withAsyncErrorHandling(
operation
: () =>Promise
<void
>,operationName
:string
): () =>void
Defined in: src/utils/fallbacks.ts:73
Type-safe utility for React async event handlers. Prevents void return type issues with async operations.
Parametersโ
operationโ
() => Promise
<void
>
Async operation to execute
operationNameโ
string
Name for logging purposes
Returnsโ
Sync function suitable for React event handlers
():
void
Returnsโ
void