diff options
Diffstat (limited to 'packages/typescript-types/src')
-rw-r--r-- | packages/typescript-types/src/index.ts | 51 |
1 files changed, 35 insertions, 16 deletions
diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index 33193c9..f06b26d 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -4,25 +4,45 @@ */ import type { + AttestationConveyancePreference, + AuthenticationExtensionsClientInputs, + AuthenticationExtensionsClientOutputs, AuthenticatorAssertionResponse, + AuthenticatorAttachment, AuthenticatorAttestationResponse, + AuthenticatorSelectionCriteria, + COSEAlgorithmIdentifier, PublicKeyCredential, + PublicKeyCredentialCreationOptions, PublicKeyCredentialDescriptor, - AuthenticationExtensionsClientInputs, - AuthenticationExtensionsClientOutputs, + PublicKeyCredentialParameters, + PublicKeyCredentialRequestOptions, PublicKeyCredentialRpEntity, PublicKeyCredentialType, - PublicKeyCredentialParameters, - AuthenticatorSelectionCriteria, - AttestationConveyancePreference, UserVerificationRequirement, +} from './dom.ts'; + +export type { + AttestationConveyancePreference, + AuthenticationExtensionsClientInputs, + AuthenticationExtensionsClientOutputs, + AuthenticatorAssertionResponse, AuthenticatorAttachment, + AuthenticatorAttestationResponse, + AuthenticatorSelectionCriteria, + AuthenticatorTransport, + COSEAlgorithmIdentifier, + Crypto, + PublicKeyCredential, PublicKeyCredentialCreationOptions, + PublicKeyCredentialDescriptor, + PublicKeyCredentialParameters, PublicKeyCredentialRequestOptions, - COSEAlgorithmIdentifier, -} from './dom'; - -export * from './dom'; + PublicKeyCredentialRpEntity, + PublicKeyCredentialType, + PublicKeyCredentialUserEntity, + UserVerificationRequirement, +} from './dom.ts'; /** * A variant of PublicKeyCredentialCreationOptions suitable for JSON transmission to the browser to @@ -187,14 +207,13 @@ export interface AuthenticatorAttestationResponseFuture extends AuthenticatorAtt * know about it (sometime after 4.6.3) */ export type AuthenticatorTransportFuture = - 'ble' + | 'ble' | 'cable' | 'hybrid' | 'internal' | 'nfc' | 'smart-card' - | 'usb' - ; + | 'usb'; /** * A super class of TypeScript's `PublicKeyCredentialDescriptor` that knows about the latest @@ -206,10 +225,10 @@ export interface PublicKeyCredentialDescriptorFuture 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 |