From 9e56d794f7e10232860eeb566a2b0c4d9b72c641 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 17 Sep 2020 08:51:58 -0700 Subject: [PATCH] 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 --- types/webappsec-credential-management/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/webappsec-credential-management/index.d.ts b/types/webappsec-credential-management/index.d.ts index 13e33c59c2..4c7b324a96 100644 --- a/types/webappsec-credential-management/index.d.ts +++ b/types/webappsec-credential-management/index.d.ts @@ -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 // Joao Peixoto // Michael J. Currie // 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; }