window.ts 998 B

123456789101112131415161718192021222324252627282930313233343536
  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. }
  35. }