jan/web/types/index.d.ts
Faisal Amir 5fc04e09eb
feat: product analytic UI (#4262)
* chore: initial ui prompt product analytic

* chore: integrate posthog

* chore: update event app_version

* chore: update build env

* feat: posthog config in ci

* chore: resolve linter test CI

* chore: resolve e2e

* chore: disable capture unless property

* chore: update e2e

* chore: update privacy data analytic

---------

Co-authored-by: Hien To <tominhhien97@gmail.com>
2024-12-16 15:06:46 +07:00

26 lines
637 B
TypeScript

import { APIFunctions } from '@janhq/core'
/* eslint-disable @typescript-eslint/no-explicit-any */
export {}
declare global {
declare const VERSION: string
declare const ANALYTICS_ID: string
declare const POSTHOG_KEY: string
declare const POSTHOG_HOST: string
declare const ANALYTICS_HOST: string
declare const API_BASE_URL: string
declare const isMac: boolean
declare const isWindows: boolean
declare const isLinux: boolean
declare const PLATFORM: string
interface Core {
api: APIFunctions
events: EventEmitter
}
interface Window {
core?: Core | undefined
electronAPI?: any | undefined
}
}