window.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { ExposedSettings } from './exposed-settings'
  2. import { OAuthProviders } from './oauth-providers'
  3. import { OverallThemeMeta } from './project-settings'
  4. import { User } from './user'
  5. import 'recurly__recurly-js'
  6. declare global {
  7. // eslint-disable-next-line no-unused-vars
  8. interface Window {
  9. csrfToken: string
  10. sl_debugging: boolean
  11. user: User
  12. user_id?: string
  13. oauthProviders: OAuthProviders
  14. thirdPartyIds: Record<string, string>
  15. metaAttributesCache: Map<string, any>
  16. i18n: {
  17. currentLangCode: string
  18. }
  19. ExposedSettings: ExposedSettings
  20. project_id: string
  21. gitBridgePublicBaseUrl: string
  22. _ide: Record<string, unknown> & {
  23. $scope: Record<string, unknown> & {
  24. pdf?: {
  25. logEntryAnnotations: Record<string, unknown>
  26. }
  27. }
  28. }
  29. isRestrictedTokenMember: boolean
  30. _reportCM6Perf: () => void
  31. _reportAcePerf: () => void
  32. MathJax: Record<string, any>
  33. overallThemes: OverallThemeMeta[]
  34. crypto: {
  35. randomUUID: () => string
  36. }
  37. // For react-google-recaptcha
  38. recaptchaOptions?: {
  39. enterprise?: boolean
  40. useRecaptchaNet?: boolean
  41. }
  42. }
  43. }