@spindl-xyz/attribution-lite
Version:
Web3 Attribution SDK
23 lines (22 loc) • 597 B
TypeScript
import { Beacon } from "./beacon";
import { Primitive } from "./metadata";
export interface CustomEventBeaconOptions {
type: string;
data: {
sourceUrl: string;
name: string;
properties: {
[key: string]: Primitive;
};
};
identity?: {
address?: string;
customerUserId?: string;
};
}
export declare function createCustomEventsPlugin(beacon: Beacon): {
track: (name: string, properties?: Record<string, any>, identityProps?: {
address?: string;
customerUserId?: string;
}) => Promise<boolean>;
};