From 4f07a175db1900a88aab42ad0f590a0e794a277f Mon Sep 17 00:00:00 2001 From: Bashamega Date: Wed, 17 Dec 2025 07:02:04 +0200 Subject: [PATCH] Decrease PR size --- inputfiles/addedTypes.jsonc | 4 --- inputfiles/overridingTypes.jsonc | 60 -------------------------------- inputfiles/patches/indexeddb.kdl | 27 ++++++++++++++ 3 files changed, 27 insertions(+), 64 deletions(-) diff --git a/inputfiles/addedTypes.jsonc b/inputfiles/addedTypes.jsonc index 8fca92f23..4cd14679e 100644 --- a/inputfiles/addedTypes.jsonc +++ b/inputfiles/addedTypes.jsonc @@ -408,10 +408,6 @@ } } }, - "IDBOpenDBRequest": { - "name": "IDBOpenDBRequest", - "extends": "IDBRequest" - }, "HTMLBodyElement": { "properties": { "property": { diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index 27ae7ec0d..5ff9bf890 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -1250,66 +1250,6 @@ } } }, - "IDBCursor": { - "properties": { - "property": { - "key": { - "name": "key", - "type": "IDBValidKey" - }, - "primaryKey": { - "name": "primaryKey", - "type": "IDBValidKey" - } - } - }, - "methods": { - "method": { - "continue": { - "signature": { - "0": { - "param": [ - { - "name": "key", - "overrideType": "IDBValidKey" - } - ] - } - } - }, - "continuePrimaryKey": { - "signature": { - "0": { - "param": [ - { - "name": "key", - "overrideType": "IDBValidKey" - }, - { - "name": "primaryKey", - "overrideType": "IDBValidKey" - } - ] - } - } - }, - "delete": { - "signature": { - "0": { - "overrideType": "IDBRequest" - } - } - }, - "update": { - "signature": { - "0": { - "overrideType": "IDBRequest" - } - } - } - } - } - }, "ImageBitmapRenderingContext": { "properties": { "property": { diff --git a/inputfiles/patches/indexeddb.kdl b/inputfiles/patches/indexeddb.kdl index b11fc6ab4..311329716 100644 --- a/inputfiles/patches/indexeddb.kdl +++ b/inputfiles/patches/indexeddb.kdl @@ -5,3 +5,30 @@ interface IDBRequest { } property result overrideType=T } + +interface IDBOpenDBRequest extends=IDBRequest + +interface IDBCursor { + property key type=IDBValidKey + property primaryKey type=IDBValidKey + method continue signatureIndex=0 { + param key type=IDBValidKey + } + method continuePrimaryKey signatureIndex=0 { + param key type=IDBValidKey + param primaryKey type=IDBValidKey + } + + method update signatureIndex=0 { + type { + type IDBValidKey + } + } + + method delete signatureIndex=0 { + type { + type undefined + } + } +} +