Update webappsec-credential-managments for TS 4.1 DOM changes (#47680)

* Update webappsec-credential-managments for TS 4.1 DOM changes

TS 4.1 changes some types, so I switched an inlined string literal union
to use AttestationConveyancePreference so that TS 3.6 and above will
get the correct strings for their version.

* bump version to 0.6
This commit is contained in:
Nathan Shively-Sanders 2020-09-17 08:51:58 -07:00 committed by GitHub
parent 01cb50d31b
commit 9e56d794f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,10 @@
// Type definitions for non-npm package W3C (WebAppSec) Credential Management API Level 1, 0.5
// Type definitions for non-npm package W3C (WebAppSec) Credential Management API Level 1, 0.6
// Project: https://github.com/w3c/webappsec-credential-management
// Definitions by: Iain McGinniss <https://github.com/iainmcgin>
// Joao Peixoto <https://github.com/Hartimer>
// Michael J. Currie <https://github.com/Basaingeal>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
// TypeScript Version: 3.6
// Spec: https://www.w3.org/TR/2017/WD-credential-management-1-20170804
@ -463,7 +463,7 @@ interface PublicKeyCredentialCreationOptions {
timeout?: number;
excludeCredentials?: PublicKeyCredentialDescriptor[];
authenticatorSelection?: AuthenticatorSelectionCriteria;
attestation?: "none" | "indirect" | "direct";
attestation?: AttestationConveyancePreference;
extensions?: AuthenticationExtensionsClientInputs;
}