| 32 | |
| 33 | declare global { |
| 34 | interface Window { |
| 35 | /** |
| 36 | * Primary entrypoint for rendering the sentry app. This is typically |
| 37 | * called in the django templates, or in the case of the EXPERIMENTAL_SPA, |
| 38 | * after config hydration. |
| 39 | */ |
| 40 | SentryRenderApp: () => void; |
| 41 | /** |
| 42 | * Used to close tooltips for testing purposes. |
| 43 | */ |
| 44 | __closeAllTooltips: () => void; |
| 45 | |
| 46 | /** |
| 47 | * The config object provided by the backend. |
| 48 | */ |
| 49 | __initialData: Config; |
| 50 | |
| 51 | /** |
| 52 | * This allows our server-rendered templates to push configuration that should be |
| 53 | * run after we render our main application. |
| 54 | * |
| 55 | * An example of this is dynamically importing the `passwordStrength` module only |
| 56 | * on the organization login page. |
| 57 | */ |
| 58 | __onSentryInit: |
| 59 | | OnSentryInitConfiguration[] |
| 60 | | { |
| 61 | push: (config: OnSentryInitConfiguration) => void; |
| 62 | }; |
| 63 | |
| 64 | /** |
| 65 | * Used to open tooltips for testing purposes. |
| 66 | */ |
| 67 | __openAllTooltips: () => void; |
| 68 | /** |
| 69 | * Assets public location |
| 70 | */ |
| 71 | __sentryGlobalStaticPrefix: string; |
| 72 | |
| 73 | // typing currently used for demo add on |
| 74 | // TODO: improve typing |
| 75 | SentryApp?: { |
| 76 | ConfigStore: any; |
| 77 | Modal: any; |
| 78 | getModalPortal: () => HTMLElement; |
| 79 | modalFocusTrap?: { |
| 80 | current?: FocusTrap | null; |
| 81 | }; |
| 82 | }; |
| 83 | /** |
| 84 | * Is the UI running as dev-ui proxy. |
| 85 | * Used by webpack-devserver + html-webpack |
| 86 | */ |
| 87 | __SENTRY_DEV_UI?: boolean; |
| 88 | /** |
| 89 | * Sentrys version string |
| 90 | */ |
| 91 | __SENTRY__VERSION?: string; |
no outgoing calls
no test coverage detected