window.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import 'recurly__recurly-js'
  2. import { ScopeValueStore } from './ide/scope-value-store'
  3. import { MetaAttributesCache } from '@/utils/meta'
  4. import { ReCaptchaInstance } from './recaptcha'
  5. import { WritefullWindow } from './writefull/writefull-window'
  6. declare global {
  7. // eslint-disable-next-line no-unused-vars
  8. interface Window {
  9. metaAttributesCache: MetaAttributesCache
  10. MathJax: Record<string, any>
  11. // For react-google-recaptcha
  12. recaptchaOptions?: {
  13. enterprise?: boolean
  14. useRecaptchaNet?: boolean
  15. }
  16. expectingLinkedFileRefreshedSocketFor?: string | null
  17. writefull?: WritefullWindow
  18. WritefullStub?: any
  19. io?: any
  20. overleaf: {
  21. unstable: {
  22. store: ScopeValueStore
  23. }
  24. }
  25. ga?: (...args: any) => void
  26. gtag?: (...args: any) => void
  27. propensity?: (propensityId?: string) => void
  28. olLoadGA?: () => void
  29. olLoadMixpanelAutocapture?: () => void
  30. grecaptcha?: ReCaptchaInstance
  31. _linkedin_data_partner_ids?: string[]
  32. lintrk?: ((a: string, b?: unknown) => void) & {
  33. q: Array<[string, unknown?]>
  34. }
  35. }
  36. }