@elbwalker/destination-web-plausible
Version:
Plausible web destination for walkerOS
43 lines (36 loc) • 1.05 kB
TypeScript
import { WalkerOS, Mapping } from '@elbwalker/types';
declare function purchase$1(): unknown[];
declare function customEvent$1(): unknown[];
declare namespace events {
export { customEvent$1 as customEvent, purchase$1 as purchase };
}
declare global {
interface Window {
plausible?: Plausible & {
q?: IArguments[];
};
}
}
type Plausible = (event: string, options?: {
props?: WalkerOS.AnyObject;
}) => void;
type EventConfig = Mapping.EventConfig<CustomEvent>;
interface CustomEvent {
}
declare const customEvent: EventConfig;
declare const purchase: EventConfig;
declare const config: {
entity: {
action: EventConfig;
};
order: {
complete: EventConfig;
};
};
declare const mapping_config: typeof config;
declare const mapping_customEvent: typeof customEvent;
declare const mapping_purchase: typeof purchase;
declare namespace mapping {
export { mapping_config as config, mapping_customEvent as customEvent, mapping_purchase as purchase };
}
export { events, mapping };