Merge pull request #27868 from alkaliphile/master

Updated two interfaces in webappsec-credential-management types
This commit is contained in:
Benjamin Lichtman
2018-08-16 15:27:55 -07:00
committed by GitHub
+10 -1
View File
@@ -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;
}
/**