diff options
Diffstat (limited to 'packages/typescript-types')
-rw-r--r-- | packages/typescript-types/src/index.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index b4bafc0..b0c8d2c 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -164,6 +164,14 @@ export interface PublicKeyCredentialDescriptorFuture extends Omit<PublicKeyCrede } /** + * A super class of TypeScript's `PublicKeyCredential` that knows about upcoming WebAuthn methods + */ +export interface PublicKeyCredentialFuture extends PublicKeyCredential { + // See https://github.com/w3c/webauthn/issues/1745 + isConditionalMediationAvailable(): Promise<boolean>; +} + +/** * The two types of credentials as defined by bit 3 ("Backup Eligibility") in authenticator data: * - `"singleDevice"` credentials will never be backed up * - `"multiDevice"` credentials can be backed up |