Skip to content

Commit

Permalink
Update typings
Browse files Browse the repository at this point in the history
  • Loading branch information
tvanlaerhoven committed Oct 14, 2024
1 parent e874436 commit 69055eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conviva/src/utils/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export function calculateBufferLength(player: ChromelessPlayer): number {
}

export function flattenErrorObject(error?: THEOplayerError): { [key: string]: string } {
const errorDetails: Record<string, any> = {
const errorDetails: { [key: string]: string | undefined } = {
code: ErrorCode[error?.code ?? -1],
category: ErrorCategory[error?.category ?? -1],
name: error?.cause?.name,
Expand All @@ -237,5 +237,5 @@ export function flattenErrorObject(error?: THEOplayerError): { [key: string]: st
delete errorDetails[key];
}
}
return errorDetails;
return errorDetails as { [key: string]: string };
}

0 comments on commit 69055eb

Please sign in to comment.