UNPKG

@aftership/web-pixels

Version:

AfterShip Web Pixels for data anaylsis

9 lines (8 loc) 386 B
import Avo from '../apps/to_business/web/Avo'; import { AvoEvents } from './pixelAvoEvents'; export type WithDynamicPixelId<T> = { [K in keyof T]: T[K] extends (...args: any[]) => any ? (...args: Parameters<T[K]>) => ReturnType<T[K]> : T[K]; }; export interface PixelEventUtils { wrapWithDynamicPixelId?: (dynamicPixelId: string) => WithDynamicPixelId<AvoEvents<typeof Avo>>; }