-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathtypes.ts
36 lines (31 loc) · 1.09 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import type { BrowserOptions, browserTracingIntegration } from '@sentry/browser';
type BrowserTracingOptions = Parameters<typeof browserTracingIntegration>[0];
export type EmberSentryConfig = {
sentry: BrowserOptions & { browserTracingOptions?: BrowserTracingOptions };
transitionTimeout: number;
ignoreEmberOnErrorWarning: boolean;
disableInstrumentComponents: boolean;
disablePerformance: boolean;
disablePostTransitionRender: boolean;
disableRunloopPerformance: boolean;
disableInitialLoadInstrumentation: boolean;
enableComponentDefinitions: boolean;
minimumRunloopQueueDuration: number;
minimumComponentRenderDuration: number;
browserTracingOptions: BrowserTracingOptions;
};
export type OwnConfig = {
sentryConfig: EmberSentryConfig;
};
// This is private in Ember and not really exported, so we "mock" these types here.
export interface EmberRouterMain {
location: {
getURL?: () => string;
formatURL?: (url: string) => string;
implementation: string;
rootURL: string;
};
}
export type GlobalConfig = {
__sentryEmberConfig: EmberSentryConfig['sentry'];
};