1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-26 17:43:22 +00:00

Fix types and tests

This commit is contained in:
Bernd Schoolmann
2025-11-17 15:51:30 +01:00
parent 6a4f477512
commit 1443ec75e8
3 changed files with 8 additions and 10 deletions

View File

@@ -23,7 +23,7 @@ export class DefaultNavigatorCredentialsService implements NavigatorCredentialsS
const response: AuthenticatorAssertionResponse =
result.response as AuthenticatorAssertionResponse;
return {
authenticatorAttachment: result!.authenticatorAttachment,
authenticatorAttachment: result!.authenticatorAttachment!,
id: result.id,
rawId: new Uint8Array(result.rawId),
response: {
@@ -42,9 +42,9 @@ export class DefaultNavigatorCredentialsService implements NavigatorCredentialsS
}
}
function bufferSourceToUint8Array(source: BufferSource | null): Uint8Array | null {
if (source === null) {
return null;
function bufferSourceToUint8Array(source: BufferSource | undefined): Uint8Array | undefined {
if (source === undefined) {
return undefined;
}
if (source instanceof ArrayBuffer) {