Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions inputfiles/overridingTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -453,33 +453,6 @@
},
"overrideIndexSignatures": []
},
"WebTransport": {
"methods": {
"method": {
"createUnidirectionalStream": {
"signature": {
"0": {
"subtype": {
"type": "WritableStream"
}
}
}
}
}
}
},
"WebTransportBidirectionalStream": {
"properties": {
"property": {
"readable": {
"type": "ReadableStream"
},
"writable": {
"type": "WritableStream"
}
}
}
},
"Document": {
"methods": {
"method": {
Expand Down Expand Up @@ -1695,19 +1668,6 @@
]
}
},
"WebTransportDatagramDuplexStream": {
"properties": {
"property": {
// https://github.com/w3c/webtransport/pull/638 removed this but browsers still has this
"writable": {
"name": "writable",
"type": "WritableStream",
"readonly": true,
"mdnUrl": "https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable"
}
}
}
},
"HTMLTableRowElement": {
"properties": {
"property": {
Expand Down
20 changes: 20 additions & 0 deletions inputfiles/patches/webtransport.kdl
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,23 @@ removals {
member waitUntilAvailable // No implementation as of 2025-12.
}
}

interface WebTransport {
// Only Gecko implements the return type as SendStream as of 2025-12
method createUnidirectionalStream signatureIndex=0 {
type {
type WritableStream
}
}
}

interface WebTransportBidirectionalStream {
// Only Gecko implements readable/writable as Receive/SendStream as of 2025-12
property readable type=ReadableStream
property writable type=WritableStream
}

interface WebTransportDatagramDuplexStream {
// https://github.com/w3c/webtransport/pull/638 removed this but browsers still have this
property writable type=WritableStream readonly=#true mdnUrl="https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable"
}
1 change: 1 addition & 0 deletions src/build/patches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ function handleProperty(child: Node): DeepPartial<Property> {
...handleTyped(typeNodes, child.properties?.type),
...optionalMember("readonly", "boolean", child.properties?.readonly),
...optionalMember("deprecated", "string", child.properties?.deprecated),
...optionalMember("mdnUrl", "string", child.properties?.mdnUrl),
};
}

Expand Down