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 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; });