-
-
Save i-am-chitti/65051d77d43e9298f4aaad2ed3aab606 to your computer and use it in GitHub Desktop.
Typescript type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type Event = { | |
[key: string]: string | undefined | number | null | boolean | object; | |
id: number; | |
site_id: number; | |
date: number; | |
user: { | |
user_id: string; | |
visitor_profile?: { | |
email: string; | |
gravatar_hash: string; | |
score: number; | |
identified_time: number; | |
}; | |
}; | |
visitor_timestamp: string; | |
visit_entry_action_url: string; | |
visit_exit_action_url?: string; | |
location_browser_lang?: string; | |
location_country?: string; | |
location_country_code?: string; | |
location_region?: string; | |
location_city?: string; | |
location_latitude?: string; | |
location_longitude?: string; | |
is_post: boolean; | |
is_page: boolean; | |
is_archive: boolean; | |
post_title?: string | null; | |
post_type?: string | null; | |
post_id?: number | null; | |
categories?: string | null; | |
tags?: string | null; | |
author?: string | null; | |
referer_type?: string | null; | |
referer_name?: string | null; | |
referer_keyword?: string | null; | |
referer_url?: string | null; | |
campaign_keyword?: string | null; | |
campaign_name?: string | null; | |
campaign_medium?: string | null; | |
campaign_source?: string | null; | |
campaign_content?: string | null; | |
campaign_id?: string | null; | |
ip: { | |
ip_address: string; | |
company_name?: string; | |
company_type?: string; | |
company_domain?: string; | |
}; | |
event_type: string; | |
event: { | |
type: string; | |
label: string; | |
event_meta: { | |
[x: string]: string | object | null | undefined | [] | number | boolean; | |
}; | |
}; | |
}; | |
const event: Event = {}; | |
const abc = event?.pow; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment