UNPKG

@adapty/capacitor

Version:
8 lines (7 loc) 334 B
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 {};