From 16b9d3339312bcccb0f31122b697feceea7a1a18 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 1 Jun 2020 16:27:36 -0700 Subject: Move some type comments around --- packages/typescript-types/src/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'packages/typescript-types/src') diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index a54a493..886d8f1 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -49,6 +49,10 @@ export interface AttestationCredential extends PublicKeyCredential { response: AuthenticatorAttestationResponse; } +/** + * A slightly-modified AttestationCredential to simplify working with ArrayBuffers that + * are base64-encoded in the browser so that they can be sent as JSON to the server. + */ export interface AttestationCredentialJSON extends Omit { rawId: Base64String; @@ -62,25 +66,21 @@ export interface AssertionCredential extends PublicKeyCredential { response: AuthenticatorAssertionResponse; } +/** + * A slightly-modified AssertionCredential to simplify working with ArrayBuffers that + * are base64-encoded in the browser so that they can be sent as JSON to the server. + */ export interface AssertionCredentialJSON extends Omit { rawId: Base64String; response: AuthenticatorAssertionResponseJSON; } -/** - * A slightly-modified AuthenticatorAttestationResponse to simplify working with ArrayBuffers that - * are base64-encoded in the browser so that they can be sent as JSON to the server. - */ export interface AuthenticatorAttestationResponseJSON extends Omit { clientDataJSON: Base64String; attestationObject: Base64String; } -/** - * A slightly-modified AuthenticatorAttestationResponse to simplify working with ArrayBuffers that - * are base64-encoded in the browser so that they can be sent as JSON to the server. - */ export interface AuthenticatorAssertionResponseJSON extends Omit< AuthenticatorAssertionResponse, -- cgit v1.2.3