66/////////////////////////////
77
88interface AddEventListenerOptions extends EventListenerOptions {
9- once ?: boolean ;
10- passive ?: boolean ;
11- signal ?: AbortSignal ;
9+ once ?: boolean | undefined ;
10+ passive ?: boolean | undefined ;
11+ signal ?: AbortSignal | undefined ;
1212}
1313
1414interface CustomEventInit < T = any > extends EventInit {
15- detail ?: T ;
15+ detail ?: T | undefined ;
1616}
1717
1818interface ErrorEventInit extends EventInit {
19- colno ?: number ;
20- error ?: any ;
21- filename ?: string ;
22- lineno ?: number ;
23- message ?: string ;
19+ colno ?: number | undefined ;
20+ error ?: any | undefined ;
21+ filename ?: string | undefined ;
22+ lineno ?: number | undefined ;
23+ message ?: string | undefined ;
2424}
2525
2626interface EventInit {
27- bubbles ?: boolean ;
28- cancelable ?: boolean ;
29- composed ?: boolean ;
27+ bubbles ?: boolean | undefined ;
28+ cancelable ?: boolean | undefined ;
29+ composed ?: boolean | undefined ;
3030}
3131
3232interface EventListenerOptions {
33- capture ?: boolean ;
33+ capture ?: boolean | undefined ;
3434}
3535
3636interface MessageEventInit < T = any > extends EventInit {
37- data ?: T ;
38- lastEventId ?: string ;
39- origin ?: string ;
40- ports ?: MessagePort [ ] ;
41- source ?: MessageEventSource | null ;
37+ data ?: T | undefined ;
38+ lastEventId ?: string | undefined ;
39+ origin ?: string | undefined ;
40+ ports ?: MessagePort [ ] | undefined ;
41+ source ?: MessageEventSource | null | undefined ;
4242}
4343
4444interface PromiseRejectionEventInit extends EventInit {
4545 promise : Promise < any > ;
46- reason ?: any ;
46+ reason ?: any | undefined ;
4747}
4848
4949interface QueuingStrategy < T = any > {
50- highWaterMark ?: number ;
51- size ?: QueuingStrategySize < T > ;
50+ highWaterMark ?: number | undefined ;
51+ size ?: QueuingStrategySize < T > | undefined ;
5252}
5353
5454interface QueuingStrategyInit {
@@ -61,7 +61,7 @@ interface QueuingStrategyInit {
6161}
6262
6363interface ReadableStreamBYOBReaderReadOptions {
64- min ?: number ;
64+ min ?: number | undefined ;
6565}
6666
6767interface ReadableStreamGetReaderOptions {
@@ -70,7 +70,7 @@ interface ReadableStreamGetReaderOptions {
7070 *
7171 * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
7272 */
73- mode ?: ReadableStreamReaderMode ;
73+ mode ?: ReadableStreamReaderMode | undefined ;
7474}
7575
7676interface ReadableStreamIteratorOptions {
@@ -81,7 +81,7 @@ interface ReadableStreamIteratorOptions {
8181 *
8282 * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
8383 */
84- preventCancel ?: boolean ;
84+ preventCancel ?: boolean | undefined ;
8585}
8686
8787interface ReadableStreamReadDoneResult < T > {
@@ -105,8 +105,8 @@ interface ReadableWritablePair<R = any, W = any> {
105105}
106106
107107interface StreamPipeOptions {
108- preventAbort ?: boolean ;
109- preventCancel ?: boolean ;
108+ preventAbort ?: boolean | undefined ;
109+ preventCancel ?: boolean | undefined ;
110110 /**
111111 * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
112112 *
@@ -124,21 +124,21 @@ interface StreamPipeOptions {
124124 *
125125 * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
126126 */
127- preventClose ?: boolean ;
128- signal ?: AbortSignal ;
127+ preventClose ?: boolean | undefined ;
128+ signal ?: AbortSignal | undefined ;
129129}
130130
131131interface StructuredSerializeOptions {
132- transfer ?: Transferable [ ] ;
132+ transfer ?: Transferable [ ] | undefined ;
133133}
134134
135135interface TextDecodeOptions {
136- stream ?: boolean ;
136+ stream ?: boolean | undefined ;
137137}
138138
139139interface TextDecoderOptions {
140- fatal ?: boolean ;
141- ignoreBOM ?: boolean ;
140+ fatal ?: boolean | undefined ;
141+ ignoreBOM ?: boolean | undefined ;
142142}
143143
144144interface TextEncoderEncodeIntoResult {
@@ -147,42 +147,42 @@ interface TextEncoderEncodeIntoResult {
147147}
148148
149149interface Transformer < I = any , O = any > {
150- flush ?: TransformerFlushCallback < O > ;
150+ flush ?: TransformerFlushCallback < O > | undefined ;
151151 readableType ?: undefined ;
152- start ?: TransformerStartCallback < O > ;
153- transform ?: TransformerTransformCallback < I , O > ;
152+ start ?: TransformerStartCallback < O > | undefined ;
153+ transform ?: TransformerTransformCallback < I , O > | undefined ;
154154 writableType ?: undefined ;
155155}
156156
157157interface UnderlyingByteSource {
158- autoAllocateChunkSize ?: number ;
159- cancel ?: UnderlyingSourceCancelCallback ;
160- pull ?: ( controller : ReadableByteStreamController ) => void | PromiseLike < void > ;
161- start ?: ( controller : ReadableByteStreamController ) => any ;
158+ autoAllocateChunkSize ?: number | undefined ;
159+ cancel ?: UnderlyingSourceCancelCallback | undefined ;
160+ pull ?: ( controller : ReadableByteStreamController ) => void | PromiseLike < void > | undefined ;
161+ start ?: ( controller : ReadableByteStreamController ) => any | undefined ;
162162 type : "bytes" ;
163163}
164164
165165interface UnderlyingDefaultSource < R = any > {
166- cancel ?: UnderlyingSourceCancelCallback ;
167- pull ?: ( controller : ReadableStreamDefaultController < R > ) => void | PromiseLike < void > ;
168- start ?: ( controller : ReadableStreamDefaultController < R > ) => any ;
166+ cancel ?: UnderlyingSourceCancelCallback | undefined ;
167+ pull ?: ( controller : ReadableStreamDefaultController < R > ) => void | PromiseLike < void > | undefined ;
168+ start ?: ( controller : ReadableStreamDefaultController < R > ) => any | undefined ;
169169 type ?: undefined ;
170170}
171171
172172interface UnderlyingSink < W = any > {
173- abort ?: UnderlyingSinkAbortCallback ;
174- close ?: UnderlyingSinkCloseCallback ;
175- start ?: UnderlyingSinkStartCallback ;
173+ abort ?: UnderlyingSinkAbortCallback | undefined ;
174+ close ?: UnderlyingSinkCloseCallback | undefined ;
175+ start ?: UnderlyingSinkStartCallback | undefined ;
176176 type ?: undefined ;
177- write ?: UnderlyingSinkWriteCallback < W > ;
177+ write ?: UnderlyingSinkWriteCallback < W > | undefined ;
178178}
179179
180180interface UnderlyingSource < R = any > {
181- autoAllocateChunkSize ?: number ;
182- cancel ?: UnderlyingSourceCancelCallback ;
183- pull ?: UnderlyingSourcePullCallback < R > ;
184- start ?: UnderlyingSourceStartCallback < R > ;
185- type ?: ReadableStreamType ;
181+ autoAllocateChunkSize ?: number | undefined ;
182+ cancel ?: UnderlyingSourceCancelCallback | undefined ;
183+ pull ?: UnderlyingSourcePullCallback < R > | undefined ;
184+ start ?: UnderlyingSourceStartCallback < R > | undefined ;
185+ type ?: ReadableStreamType | undefined ;
186186}
187187
188188/**
@@ -1748,19 +1748,19 @@ declare namespace WebAssembly {
17481748 } ;
17491749
17501750 interface ExceptionOptions {
1751- traceStack ?: boolean ;
1751+ traceStack ?: boolean | undefined ;
17521752 }
17531753
17541754 interface GlobalDescriptor < T extends ValueType = ValueType > {
1755- mutable ?: boolean ;
1755+ mutable ?: boolean | undefined ;
17561756 value : T ;
17571757 }
17581758
17591759 interface MemoryDescriptor {
1760- address ?: AddressType ;
1760+ address ?: AddressType | undefined ;
17611761 initial : AddressValue ;
1762- maximum ?: AddressValue ;
1763- shared ?: boolean ;
1762+ maximum ?: AddressValue | undefined ;
1763+ shared ?: boolean | undefined ;
17641764 }
17651765
17661766 interface ModuleExportDescriptor {
@@ -1775,10 +1775,10 @@ declare namespace WebAssembly {
17751775 }
17761776
17771777 interface TableDescriptor {
1778- address ?: AddressType ;
1778+ address ?: AddressType | undefined ;
17791779 element : TableKind ;
17801780 initial : AddressValue ;
1781- maximum ?: AddressValue ;
1781+ maximum ?: AddressValue | undefined ;
17821782 }
17831783
17841784 interface TagType {
@@ -1796,8 +1796,8 @@ declare namespace WebAssembly {
17961796 }
17971797
17981798 interface WebAssemblyCompileOptions {
1799- builtins ?: string [ ] ;
1800- importedStringConstants ?: string | null ;
1799+ builtins ?: string [ ] | undefined ;
1800+ importedStringConstants ?: string | null | undefined ;
18011801 }
18021802
18031803 interface WebAssemblyInstantiatedSource {
0 commit comments