From 9ef8c48f340ac3093a86070a126d77ecbdf8fbab Mon Sep 17 00:00:00 2001 From: Glandos Date: Sat, 10 Jan 2026 12:10:23 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74244=20Lodash?= =?UTF-8?q?=20intersectionWith=20comparator=20has=20a=20second=20argument?= =?UTF-8?q?=20by=20@Glandos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/lodash/common/array.d.ts | 6 +++--- types/lodash/lodash-tests.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/lodash/common/array.d.ts b/types/lodash/common/array.d.ts index 6719936ac82967..54e76333f5178a 100644 --- a/types/lodash/common/array.d.ts +++ b/types/lodash/common/array.d.ts @@ -780,7 +780,7 @@ declare module "../index" { /** * @see _.intersectionWith */ - intersectionWith(array?: List | null, ...values: Array | Comparator2>): T[]; + intersectionWith(array?: List | null, ...values: Array | Comparator>): T[]; } interface Collection { /** @@ -790,7 +790,7 @@ declare module "../index" { /** * @see _.intersectionWith */ - intersectionWith(...values: Array | Comparator2>): Collection; + intersectionWith(...values: Array | Comparator>): Collection; } interface CollectionChain { /** @@ -800,7 +800,7 @@ declare module "../index" { /** * @see _.intersectionWith */ - intersectionWith(...values: Array | Comparator2>): CollectionChain; + intersectionWith(...values: Array | Comparator>): CollectionChain; } interface LoDashStatic { /** diff --git a/types/lodash/lodash-tests.ts b/types/lodash/lodash-tests.ts index 9c9f5ab54d5595..9d02f7e4a6f430 100644 --- a/types/lodash/lodash-tests.ts +++ b/types/lodash/lodash-tests.ts @@ -760,7 +760,7 @@ _.chain([1, 2, 3, 4]).unshift(5, 6); // $ExpectType CollectionChain // $ExpectType AbcObject[] _.intersectionWith(...[list, list], (a, b) => { a; // $ExpectType AbcObject - b; // $ExpectType never || AbcObject + b; // $ExpectType AbcObject return true; }); From 94b552bf2cf43cae739da2217027e3f58d30a327 Mon Sep 17 00:00:00 2001 From: Erwan Jugand <47392755+erwanjugand@users.noreply.github.com> Date: Sat, 10 Jan 2026 13:14:43 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#74270=20[chrom?= =?UTF-8?q?e]=20documentId=20is=20optional=20in=20webRequest=20namespace?= =?UTF-8?q?=20by=20@erwanjugand?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/chrome/index.d.ts | 2 +- types/chrome/test/index.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/types/chrome/index.d.ts b/types/chrome/index.d.ts index b5ce1ff3c59c87..8bc53df1c33e3f 100644 --- a/types/chrome/index.d.ts +++ b/types/chrome/index.d.ts @@ -13162,7 +13162,7 @@ declare namespace chrome { * The UUID of the document making the request. * @since Chrome 106 */ - documentId: string; + documentId?: string; /** * The lifecycle the document is in. * @since Chrome 106 diff --git a/types/chrome/test/index.ts b/types/chrome/test/index.ts index 732896898d2613..9dc29a73a87d76 100644 --- a/types/chrome/test/index.ts +++ b/types/chrome/test/index.ts @@ -6910,7 +6910,7 @@ function testWebRequest() { checkWebRequestEvent(chrome.webRequest.onAuthRequired, (details, asyncCallback) => { details.challenger.host; // $ExpectType string details.challenger.port; // $ExpectType number - details.documentId; // $ExpectType string + details.documentId; // $ExpectType string | undefined details.documentLifecycle; // $ExpectType DocumentLifecycle details.frameId; // $ExpectType number details.frameType; // $ExpectType FrameType @@ -6937,7 +6937,7 @@ function testWebRequest() { }, ["responseHeaders", "blocking", "asyncBlocking", "extraHeaders"]); checkWebRequestEvent(chrome.webRequest.onBeforeRedirect, (details) => { - details.documentId; // $ExpectType string + details.documentId; // $ExpectType string | undefined details.documentLifecycle; // $ExpectType DocumentLifecycle details.frameId; // $ExpectType number details.frameType; // $ExpectType FrameType @@ -6985,7 +6985,7 @@ function testWebRequest() { checkWebRequestEvent( chrome.webRequest.onBeforeSendHeaders, (details) => { - details.documentId; // $ExpectType string + details.documentId; // $ExpectType string | undefined details.documentLifecycle; // $ExpectType DocumentLifecycle details.frameId; // $ExpectType number details.frameType; // $ExpectType FrameType @@ -7008,7 +7008,7 @@ function testWebRequest() { ); checkWebRequestEvent(chrome.webRequest.onCompleted, (details) => { - details.documentId; // $ExpectType string + details.documentId; // $ExpectType string | undefined details.documentLifecycle; // $ExpectType DocumentLifecycle details.frameId; // $ExpectType number details.frameType; // $ExpectType FrameType @@ -7031,7 +7031,7 @@ function testWebRequest() { }, ["responseHeaders", "extraHeaders"]); checkWebRequestEvent(chrome.webRequest.onErrorOccurred, (details) => { - details.documentId; // $ExpectType string + details.documentId; // $ExpectType string | undefined details.documentLifecycle; // $ExpectType DocumentLifecycle details.error; // $ExpectType string details.frameId; // $ExpectType number @@ -7050,7 +7050,7 @@ function testWebRequest() { }, ["extraHeaders"]); checkWebRequestEvent(chrome.webRequest.onHeadersReceived, (details) => { - details.documentId; // $ExpectType string + details.documentId; // $ExpectType string | undefined details.documentLifecycle; // $ExpectType DocumentLifecycle details.frameId; // $ExpectType number details.frameType; // $ExpectType FrameType @@ -7073,7 +7073,7 @@ function testWebRequest() { }, ["blocking", "responseHeaders", "extraHeaders"]); checkWebRequestEvent(chrome.webRequest.onResponseStarted, (details) => { - details.documentId; // $ExpectType string + details.documentId; // $ExpectType string | undefined details.documentLifecycle; // $ExpectType DocumentLifecycle details.frameId; // $ExpectType number details.frameType; // $ExpectType FrameType @@ -7096,7 +7096,7 @@ function testWebRequest() { }, ["responseHeaders", "extraHeaders"]); checkWebRequestEvent(chrome.webRequest.onSendHeaders, (details) => { - details.documentId; // $ExpectType string + details.documentId; // $ExpectType string | undefined details.documentLifecycle; // $ExpectType DocumentLifecycle details.frameId; // $ExpectType number details.frameType; // $ExpectType FrameType