Skip to content

Commit 626244b

Browse files
committed
fix resulting type errors
1 parent a2bcabe commit 626244b

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

packages/replay/src/createPerformanceEntry.ts

+4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ interface MemoryInfo {
3838
}
3939

4040
// Map entryType -> function to normalize data for event
41+
// @ts-ignore TODO: entry type does not fit the create* functions entry type
4142
const ENTRY_TYPES: Record<string, (entry: AllPerformanceEntry) => null | ReplayPerformanceEntry> = {
43+
// @ts-ignore TODO: entry type does not fit the create* functions entry type
4244
resource: createResourceEntry,
4345
paint: createPaintEntry,
46+
// @ts-ignore TODO: entry type does not fit the create* functions entry type
4447
navigation: createNavigationEntry,
48+
// @ts-ignore TODO: entry type does not fit the create* functions entry type
4549
['largest-contentful-paint']: createLargestContentfulPaint,
4650
};
4751

packages/replay/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class Replay implements Integration {
6767
*/
6868
public name: string = Replay.id;
6969

70-
public eventBuffer: IEventBuffer | null;
70+
public eventBuffer: IEventBuffer | null = null;
7171

7272
/**
7373
* List of PerformanceEntry from PerformanceObserver

packages/replay/src/session/types.ts

Whitespace-only changes.

packages/replay/src/util/captureInternalException.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { isInternal } from './isInternal';
55
/**
66
* Captures exceptions to Sentry only when it occurs on sentry.io
77
*/
8-
export function captureInternalException(err: Error): string | undefined {
8+
export function captureInternalException(err: Error): void {
99
if (!isInternal()) {
1010
return;
1111
}

0 commit comments

Comments
 (0)