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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user