window.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. grecaptcha?: ReCaptchaInstance
  30. _linkedin_data_partner_ids?: string[]
  31. lintrk?: ((a: string, b?: unknown) => void) & {
  32. q: Array<[string, unknown?]>
  33. }
  34. }
  35. }