@adapty/capacitor
Version:
Official Adapty SDK for Capacitor
8 lines (7 loc) • 334 B
TypeScript
type AnyCallback = (...args: any[]) => any;
/**
* Wraps a user-provided callback with error context enrichment.
* Catches exceptions and wraps them with source and handler information.
*/
export declare function withErrorContext<T extends AnyCallback>(callback: T, handlerName: string, source: string): T & AnyCallback;
export {};