window.ts 1.1 KB

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