import { Option } from "./_commons"; import { WebVitalName } from "./WebVitalName"; import { WebVitalRating } from "./WebVitalRating"; /** PageVisitEventWebVitals represents a "WebVital" as defined by google */ export interface PageVisitEventWebVitals { /** * numeric value of the web vital represented as a string since javascript * is weird and might send us an i32, a f32 or an u32. */ value: string; /** rating according to Google of the web vital */ rating: WebVitalRating; /** name of the web vital */ name: WebVitalName; /** attribution data */ attribution?: Option; }