File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { WINDOW } from '@sentry/browser';
2
2
import { browserPerformanceTimeOrigin } from '@sentry/utils' ;
3
3
import { record } from 'rrweb' ;
4
4
5
- import { AllPerformanceEntry } from './types' ;
5
+ import { AllPerformanceEntry , PerformancePaintTiming } from './types' ;
6
6
import { isIngestHost } from './util/isIngestHost' ;
7
7
8
8
export interface ReplayPerformanceEntry {
Original file line number Diff line number Diff line change @@ -35,14 +35,14 @@ export interface WorkerRequest {
35
35
36
36
declare global {
37
37
const __SENTRY_REPLAY_VERSION__ : string ;
38
-
39
- // PerformancePaintTiming is only available since TS 4.4, so for now we just define this here
40
- // see: https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts#L10564
41
- type PerformancePaintTiming = PerformanceEntry ;
42
38
// @ts -ignore declare again, this _should_ be there but somehow is not available in worker context
43
39
type PerformanceNavigationTiming = PerformanceEntry ;
44
40
}
45
41
42
+ // PerformancePaintTiming is only available with TS 4.4 and newer
43
+ // Therefore, we're exporting it here to make it available in older versions
44
+ export type PerformancePaintTiming = PerformanceEntry ;
45
+
46
46
/**
47
47
* The response from the worker
48
48
*/
Original file line number Diff line number Diff line change
1
+ import type { PerformancePaintTiming } from '../types' ;
2
+
1
3
const NAVIGATION_ENTRY_KEYS : Array < keyof PerformanceNavigationTiming > = [
2
4
'name' ,
3
5
'type' ,
You can’t perform that action at this time.
0 commit comments