UNPKG

@aws-amplify/analytics

Version:

Analytics category of aws-amplify

13 lines (12 loc) 612 B
/** * Wraps a Pinpoint (default-export) Analytics API so that invoking it emits a * one-time runtime deprecation warning before delegating to the underlying * implementation. The returned function is a transparent proxy — it preserves * the exact parameters, return value, and `this` binding of the wrapped API. * * The warning is emitted at most once per wrapped API for the lifetime of the * module, so repeated calls do not spam the console. * * @internal */ export declare const deprecatePinpoint: <TArgs extends any[], TReturn>(fn: (...args: TArgs) => TReturn) => ((...args: TArgs) => TReturn);