From 46f75d5616a4c937ea97e412ec9bef5cb68f619a Mon Sep 17 00:00:00 2001 From: Adam Basha <110662505+Bashamega@users.noreply.github.com> Date: Wed, 12 Mar 2025 10:48:38 +0200 Subject: [PATCH 1/2] fix(IDBObjectStore): Allow keyPath to be null --- inputfiles/overridingTypes.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index 7ba619667..831c1d978 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -1218,7 +1218,7 @@ "property": { "keyPath": { "name": "keyPath", - "overrideType": "string | string[]" + "overrideType": "string | string[] | null" } } } From 5c88caa61b1a3f72589235a8d4c92e7befb74596 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Wed, 12 Mar 2025 11:01:32 +0200 Subject: [PATCH 2/2] chore: create baseline --- baselines/dom.generated.d.ts | 2 +- baselines/serviceworker.generated.d.ts | 2 +- baselines/sharedworker.generated.d.ts | 2 +- baselines/ts5.5/dom.generated.d.ts | 2 +- baselines/ts5.5/serviceworker.generated.d.ts | 2 +- baselines/ts5.5/sharedworker.generated.d.ts | 2 +- baselines/ts5.5/webworker.generated.d.ts | 2 +- baselines/webworker.generated.d.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index d5222aa31..71ce43b68 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -14862,7 +14862,7 @@ interface IDBObjectStore { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) */ - readonly keyPath: string | string[]; + readonly keyPath: string | string[] | null; /** * Returns the name of the store. * diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index 56e756a9e..9c8253d24 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -3333,7 +3333,7 @@ interface IDBObjectStore { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) */ - readonly keyPath: string | string[]; + readonly keyPath: string | string[] | null; /** * Returns the name of the store. * diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index ec4f69853..83a8d396a 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -3152,7 +3152,7 @@ interface IDBObjectStore { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) */ - readonly keyPath: string | string[]; + readonly keyPath: string | string[] | null; /** * Returns the name of the store. * diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 97650349c..17a7271c5 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -14842,7 +14842,7 @@ interface IDBObjectStore { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) */ - readonly keyPath: string | string[]; + readonly keyPath: string | string[] | null; /** * Returns the name of the store. * diff --git a/baselines/ts5.5/serviceworker.generated.d.ts b/baselines/ts5.5/serviceworker.generated.d.ts index 56e756a9e..9c8253d24 100644 --- a/baselines/ts5.5/serviceworker.generated.d.ts +++ b/baselines/ts5.5/serviceworker.generated.d.ts @@ -3333,7 +3333,7 @@ interface IDBObjectStore { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) */ - readonly keyPath: string | string[]; + readonly keyPath: string | string[] | null; /** * Returns the name of the store. * diff --git a/baselines/ts5.5/sharedworker.generated.d.ts b/baselines/ts5.5/sharedworker.generated.d.ts index ec4f69853..83a8d396a 100644 --- a/baselines/ts5.5/sharedworker.generated.d.ts +++ b/baselines/ts5.5/sharedworker.generated.d.ts @@ -3152,7 +3152,7 @@ interface IDBObjectStore { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) */ - readonly keyPath: string | string[]; + readonly keyPath: string | string[] | null; /** * Returns the name of the store. * diff --git a/baselines/ts5.5/webworker.generated.d.ts b/baselines/ts5.5/webworker.generated.d.ts index 113966615..cd34b4090 100644 --- a/baselines/ts5.5/webworker.generated.d.ts +++ b/baselines/ts5.5/webworker.generated.d.ts @@ -3823,7 +3823,7 @@ interface IDBObjectStore { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) */ - readonly keyPath: string | string[]; + readonly keyPath: string | string[] | null; /** * Returns the name of the store. * diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 113966615..cd34b4090 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -3823,7 +3823,7 @@ interface IDBObjectStore { * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath) */ - readonly keyPath: string | string[]; + readonly keyPath: string | string[] | null; /** * Returns the name of the store. *