Skip to content

Commit b9b7daa

Browse files
committed
apply to nullable arguments as well
1 parent c3564eb commit b9b7daa

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Most or all of these should be fixed in the generator over time.
9999
- `Array` changed to `Iterable` for WebIDL `sequence`s in argument positions (but not in return positions).
100100
- `any` changed to `object` for WebIDL `object`.
101101
- `| SharedArrayBuffer` added for `[AllowShared] BufferSource`.
102-
- `| null` changed to `| null | undefined` for WebIDL `?` items in `sequence`s.
102+
- `| null` changed to `| null | undefined` for WebIDL nullable items (`T?`).
103103

104104
The following differences are TODO: should be changed in the final result.
105105

dist/index.d.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,10 @@ interface GPUBindingCommandsMixin {
17301730
*/
17311731
setBindGroup(
17321732
index: GPUIndex32,
1733-
bindGroup: GPUBindGroup | null,
1733+
bindGroup:
1734+
| GPUBindGroup
1735+
| null
1736+
| undefined,
17341737
dynamicOffsets?: Iterable<GPUBufferDynamicOffset>
17351738
): undefined;
17361739
/**
@@ -1746,7 +1749,10 @@ interface GPUBindingCommandsMixin {
17461749
*/
17471750
setBindGroup(
17481751
index: GPUIndex32,
1749-
bindGroup: GPUBindGroup | null,
1752+
bindGroup:
1753+
| GPUBindGroup
1754+
| null
1755+
| undefined,
17501756
dynamicOffsetsData: Uint32Array,
17511757
dynamicOffsetsDataStart: GPUSize64,
17521758
dynamicOffsetsDataLength: GPUSize32
@@ -1824,7 +1830,10 @@ interface GPURenderCommandsMixin {
18241830
*/
18251831
setVertexBuffer(
18261832
slot: GPUIndex32,
1827-
buffer: GPUBuffer | null,
1833+
buffer:
1834+
| GPUBuffer
1835+
| null
1836+
| undefined,
18281837
offset?: GPUSize64,
18291838
size?: GPUSize64
18301839
): undefined;

0 commit comments

Comments
 (0)