window.ts 1000 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import 'recurly__recurly-js'
  2. import { ScopeValueStore } from './ide/scope-value-store'
  3. import { MetaAttributesCache } from '@/utils/meta'
  4. import { Socket } from '@/features/ide-react/connection/types/socket'
  5. declare global {
  6. // eslint-disable-next-line no-unused-vars
  7. interface Window {
  8. metaAttributesCache: MetaAttributesCache
  9. _ide: Record<string, unknown> & {
  10. $scope: Record<string, unknown> & {
  11. pdf?: {
  12. logEntryAnnotations: Record<string, unknown>
  13. }
  14. }
  15. socket: Socket
  16. }
  17. MathJax: Record<string, any>
  18. // For react-google-recaptcha
  19. recaptchaOptions?: {
  20. enterprise?: boolean
  21. useRecaptchaNet?: boolean
  22. }
  23. expectingLinkedFileRefreshedSocketFor?: string | null
  24. writefull?: {
  25. type: 'extension' | 'integration'
  26. }
  27. WritefullStub?: any
  28. io?: any
  29. overleaf: {
  30. unstable: {
  31. store: ScopeValueStore
  32. }
  33. }
  34. ga?: (...args: any) => void
  35. gtag?: (...args: any) => void
  36. }
  37. }