UNPKG

@artsy/cohesion

Version:
20 lines (19 loc) 599 B
import { PageOwnerType, TimeOnPage } from "../../Schema"; export interface TimeOnPageArgs { contextPageOwnerId?: string; contextPageOwnerSlug?: string; contextPageOwnerType?: PageOwnerType; } /** * Action fired when a user views a page for 15 seconds * * @example * ``` * timeOnPage({ * contextPageOwnerId: "4d8b92b34eb68a1b2c0003f4", * contextPageOwnerSlug: "andy-warhol", * contextPageOwnerType: OwnerType.artist, * }) * ``` */ export declare const timeOnPage: ({ contextPageOwnerId, contextPageOwnerSlug, contextPageOwnerType, }: TimeOnPageArgs) => TimeOnPage;