mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 02:28:30 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Yansong Zhang <916125788@qq.com>
25 lines
638 B
TypeScript
25 lines
638 B
TypeScript
import './types/i18n'
|
|
import './types/jsx'
|
|
import './types/mdx'
|
|
import './types/assets'
|
|
|
|
declare global {
|
|
// Google Analytics gtag types
|
|
type GtagEventParams = {
|
|
[key: string]: unknown
|
|
}
|
|
|
|
type Gtag = {
|
|
(command: 'config', targetId: string, config?: GtagEventParams): void
|
|
(command: 'event', eventName: string, eventParams?: GtagEventParams): void
|
|
(command: 'js', date: Date): void
|
|
(command: 'set', config: GtagEventParams): void
|
|
}
|
|
|
|
// eslint-disable-next-line ts/consistent-type-definitions -- interface required for declaration merging
|
|
interface Window {
|
|
gtag?: Gtag
|
|
dataLayer?: unknown[]
|
|
}
|
|
}
|