From be0d3f97cb6760e29c13fc0910bc1f3b6758e52c Mon Sep 17 00:00:00 2001 From: Iain McGinniss Date: Mon, 1 May 2017 13:49:02 -0700 Subject: [PATCH] Typescript 2.3 fixes for credential management API (#16241) Removes the copied (now out of date) definition of RequestInit. Once 2.3 is "stable" for DefinitelyTyped (early June), CMRequestInit will be updated to match the latest lib.dom.d.ts definition. --- .../index.d.ts | 26 +++---------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/types/webappsec-credential-management/index.d.ts b/types/webappsec-credential-management/index.d.ts index 36e6bf5c6a..d316572aab 100644 --- a/types/webappsec-credential-management/index.d.ts +++ b/types/webappsec-credential-management/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for W3C (WebAppSec) Credential Management API Level 1, 0.1 +// Type definitions for W3C (WebAppSec) Credential Management API Level 1, 0.2 // Project: https://github.com/w3c/webappsec-credential-management // Definitions by: Iain McGinniss // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -27,27 +27,9 @@ interface GlobalFetch { } /** - * Original definition from TS 2.2 dom. - */ -interface RequestInit { - method?: string; - headers?: any; - body?: any; - referrer?: string; - referrerPolicy?: string; - mode?: string; - credentials?: string; - cache?: string; - redirect?: string; - integrity?: string; - keepalive?: boolean; - window?: any; -} - -/** - * Variant of {@link RequestInit} that permits a {@link PasswordCredential} to - * be used in the {@code credentials} property. All other properties are - * identical to {@link RequestInit}. + * Variant of TS 2.2 {@link RequestInit} that permits a + * {@link PasswordCredential} to be used in the {@code credentials} property. + * All other properties are identical to {@link RequestInit}. */ interface CMRequestInit { method?: string;