window.ts 893 B

12345678910111213141516171819202122232425262728293031323334
  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. declare global {
  6. // eslint-disable-next-line no-unused-vars
  7. interface Window {
  8. metaAttributesCache: MetaAttributesCache
  9. MathJax: Record<string, any>
  10. // For react-google-recaptcha
  11. recaptchaOptions?: {
  12. enterprise?: boolean
  13. useRecaptchaNet?: boolean
  14. }
  15. expectingLinkedFileRefreshedSocketFor?: string | null
  16. writefull?: {
  17. type: 'extension' | 'integration'
  18. }
  19. WritefullStub?: any
  20. io?: any
  21. overleaf: {
  22. unstable: {
  23. store: ScopeValueStore
  24. }
  25. }
  26. ga?: (...args: any) => void
  27. gtag?: (...args: any) => void
  28. propensity?: (propensityId?: string) => void
  29. olLoadGA?: () => void
  30. grecaptcha?: ReCaptchaInstance
  31. }
  32. }