| 39 | |
| 40 | // Loader config injected from the backend |
| 41 | interface LoaderConfig { |
| 42 | dsn: string; |
| 43 | tracesSampleRate?: number; |
| 44 | replaysSessionSampleRate?: number; |
| 45 | replaysOnErrorSampleRate?: number; |
| 46 | debug?: boolean; |
| 47 | // Although this is not a top-level SDK option we pass this flag so we can |
| 48 | // auto-add the integration in the loader template |
| 49 | autoInjectFeedback?: boolean; |
| 50 | integrations?: |
| 51 | | {name: string}[] |
| 52 | | ((integrations: {name: string}[]) => {name: string}[]); |
| 53 | [key: string]: unknown; |
| 54 | } |
| 55 | |
| 56 | function queueIsError(item: QueueItem): item is ErrorQueueItem { |
| 57 | return 'e' in item; |
nothing calls this directly
no outgoing calls
no test coverage detected