dify/web/global.d.ts
yyh ab521c4cfd
refactor(chat): modernize speech-to-text pipeline (#38653)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Yansong Zhang <916125788@qq.com>
2026-07-13 04:21:29 +00:00

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[]
}
}