dify/web/global.d.ts
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

30 lines
780 B
TypeScript

import './types/i18n'
import './types/jsx'
import './types/mdx'
import './types/assets'
declare module 'lamejs'
declare module 'lamejs/src/js/MPEGMode'
declare module 'lamejs/src/js/Lame'
declare module 'lamejs/src/js/BitStream'
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[]
}
}