diff options
author | Matthew Miller <matthew@millerti.me> | 2023-08-18 10:48:14 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-08-18 10:48:14 -0700 |
commit | fd1a786756821e42d3a35ae7d09e3b427eab193e (patch) | |
tree | 9c334677c36a3a053e5cab9b19f1bbf2a3fa96da /packages/typescript-types/src | |
parent | d4041f8cc7c25126a1ae2b3f292fc09f038e629f (diff) |
Format typescript-types and add more exports
Diffstat (limited to 'packages/typescript-types/src')
-rw-r--r-- | packages/typescript-types/src/index.ts | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index 2259e39..22b2dc4 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -20,13 +20,14 @@ import type { PublicKeyCredentialRpEntity, PublicKeyCredentialType, UserVerificationRequirement, -} from './dom.ts'; +} from "./dom.ts"; export type { AttestationConveyancePreference, AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, AuthenticatorAssertionResponse, + AuthenticatorAttachment, AuthenticatorAttestationResponse, AuthenticatorSelectionCriteria, AuthenticatorTransport, @@ -37,9 +38,11 @@ export type { PublicKeyCredentialDescriptor, PublicKeyCredentialParameters, PublicKeyCredentialRequestOptions, + PublicKeyCredentialRpEntity, + PublicKeyCredentialType, PublicKeyCredentialUserEntity, UserVerificationRequirement, -} from './dom.ts'; +} from "./dom.ts"; /** * A variant of PublicKeyCredentialCreationOptions suitable for JSON transmission to the browser to @@ -194,7 +197,8 @@ export type Base64URLString = string; * * Properties marked optional are not supported in all browsers. */ -export interface AuthenticatorAttestationResponseFuture extends AuthenticatorAttestationResponse { +export interface AuthenticatorAttestationResponseFuture + extends AuthenticatorAttestationResponse { getTransports(): AuthenticatorTransportFuture[]; } @@ -204,14 +208,13 @@ export interface AuthenticatorAttestationResponseFuture extends AuthenticatorAtt * know about it (sometime after 4.6.3) */ export type AuthenticatorTransportFuture = - 'ble' - | 'cable' - | 'hybrid' - | 'internal' - | 'nfc' - | 'smart-card' - | 'usb' - ; + | "ble" + | "cable" + | "hybrid" + | "internal" + | "nfc" + | "smart-card" + | "usb"; /** * A super class of TypeScript's `PublicKeyCredentialDescriptor` that knows about the latest @@ -219,14 +222,14 @@ export type AuthenticatorTransportFuture = * know about it (sometime after 4.6.3) */ export interface PublicKeyCredentialDescriptorFuture - extends Omit<PublicKeyCredentialDescriptor, 'transports'> { + extends Omit<PublicKeyCredentialDescriptor, "transports"> { transports?: AuthenticatorTransportFuture[]; } -/** - * - */ -export type PublicKeyCredentialJSON = RegistrationResponseJSON | AuthenticationResponseJSON; +/** */ +export type PublicKeyCredentialJSON = + | RegistrationResponseJSON + | AuthenticationResponseJSON; /** * A super class of TypeScript's `PublicKeyCredential` that knows about upcoming WebAuthn features @@ -252,4 +255,4 @@ export interface PublicKeyCredentialFuture extends PublicKeyCredential { * - `"singleDevice"` credentials will never be backed up * - `"multiDevice"` credentials can be backed up */ -export type CredentialDeviceType = 'singleDevice' | 'multiDevice'; +export type CredentialDeviceType = "singleDevice" | "multiDevice"; |