import type {RawReplayError as TRawReplayError} from 'sentry/utils/replays/types'; type Overwrite = Pick> & U; export function RawReplayError( error: Overwrite, {timestamp: Date}> ): TRawReplayError { return { 'error.type': error['error.type'] ?? ([] as string[]), id: error.id ?? 'e123', issue: error.issue ?? 'JS-374', 'issue.id': error['issue.id'] ?? 3740335939, 'project.name': error['project.name'] ?? 'javascript', timestamp: error.timestamp.toISOString(), title: error.title ?? 'A Redirect with :orgId param on customer domain', }; }