mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Merge pull request #27868 from alkaliphile/master
Updated two interfaces in webappsec-credential-management types
This commit is contained in:
+10
-1
@@ -2,7 +2,7 @@
|
||||
// Project: https://github.com/w3c/webappsec-credential-management
|
||||
// Definitions by: Iain McGinniss <https://github.com/iainmcgin>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
// TypeScript Version: 2.7
|
||||
|
||||
// Spec: https://www.w3.org/TR/2017/WD-credential-management-1-20170804
|
||||
|
||||
@@ -317,6 +317,11 @@ interface CredentialRequestOptions {
|
||||
* This property specifies options for requesting a public-key signature.
|
||||
*/
|
||||
publicKey?: PublicKeyCredentialRequestOptions;
|
||||
|
||||
/**
|
||||
* This property lets the developer abort an ongoing get() operation.
|
||||
*/
|
||||
signal?: AbortSignal;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -345,6 +350,10 @@ interface CredentialCreationOptions {
|
||||
* @see {@link https://w3c.github.io/webauthn/#dictionary-makecredentialoptions}
|
||||
*/
|
||||
publicKey?: PublicKeyCredentialCreationOptions;
|
||||
/**
|
||||
* @see {@link https://w3c.github.io/webappsec-credential-management/#dom-credentialrequestoptions-signal}
|
||||
*/
|
||||
signal?: AbortSignal;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user