diff options
author | Matthew Miller <matthew@millerti.me> | 2023-08-22 10:13:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-22 10:13:03 -0700 |
commit | fefc95e4535e6ecf903f647124a492fba3fd11d6 (patch) | |
tree | 4c924d43d32fb12a780533302eaf5dee08875d75 /packages/typescript-types/src | |
parent | 443c341bc2163f07b93a3ef84a43294d10b826f8 (diff) | |
parent | 2935857c76d458c26701842e500f8d97d17499c5 (diff) |
Merge pull request #425 from MasterKale/feat/server-esm-take-2-dnt
feat/server-esm-take-2-dnt
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 |