window.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. crypto: {
  19. randomUUID: () => string
  20. }
  21. // For react-google-recaptcha
  22. recaptchaOptions?: {
  23. enterprise?: boolean
  24. useRecaptchaNet?: boolean
  25. }
  26. expectingLinkedFileRefreshedSocketFor?: string | null
  27. writefull?: {
  28. type: 'extension' | 'integration'
  29. }
  30. WritefullStub?: any
  31. io?: any
  32. overleaf: {
  33. unstable: {
  34. store: ScopeValueStore
  35. }
  36. }
  37. ga?: (...args: any) => void
  38. gtag?: (...args: any) => void
  39. }
  40. }