summaryrefslogtreecommitdiffhomepage
path: root/packages/typescript-types/src
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-06-01 16:27:36 -0700
committerMatthew Miller <matthew@millerti.me>2020-06-01 16:27:36 -0700
commit16b9d3339312bcccb0f31122b697feceea7a1a18 (patch)
tree2b7122ba7bf5f1f07b4fb7eec76abadaeee586ac /packages/typescript-types/src
parent16e2e87226a7274dda30a850c72363783036c79e (diff)
Move some type comments around
Diffstat (limited to 'packages/typescript-types/src')
-rw-r--r--packages/typescript-types/src/index.ts16
1 files changed, 8 insertions, 8 deletions
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<AttestationCredential, 'response' | 'rawId'> {
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<AssertionCredential, 'response' | 'rawId'> {
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<AuthenticatorAttestationResponse, 'clientDataJSON' | 'attestationObject'> {
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,