@tsonic/dotnet 10.0.39 → 10.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/Internal/internal/index.d.ts +4 -3
  2. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
  3. package/Microsoft.VisualBasic/internal/index.d.ts +52 -54
  4. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +117 -119
  5. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +3 -2
  6. package/Microsoft.Win32/internal/index.d.ts +19 -18
  7. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
  8. package/README.md +76 -104
  9. package/System/bindings.json +1520 -2039
  10. package/System/internal/index.d.ts +1549 -1602
  11. package/System.Buffers/bindings.json +12 -3
  12. package/System.Buffers/internal/index.d.ts +12 -14
  13. package/System.Buffers.Binary/internal/index.d.ts +2 -4
  14. package/System.Buffers.Text/internal/index.d.ts +2 -4
  15. package/System.CodeDom.Compiler/internal/index.d.ts +32 -31
  16. package/System.Collections/internal/index.d.ts +129 -131
  17. package/System.Collections.Concurrent/bindings.json +218 -218
  18. package/System.Collections.Concurrent/internal/index.d.ts +34 -36
  19. package/System.Collections.Frozen/bindings.json +413 -611
  20. package/System.Collections.Frozen/internal/index.d.ts +81 -97
  21. package/System.Collections.Frozen.d.ts +14 -2
  22. package/System.Collections.Generic/bindings.json +9420 -14155
  23. package/System.Collections.Generic/internal/index.d.ts +547 -758
  24. package/System.Collections.Generic.d.ts +1 -1
  25. package/System.Collections.Immutable/bindings.json +6000 -9080
  26. package/System.Collections.Immutable/internal/index.d.ts +265 -354
  27. package/System.Collections.Immutable.d.ts +49 -12
  28. package/System.Collections.ObjectModel/bindings.json +132 -654
  29. package/System.Collections.ObjectModel/internal/index.d.ts +10 -30
  30. package/System.Collections.Specialized/bindings.json +0 -123
  31. package/System.Collections.Specialized/internal/index.d.ts +88 -101
  32. package/System.ComponentModel/bindings.json +163 -102
  33. package/System.ComponentModel/internal/index.d.ts +618 -608
  34. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +133 -132
  35. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
  36. package/System.ComponentModel.Design/bindings.json +22 -292
  37. package/System.ComponentModel.Design/internal/index.d.ts +101 -109
  38. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +61 -60
  39. package/System.ComponentModel.d.ts +1 -0
  40. package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
  41. package/System.Data/bindings.json +4 -1
  42. package/System.Data/internal/index.d.ts +351 -350
  43. package/System.Data.Common/internal/index.d.ts +151 -152
  44. package/System.Data.SqlTypes/internal/index.d.ts +68 -67
  45. package/System.Diagnostics/bindings.json +7044 -7249
  46. package/System.Diagnostics/internal/index.d.ts +446 -461
  47. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
  48. package/System.Diagnostics.Contracts/internal/index.d.ts +16 -18
  49. package/System.Diagnostics.Metrics/internal/index.d.ts +92 -94
  50. package/System.Diagnostics.Metrics.d.ts +1 -1
  51. package/System.Diagnostics.SymbolStore/internal/index.d.ts +12 -11
  52. package/System.Diagnostics.Tracing/bindings.json +81 -21
  53. package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
  54. package/System.Diagnostics.Tracing.d.ts +2 -1
  55. package/System.Drawing/internal/index.d.ts +76 -75
  56. package/System.Dynamic/internal/index.d.ts +55 -57
  57. package/System.Formats.Asn1/bindings.json +48 -69
  58. package/System.Formats.Asn1/internal/index.d.ts +21 -28
  59. package/System.Formats.Tar/internal/index.d.ts +8 -7
  60. package/System.Globalization/internal/index.d.ts +40 -42
  61. package/System.IO/internal/index.d.ts +187 -189
  62. package/System.IO.Compression/internal/index.d.ts +29 -31
  63. package/System.IO.Enumeration/bindings.json +250 -250
  64. package/System.IO.Enumeration/internal/index.d.ts +15 -17
  65. package/System.IO.IsolatedStorage/internal/index.d.ts +19 -18
  66. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
  67. package/System.IO.Pipelines/internal/index.d.ts +15 -17
  68. package/System.IO.Pipes/internal/index.d.ts +8 -7
  69. package/System.Linq/internal/index.d.ts +223 -225
  70. package/System.Linq.Expressions/internal/index.d.ts +205 -207
  71. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
  72. package/System.Net/bindings.json +104 -104
  73. package/System.Net/internal/index.d.ts +279 -281
  74. package/System.Net.Cache/internal/index.d.ts +3 -2
  75. package/System.Net.Http/internal/index.d.ts +128 -130
  76. package/System.Net.Http.Headers/bindings.json +0 -204
  77. package/System.Net.Http.Headers/internal/index.d.ts +111 -127
  78. package/System.Net.Http.Json/internal/index.d.ts +67 -69
  79. package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
  80. package/System.Net.Mail/internal/index.d.ts +76 -78
  81. package/System.Net.Mime/internal/index.d.ts +11 -10
  82. package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
  83. package/System.Net.Quic/internal/index.d.ts +10 -9
  84. package/System.Net.Security/internal/index.d.ts +87 -89
  85. package/System.Net.ServerSentEvents/internal/index.d.ts +6 -5
  86. package/System.Net.Sockets/internal/index.d.ts +91 -93
  87. package/System.Net.WebSockets/internal/index.d.ts +47 -46
  88. package/System.Numerics/bindings.json +544 -116
  89. package/System.Numerics/internal/index.d.ts +110 -112
  90. package/System.Reflection/internal/index.d.ts +270 -272
  91. package/System.Reflection.Emit/internal/index.d.ts +114 -116
  92. package/System.Reflection.Metadata/bindings.json +166 -3169
  93. package/System.Reflection.Metadata/internal/index.d.ts +154 -361
  94. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +13 -15
  95. package/System.Reflection.PortableExecutable/bindings.json +58 -0
  96. package/System.Reflection.PortableExecutable/internal/index.d.ts +24 -11
  97. package/System.Reflection.PortableExecutable.d.ts +1 -0
  98. package/System.Resources/internal/index.d.ts +33 -35
  99. package/System.Runtime/internal/index.d.ts +12 -11
  100. package/System.Runtime.CompilerServices/bindings.json +519 -717
  101. package/System.Runtime.CompilerServices/internal/index.d.ts +113 -137
  102. package/System.Runtime.CompilerServices.d.ts +14 -4
  103. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
  104. package/System.Runtime.ExceptionServices/internal/index.d.ts +4 -3
  105. package/System.Runtime.InteropServices/bindings.json +101 -101
  106. package/System.Runtime.InteropServices/internal/index.d.ts +234 -236
  107. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +34 -36
  108. package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -6
  109. package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
  110. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +67 -69
  111. package/System.Runtime.InteropServices.JavaScript.d.ts +8 -26
  112. package/System.Runtime.InteropServices.Marshalling/bindings.json +2619 -2619
  113. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +308 -310
  114. package/System.Runtime.InteropServices.ObjectiveC/bindings.json +141 -141
  115. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +17 -19
  116. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -6
  117. package/System.Runtime.InteropServices.Swift.d.ts +1 -1
  118. package/System.Runtime.Intrinsics/bindings.json +64 -16
  119. package/System.Runtime.Intrinsics/internal/index.d.ts +22 -24
  120. package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
  121. package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
  122. package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
  123. package/System.Runtime.Loader/bindings.json +48 -69
  124. package/System.Runtime.Loader/internal/index.d.ts +30 -34
  125. package/System.Runtime.Remoting/internal/index.d.ts +5 -4
  126. package/System.Runtime.Serialization/internal/index.d.ts +175 -177
  127. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +29 -31
  128. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
  129. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +10 -9
  130. package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
  131. package/System.Runtime.Versioning/internal/index.d.ts +20 -19
  132. package/System.Security/internal/index.d.ts +64 -66
  133. package/System.Security.AccessControl/bindings.json +104 -0
  134. package/System.Security.AccessControl/internal/index.d.ts +59 -58
  135. package/System.Security.AccessControl.d.ts +6 -5
  136. package/System.Security.Authentication/internal/index.d.ts +7 -6
  137. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
  138. package/System.Security.Claims/internal/index.d.ts +45 -44
  139. package/System.Security.Cryptography/bindings.json +469 -469
  140. package/System.Security.Cryptography/internal/index.d.ts +269 -271
  141. package/System.Security.Cryptography.X509Certificates/bindings.json +0 -62
  142. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +98 -105
  143. package/System.Security.Permissions/internal/index.d.ts +5 -4
  144. package/System.Security.Policy/internal/index.d.ts +11 -10
  145. package/System.Security.Principal/internal/index.d.ts +28 -27
  146. package/System.Text/bindings.json +1562 -1562
  147. package/System.Text/internal/index.d.ts +119 -121
  148. package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
  149. package/System.Text.Json/bindings.json +0 -290
  150. package/System.Text.Json/internal/index.d.ts +135 -153
  151. package/System.Text.Json.Nodes/internal/index.d.ts +60 -62
  152. package/System.Text.Json.Schema/internal/index.d.ts +9 -8
  153. package/System.Text.Json.Serialization/internal/index.d.ts +32 -34
  154. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +86 -85
  155. package/System.Text.Json.Serialization.d.ts +1 -1
  156. package/System.Text.RegularExpressions/bindings.json +198 -402
  157. package/System.Text.RegularExpressions/internal/index.d.ts +48 -64
  158. package/System.Text.Unicode/bindings.json +508 -508
  159. package/System.Text.Unicode/internal/index.d.ts +29 -31
  160. package/System.Threading/bindings.json +42 -42
  161. package/System.Threading/internal/index.d.ts +157 -159
  162. package/System.Threading.Channels/internal/index.d.ts +10 -12
  163. package/System.Threading.Tasks/bindings.json +4 -1
  164. package/System.Threading.Tasks/internal/index.d.ts +115 -114
  165. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +32 -33
  166. package/System.Threading.Tasks.Sources/internal/index.d.ts +6 -5
  167. package/System.Timers/internal/index.d.ts +8 -7
  168. package/System.Transactions/internal/index.d.ts +31 -30
  169. package/System.Web/internal/index.d.ts +32 -31
  170. package/System.Windows.Input/internal/index.d.ts +5 -4
  171. package/System.Windows.Markup/internal/index.d.ts +3 -2
  172. package/System.Xml/internal/index.d.ts +383 -385
  173. package/System.Xml.Linq/internal/index.d.ts +103 -102
  174. package/System.Xml.Resolvers/internal/index.d.ts +10 -9
  175. package/System.Xml.Schema/bindings.json +76 -76
  176. package/System.Xml.Schema/internal/index.d.ts +233 -232
  177. package/System.Xml.Serialization/bindings.json +193 -0
  178. package/System.Xml.Serialization/internal/index.d.ts +277 -245
  179. package/System.Xml.Serialization.d.ts +2 -0
  180. package/System.Xml.XPath/internal/index.d.ts +46 -45
  181. package/System.Xml.Xsl/internal/index.d.ts +53 -52
  182. package/System.Xml.Xsl.Runtime/bindings.json +4 -1
  183. package/System.Xml.Xsl.Runtime/internal/index.d.ts +35 -37
  184. package/System.d.ts +2 -2
  185. package/__internal/extensions/index.d.ts +517 -515
  186. package/families.json +63 -7
  187. package/package.json +2 -2
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.Net.Cache
3
3
  // Assembly: System.Net.Primitives, System.Net.Requests
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
+
7
8
 
8
9
  // Import types from other namespaces
9
10
  import * as System_Internal from "../../System/internal/index.js";
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.Net.Http
3
3
  // Assembly: System.Net.Http
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
- // Import support types from @tsonic/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import * as System_Collections_Generic_Internal from "../../System.Collections.Generic/internal/index.js";
@@ -72,7 +70,7 @@ export enum HttpVersionPolicy {
72
70
  }
73
71
 
74
72
 
75
- export type HeaderEncodingSelector_1<TContext> = (headerName: string, context: TContext) => Encoding | undefined;
73
+ export type HeaderEncodingSelector_1<TContext> = (headerName: string, context: TContext) => Encoding | null;
76
74
 
77
75
 
78
76
  export interface HttpRequestOptionsKey_1$instance<TValue> {
@@ -97,9 +95,9 @@ export interface ByteArrayContent$instance extends HttpContent$instance {
97
95
  CreateContentReadStream(cancellationToken: CancellationToken): Stream;
98
96
  CreateContentReadStreamAsync(): Task_1<Stream>;
99
97
  CreateContentReadStreamAsync(cancellationToken: CancellationToken): Task_1<Stream>;
100
- SerializeToStream(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): void;
101
- SerializeToStreamAsync(stream: Stream, context: TransportContext): Task;
102
- SerializeToStreamAsync(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): Task;
98
+ SerializeToStream(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): void;
99
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null): Task;
100
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): Task;
103
101
  TryComputeLength(length: long): boolean;
104
102
  }
105
103
 
@@ -122,8 +120,8 @@ export interface DelegatingHandler$instance extends HttpMessageHandler$instance
122
120
 
123
121
  readonly __tsonic_iface_System_IDisposable: never;
124
122
 
125
- get InnerHandler(): HttpMessageHandler | undefined;
126
- set InnerHandler(value: HttpMessageHandler | undefined);
123
+ get InnerHandler(): HttpMessageHandler | null;
124
+ set InnerHandler(value: HttpMessageHandler | null);
127
125
  Dispose(disposing: boolean): void;
128
126
  Dispose(): void;
129
127
  Send(request: HttpRequestMessage, cancellationToken: CancellationToken): HttpResponseMessage;
@@ -147,8 +145,8 @@ export interface FormUrlEncodedContent$instance extends ByteArrayContent$instanc
147
145
 
148
146
  readonly __tsonic_iface_System_IDisposable: never;
149
147
 
150
- SerializeToStreamAsync(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): Task;
151
- SerializeToStreamAsync(stream: Stream, context: TransportContext): Task;
148
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): Task;
149
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null): Task;
152
150
  }
153
151
 
154
152
 
@@ -169,52 +167,52 @@ export interface HttpClient$instance extends HttpMessageInvoker$instance {
169
167
 
170
168
  readonly __tsonic_iface_System_IDisposable: never;
171
169
 
172
- get BaseAddress(): Uri | undefined;
173
- set BaseAddress(value: Uri | undefined);
170
+ get BaseAddress(): Uri | null;
171
+ set BaseAddress(value: Uri | null);
174
172
  readonly DefaultRequestHeaders: HttpRequestHeaders;
175
173
  DefaultRequestVersion: Version;
176
174
  DefaultVersionPolicy: HttpVersionPolicy;
177
175
  MaxResponseContentBufferSize: long;
178
176
  Timeout: TimeSpan;
179
177
  CancelPendingRequests(): void;
180
- DeleteAsync(requestUri: string): Task_1<HttpResponseMessage>;
181
- DeleteAsync(requestUri: Uri): Task_1<HttpResponseMessage>;
182
- DeleteAsync(requestUri: string, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
183
- DeleteAsync(requestUri: Uri, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
178
+ DeleteAsync(requestUri: string | null): Task_1<HttpResponseMessage>;
179
+ DeleteAsync(requestUri: Uri | null): Task_1<HttpResponseMessage>;
180
+ DeleteAsync(requestUri: string | null, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
181
+ DeleteAsync(requestUri: Uri | null, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
184
182
  Dispose(disposing: boolean): void;
185
183
  Dispose(): void;
186
- GetAsync(requestUri: string): Task_1<HttpResponseMessage>;
187
- GetAsync(requestUri: Uri): Task_1<HttpResponseMessage>;
188
- GetAsync(requestUri: string, completionOption: HttpCompletionOption): Task_1<HttpResponseMessage>;
189
- GetAsync(requestUri: Uri, completionOption: HttpCompletionOption): Task_1<HttpResponseMessage>;
190
- GetAsync(requestUri: string, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
191
- GetAsync(requestUri: Uri, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
192
- GetAsync(requestUri: string, completionOption: HttpCompletionOption, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
193
- GetAsync(requestUri: Uri, completionOption: HttpCompletionOption, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
194
- GetByteArrayAsync(requestUri: string): Task_1<byte[]>;
195
- GetByteArrayAsync(requestUri: Uri): Task_1<byte[]>;
196
- GetByteArrayAsync(requestUri: string, cancellationToken: CancellationToken): Task_1<byte[]>;
197
- GetByteArrayAsync(requestUri: Uri, cancellationToken: CancellationToken): Task_1<byte[]>;
198
- GetStreamAsync(requestUri: string): Task_1<Stream>;
199
- GetStreamAsync(requestUri: string, cancellationToken: CancellationToken): Task_1<Stream>;
200
- GetStreamAsync(requestUri: Uri): Task_1<Stream>;
201
- GetStreamAsync(requestUri: Uri, cancellationToken: CancellationToken): Task_1<Stream>;
202
- GetStringAsync(requestUri: string): Task_1<System_Internal.String>;
203
- GetStringAsync(requestUri: Uri): Task_1<System_Internal.String>;
204
- GetStringAsync(requestUri: string, cancellationToken: CancellationToken): Task_1<System_Internal.String>;
205
- GetStringAsync(requestUri: Uri, cancellationToken: CancellationToken): Task_1<System_Internal.String>;
206
- PatchAsync(requestUri: string, content: HttpContent): Task_1<HttpResponseMessage>;
207
- PatchAsync(requestUri: Uri, content: HttpContent): Task_1<HttpResponseMessage>;
208
- PatchAsync(requestUri: string, content: HttpContent, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
209
- PatchAsync(requestUri: Uri, content: HttpContent, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
210
- PostAsync(requestUri: string, content: HttpContent): Task_1<HttpResponseMessage>;
211
- PostAsync(requestUri: Uri, content: HttpContent): Task_1<HttpResponseMessage>;
212
- PostAsync(requestUri: string, content: HttpContent, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
213
- PostAsync(requestUri: Uri, content: HttpContent, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
214
- PutAsync(requestUri: string, content: HttpContent): Task_1<HttpResponseMessage>;
215
- PutAsync(requestUri: Uri, content: HttpContent): Task_1<HttpResponseMessage>;
216
- PutAsync(requestUri: string, content: HttpContent, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
217
- PutAsync(requestUri: Uri, content: HttpContent, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
184
+ GetAsync(requestUri: string | null): Task_1<HttpResponseMessage>;
185
+ GetAsync(requestUri: Uri | null): Task_1<HttpResponseMessage>;
186
+ GetAsync(requestUri: string | null, completionOption: HttpCompletionOption): Task_1<HttpResponseMessage>;
187
+ GetAsync(requestUri: Uri | null, completionOption: HttpCompletionOption): Task_1<HttpResponseMessage>;
188
+ GetAsync(requestUri: string | null, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
189
+ GetAsync(requestUri: Uri | null, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
190
+ GetAsync(requestUri: string | null, completionOption: HttpCompletionOption, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
191
+ GetAsync(requestUri: Uri | null, completionOption: HttpCompletionOption, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
192
+ GetByteArrayAsync(requestUri: string | null): Task_1<byte[]>;
193
+ GetByteArrayAsync(requestUri: Uri | null): Task_1<byte[]>;
194
+ GetByteArrayAsync(requestUri: string | null, cancellationToken: CancellationToken): Task_1<byte[]>;
195
+ GetByteArrayAsync(requestUri: Uri | null, cancellationToken: CancellationToken): Task_1<byte[]>;
196
+ GetStreamAsync(requestUri: string | null): Task_1<Stream>;
197
+ GetStreamAsync(requestUri: string | null, cancellationToken: CancellationToken): Task_1<Stream>;
198
+ GetStreamAsync(requestUri: Uri | null): Task_1<Stream>;
199
+ GetStreamAsync(requestUri: Uri | null, cancellationToken: CancellationToken): Task_1<Stream>;
200
+ GetStringAsync(requestUri: string | null): Task_1<System_Internal.String>;
201
+ GetStringAsync(requestUri: Uri | null): Task_1<System_Internal.String>;
202
+ GetStringAsync(requestUri: string | null, cancellationToken: CancellationToken): Task_1<System_Internal.String>;
203
+ GetStringAsync(requestUri: Uri | null, cancellationToken: CancellationToken): Task_1<System_Internal.String>;
204
+ PatchAsync(requestUri: string | null, content: HttpContent | null): Task_1<HttpResponseMessage>;
205
+ PatchAsync(requestUri: Uri | null, content: HttpContent | null): Task_1<HttpResponseMessage>;
206
+ PatchAsync(requestUri: string | null, content: HttpContent | null, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
207
+ PatchAsync(requestUri: Uri | null, content: HttpContent | null, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
208
+ PostAsync(requestUri: string | null, content: HttpContent | null): Task_1<HttpResponseMessage>;
209
+ PostAsync(requestUri: Uri | null, content: HttpContent | null): Task_1<HttpResponseMessage>;
210
+ PostAsync(requestUri: string | null, content: HttpContent | null, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
211
+ PostAsync(requestUri: Uri | null, content: HttpContent | null, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
212
+ PutAsync(requestUri: string | null, content: HttpContent | null): Task_1<HttpResponseMessage>;
213
+ PutAsync(requestUri: Uri | null, content: HttpContent | null): Task_1<HttpResponseMessage>;
214
+ PutAsync(requestUri: string | null, content: HttpContent | null, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
215
+ PutAsync(requestUri: Uri | null, content: HttpContent | null, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
218
216
  Send(request: HttpRequestMessage): HttpResponseMessage;
219
217
  Send(request: HttpRequestMessage, completionOption: HttpCompletionOption): HttpResponseMessage;
220
218
  Send(request: HttpRequestMessage, cancellationToken: CancellationToken): HttpResponseMessage;
@@ -252,22 +250,22 @@ export interface HttpClientHandler$instance extends HttpMessageHandler$instance
252
250
  ClientCertificateOptions: ClientCertificateOption;
253
251
  readonly ClientCertificates: X509CertificateCollection;
254
252
  CookieContainer: CookieContainer;
255
- get Credentials(): ICredentials | undefined;
256
- set Credentials(value: ICredentials | undefined);
257
- get DefaultProxyCredentials(): ICredentials | undefined;
258
- set DefaultProxyCredentials(value: ICredentials | undefined);
253
+ get Credentials(): ICredentials | null;
254
+ set Credentials(value: ICredentials | null);
255
+ get DefaultProxyCredentials(): ICredentials | null;
256
+ set DefaultProxyCredentials(value: ICredentials | null);
259
257
  MaxAutomaticRedirections: int;
260
258
  MaxConnectionsPerServer: int;
261
259
  MaxRequestContentBufferSize: long;
262
260
  MaxResponseHeadersLength: int;
263
- get MeterFactory(): IMeterFactory | undefined;
264
- set MeterFactory(value: IMeterFactory | undefined);
261
+ get MeterFactory(): IMeterFactory | null;
262
+ set MeterFactory(value: IMeterFactory | null);
265
263
  PreAuthenticate: boolean;
266
- readonly Properties: IDictionary_2<System_Internal.String, unknown | undefined>;
267
- get Proxy(): IWebProxy | undefined;
268
- set Proxy(value: IWebProxy | undefined);
269
- get ServerCertificateCustomValidationCallback(): Func_5<HttpRequestMessage, X509Certificate2 | undefined, X509Chain | undefined, SslPolicyErrors, System_Internal.Boolean> | undefined;
270
- set ServerCertificateCustomValidationCallback(value: Func_5<HttpRequestMessage, X509Certificate2 | undefined, X509Chain | undefined, SslPolicyErrors, System_Internal.Boolean> | undefined);
264
+ readonly Properties: IDictionary_2<System_Internal.String, JsValue | null>;
265
+ get Proxy(): IWebProxy | null;
266
+ set Proxy(value: IWebProxy | null);
267
+ get ServerCertificateCustomValidationCallback(): Func_5<HttpRequestMessage, X509Certificate2 | null, X509Chain | null, SslPolicyErrors, System_Internal.Boolean> | null;
268
+ set ServerCertificateCustomValidationCallback(value: Func_5<HttpRequestMessage, X509Certificate2 | null, X509Chain | null, SslPolicyErrors, System_Internal.Boolean> | null);
271
269
  SslProtocols: SslProtocols;
272
270
  readonly SupportsAutomaticDecompression: boolean;
273
271
  readonly SupportsProxy: boolean;
@@ -284,7 +282,7 @@ export interface HttpClientHandler$instance extends HttpMessageHandler$instance
284
282
 
285
283
  export const HttpClientHandler: {
286
284
  new(): HttpClientHandler;
287
- readonly DangerousAcceptAnyServerCertificateValidator: Func_5<HttpRequestMessage, X509Certificate2 | undefined, X509Chain | undefined, SslPolicyErrors, System_Internal.Boolean>;
285
+ readonly DangerousAcceptAnyServerCertificateValidator: Func_5<HttpRequestMessage, X509Certificate2 | null, X509Chain | null, SslPolicyErrors, System_Internal.Boolean>;
288
286
  };
289
287
 
290
288
 
@@ -301,11 +299,11 @@ export interface HttpContent$instance {
301
299
  readonly __tsonic_iface_System_IDisposable: never;
302
300
 
303
301
  readonly Headers: HttpContentHeaders;
304
- CopyTo(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): void;
302
+ CopyTo(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): void;
305
303
  CopyToAsync(stream: Stream): Task;
306
304
  CopyToAsync(stream: Stream, cancellationToken: CancellationToken): Task;
307
- CopyToAsync(stream: Stream, context: TransportContext): Task;
308
- CopyToAsync(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): Task;
305
+ CopyToAsync(stream: Stream, context: TransportContext | null): Task;
306
+ CopyToAsync(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): Task;
309
307
  CreateContentReadStream(cancellationToken: CancellationToken): Stream;
310
308
  CreateContentReadStreamAsync(): Task_1<Stream>;
311
309
  CreateContentReadStreamAsync(cancellationToken: CancellationToken): Task_1<Stream>;
@@ -323,9 +321,9 @@ export interface HttpContent$instance {
323
321
  ReadAsStreamAsync(cancellationToken: CancellationToken): Task_1<Stream>;
324
322
  ReadAsStringAsync(): Task_1<System_Internal.String>;
325
323
  ReadAsStringAsync(cancellationToken: CancellationToken): Task_1<System_Internal.String>;
326
- SerializeToStream(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): void;
327
- SerializeToStreamAsync(stream: Stream, context: TransportContext): Task;
328
- SerializeToStreamAsync(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): Task;
324
+ SerializeToStream(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): void;
325
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null): Task;
326
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): Task;
329
327
  TryComputeLength(length: long): boolean;
330
328
  }
331
329
 
@@ -352,7 +350,7 @@ export interface HttpIOException$instance extends IOException, System_Runtime_Se
352
350
 
353
351
 
354
352
  export const HttpIOException: {
355
- new(httpRequestError: HttpRequestError, message: string, innerException: Exception): HttpIOException;
353
+ new(httpRequestError: HttpRequestError, message: string | null, innerException: Exception | null): HttpIOException;
356
354
  };
357
355
 
358
356
 
@@ -417,8 +415,8 @@ export interface HttpMethod$instance {
417
415
  readonly __tsonic_iface_System_IEquatable_1: never;
418
416
 
419
417
  readonly Method: string;
420
- Equals(other: HttpMethod): boolean;
421
- Equals(obj: unknown): boolean;
418
+ Equals(other: HttpMethod | null): boolean;
419
+ Equals(obj: JsValue | null): boolean;
422
420
  GetHashCode(): int;
423
421
  ToString(): string;
424
422
  }
@@ -460,7 +458,7 @@ export interface HttpProtocolException$instance extends HttpIOException$instance
460
458
 
461
459
 
462
460
  export const HttpProtocolException: {
463
- new(errorCode: long, message: string, innerException: Exception): HttpProtocolException;
461
+ new(errorCode: long, message: string, innerException: Exception | null): HttpProtocolException;
464
462
  };
465
463
 
466
464
 
@@ -483,10 +481,10 @@ export interface HttpRequestException$instance extends Exception, System_Runtime
483
481
 
484
482
  export const HttpRequestException: {
485
483
  new(): HttpRequestException;
486
- new(message: string): HttpRequestException;
487
- new(message: string, inner: Exception): HttpRequestException;
488
- new(message: string, inner: Exception, statusCode: Nullable_1<HttpStatusCode>): HttpRequestException;
489
- new(httpRequestError: HttpRequestError, message: string, inner: Exception, statusCode: Nullable_1<HttpStatusCode>): HttpRequestException;
484
+ new(message: string | null): HttpRequestException;
485
+ new(message: string | null, inner: Exception | null): HttpRequestException;
486
+ new(message: string | null, inner: Exception | null, statusCode: Nullable_1<HttpStatusCode>): HttpRequestException;
487
+ new(httpRequestError: HttpRequestError, message: string | null, inner: Exception | null, statusCode: Nullable_1<HttpStatusCode>): HttpRequestException;
490
488
  };
491
489
 
492
490
 
@@ -502,14 +500,14 @@ export interface HttpRequestMessage$instance {
502
500
 
503
501
  readonly __tsonic_iface_System_IDisposable: never;
504
502
 
505
- get Content(): HttpContent | undefined;
506
- set Content(value: HttpContent | undefined);
503
+ get Content(): HttpContent | null;
504
+ set Content(value: HttpContent | null);
507
505
  readonly Headers: HttpRequestHeaders;
508
506
  Method: HttpMethod;
509
507
  readonly Options: HttpRequestOptions;
510
- readonly Properties: IDictionary_2<System_Internal.String, unknown | undefined>;
511
- get RequestUri(): Uri | undefined;
512
- set RequestUri(value: Uri | undefined);
508
+ readonly Properties: IDictionary_2<System_Internal.String, JsValue | null>;
509
+ get RequestUri(): Uri | null;
510
+ set RequestUri(value: Uri | null);
513
511
  Version: Version;
514
512
  VersionPolicy: HttpVersionPolicy;
515
513
  Dispose(disposing: boolean): void;
@@ -520,8 +518,8 @@ export interface HttpRequestMessage$instance {
520
518
 
521
519
  export const HttpRequestMessage: {
522
520
  new(): HttpRequestMessage;
523
- new(method: HttpMethod, requestUri: Uri): HttpRequestMessage;
524
- new(method: HttpMethod, requestUri: string): HttpRequestMessage;
521
+ new(method: HttpMethod, requestUri: Uri | null): HttpRequestMessage;
522
+ new(method: HttpMethod, requestUri: string | null): HttpRequestMessage;
525
523
  };
526
524
 
527
525
 
@@ -553,11 +551,11 @@ export const HttpRequestOptions: {
553
551
 
554
552
 
555
553
  export interface __HttpRequestOptions$views {
556
- As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<KeyValuePair_2<System_Internal.String, unknown>>;
557
- As_IDictionary_2(): System_Collections_Generic_Internal.IDictionary_2$instance<System_Internal.String, unknown>;
558
- As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<KeyValuePair_2<System_Internal.String, unknown>>;
559
- As_IReadOnlyCollection_1(): System_Collections_Generic_Internal.IReadOnlyCollection_1$instance<KeyValuePair_2<System_Internal.String, unknown>>;
560
- As_IReadOnlyDictionary_2(): System_Collections_Generic_Internal.IReadOnlyDictionary_2$instance<System_Internal.String, unknown>;
554
+ As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<KeyValuePair_2<System_Internal.String, JsValue>>;
555
+ As_IDictionary_2(): System_Collections_Generic_Internal.IDictionary_2$instance<System_Internal.String, JsValue>;
556
+ As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<KeyValuePair_2<System_Internal.String, JsValue>>;
557
+ As_IReadOnlyCollection_1(): System_Collections_Generic_Internal.IReadOnlyCollection_1$instance<KeyValuePair_2<System_Internal.String, JsValue>>;
558
+ As_IReadOnlyDictionary_2(): System_Collections_Generic_Internal.IReadOnlyDictionary_2$instance<System_Internal.String, JsValue>;
561
559
  As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
562
560
  }
563
561
 
@@ -572,10 +570,10 @@ export interface HttpResponseMessage$instance {
572
570
  Content: HttpContent;
573
571
  readonly Headers: HttpResponseHeaders;
574
572
  readonly IsSuccessStatusCode: boolean;
575
- get ReasonPhrase(): string | undefined;
576
- set ReasonPhrase(value: string | undefined);
577
- get RequestMessage(): HttpRequestMessage | undefined;
578
- set RequestMessage(value: HttpRequestMessage | undefined);
573
+ get ReasonPhrase(): string | null;
574
+ set ReasonPhrase(value: string | null);
575
+ get RequestMessage(): HttpRequestMessage | null;
576
+ set RequestMessage(value: HttpRequestMessage | null);
579
577
  StatusCode: HttpStatusCode;
580
578
  readonly TrailingHeaders: HttpResponseHeaders;
581
579
  Version: Version;
@@ -629,8 +627,8 @@ export interface MultipartContent$instance extends HttpContent$instance {
629
627
  readonly __tsonic_iface_System_Collections_IEnumerable: never;
630
628
  readonly __tsonic_iface_System_IDisposable: never;
631
629
 
632
- get HeaderEncodingSelector(): HeaderEncodingSelector_1<HttpContent> | undefined;
633
- set HeaderEncodingSelector(value: HeaderEncodingSelector_1<HttpContent> | undefined);
630
+ get HeaderEncodingSelector(): HeaderEncodingSelector_1<HttpContent> | null;
631
+ set HeaderEncodingSelector(value: HeaderEncodingSelector_1<HttpContent> | null);
634
632
  Add(content: HttpContent): void;
635
633
  CreateContentReadStream(cancellationToken: CancellationToken): Stream;
636
634
  CreateContentReadStreamAsync(): Task_1<Stream>;
@@ -638,9 +636,9 @@ export interface MultipartContent$instance extends HttpContent$instance {
638
636
  Dispose(disposing: boolean): void;
639
637
  Dispose(): void;
640
638
  GetEnumerator(): IEnumerator_1<HttpContent>;
641
- SerializeToStream(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): void;
642
- SerializeToStreamAsync(stream: Stream, context: TransportContext): Task;
643
- SerializeToStreamAsync(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): Task;
639
+ SerializeToStream(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): void;
640
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null): Task;
641
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): Task;
644
642
  TryComputeLength(length: long): boolean;
645
643
  }
646
644
 
@@ -671,8 +669,8 @@ export interface MultipartFormDataContent$instance extends MultipartContent$inst
671
669
  Add(content: HttpContent): void;
672
670
  Add(content: HttpContent, name: string): void;
673
671
  Add(content: HttpContent, name: string, fileName: string): void;
674
- SerializeToStreamAsync(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): Task;
675
- SerializeToStreamAsync(stream: Stream, context: TransportContext): Task;
672
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): Task;
673
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null): Task;
676
674
  }
677
675
 
678
676
 
@@ -699,9 +697,9 @@ export interface ReadOnlyMemoryContent$instance extends HttpContent$instance {
699
697
  CreateContentReadStream(cancellationToken: CancellationToken): Stream;
700
698
  CreateContentReadStreamAsync(): Task_1<Stream>;
701
699
  CreateContentReadStreamAsync(cancellationToken: CancellationToken): Task_1<Stream>;
702
- SerializeToStream(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): void;
703
- SerializeToStreamAsync(stream: Stream, context: TransportContext): Task;
704
- SerializeToStreamAsync(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): Task;
700
+ SerializeToStream(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): void;
701
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null): Task;
702
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): Task;
705
703
  TryComputeLength(length: long): boolean;
706
704
  }
707
705
 
@@ -737,18 +735,18 @@ export interface SocketsHttpHandler$instance extends HttpMessageHandler$instance
737
735
 
738
736
  readonly __tsonic_iface_System_IDisposable: never;
739
737
 
740
- get ActivityHeadersPropagator(): DistributedContextPropagator | undefined;
741
- set ActivityHeadersPropagator(value: DistributedContextPropagator | undefined);
738
+ get ActivityHeadersPropagator(): DistributedContextPropagator | null;
739
+ set ActivityHeadersPropagator(value: DistributedContextPropagator | null);
742
740
  AllowAutoRedirect: boolean;
743
741
  AutomaticDecompression: DecompressionMethods;
744
- get ConnectCallback(): Func_3<SocketsHttpConnectionContext | undefined, CancellationToken, ValueTask_1<Stream>> | undefined;
745
- set ConnectCallback(value: Func_3<SocketsHttpConnectionContext | undefined, CancellationToken, ValueTask_1<Stream>> | undefined);
742
+ get ConnectCallback(): Func_3<SocketsHttpConnectionContext | null, CancellationToken, ValueTask_1<Stream>> | null;
743
+ set ConnectCallback(value: Func_3<SocketsHttpConnectionContext | null, CancellationToken, ValueTask_1<Stream>> | null);
746
744
  ConnectTimeout: TimeSpan;
747
745
  CookieContainer: CookieContainer;
748
- get Credentials(): ICredentials | undefined;
749
- set Credentials(value: ICredentials | undefined);
750
- get DefaultProxyCredentials(): ICredentials | undefined;
751
- set DefaultProxyCredentials(value: ICredentials | undefined);
746
+ get Credentials(): ICredentials | null;
747
+ set Credentials(value: ICredentials | null);
748
+ get DefaultProxyCredentials(): ICredentials | null;
749
+ set DefaultProxyCredentials(value: ICredentials | null);
752
750
  EnableMultipleHttp2Connections: boolean;
753
751
  EnableMultipleHttp3Connections: boolean;
754
752
  Expect100ContinueTimeout: TimeSpan;
@@ -760,21 +758,21 @@ export interface SocketsHttpHandler$instance extends HttpMessageHandler$instance
760
758
  MaxConnectionsPerServer: int;
761
759
  MaxResponseDrainSize: int;
762
760
  MaxResponseHeadersLength: int;
763
- get MeterFactory(): IMeterFactory | undefined;
764
- set MeterFactory(value: IMeterFactory | undefined);
765
- get PlaintextStreamFilter(): Func_3<SocketsHttpPlaintextStreamFilterContext | undefined, CancellationToken, ValueTask_1<Stream>> | undefined;
766
- set PlaintextStreamFilter(value: Func_3<SocketsHttpPlaintextStreamFilterContext | undefined, CancellationToken, ValueTask_1<Stream>> | undefined);
761
+ get MeterFactory(): IMeterFactory | null;
762
+ set MeterFactory(value: IMeterFactory | null);
763
+ get PlaintextStreamFilter(): Func_3<SocketsHttpPlaintextStreamFilterContext | null, CancellationToken, ValueTask_1<Stream>> | null;
764
+ set PlaintextStreamFilter(value: Func_3<SocketsHttpPlaintextStreamFilterContext | null, CancellationToken, ValueTask_1<Stream>> | null);
767
765
  PooledConnectionIdleTimeout: TimeSpan;
768
766
  PooledConnectionLifetime: TimeSpan;
769
767
  PreAuthenticate: boolean;
770
- readonly Properties: IDictionary_2<System_Internal.String, unknown | undefined>;
771
- get Proxy(): IWebProxy | undefined;
772
- set Proxy(value: IWebProxy | undefined);
773
- get RequestHeaderEncodingSelector(): HeaderEncodingSelector_1<HttpRequestMessage> | undefined;
774
- set RequestHeaderEncodingSelector(value: HeaderEncodingSelector_1<HttpRequestMessage> | undefined);
768
+ readonly Properties: IDictionary_2<System_Internal.String, JsValue | null>;
769
+ get Proxy(): IWebProxy | null;
770
+ set Proxy(value: IWebProxy | null);
771
+ get RequestHeaderEncodingSelector(): HeaderEncodingSelector_1<HttpRequestMessage> | null;
772
+ set RequestHeaderEncodingSelector(value: HeaderEncodingSelector_1<HttpRequestMessage> | null);
775
773
  ResponseDrainTimeout: TimeSpan;
776
- get ResponseHeaderEncodingSelector(): HeaderEncodingSelector_1<HttpRequestMessage> | undefined;
777
- set ResponseHeaderEncodingSelector(value: HeaderEncodingSelector_1<HttpRequestMessage> | undefined);
774
+ get ResponseHeaderEncodingSelector(): HeaderEncodingSelector_1<HttpRequestMessage> | null;
775
+ set ResponseHeaderEncodingSelector(value: HeaderEncodingSelector_1<HttpRequestMessage> | null);
778
776
  SslOptions: SslClientAuthenticationOptions;
779
777
  UseCookies: boolean;
780
778
  UseProxy: boolean;
@@ -823,9 +821,9 @@ export interface StreamContent$instance extends HttpContent$instance {
823
821
  CreateContentReadStreamAsync(cancellationToken: CancellationToken): Task_1<Stream>;
824
822
  Dispose(disposing: boolean): void;
825
823
  Dispose(): void;
826
- SerializeToStream(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): void;
827
- SerializeToStreamAsync(stream: Stream, context: TransportContext): Task;
828
- SerializeToStreamAsync(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): Task;
824
+ SerializeToStream(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): void;
825
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null): Task;
826
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): Task;
829
827
  TryComputeLength(length: long): boolean;
830
828
  }
831
829
 
@@ -848,17 +846,17 @@ export interface StringContent$instance extends ByteArrayContent$instance {
848
846
 
849
847
  readonly __tsonic_iface_System_IDisposable: never;
850
848
 
851
- SerializeToStreamAsync(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): Task;
852
- SerializeToStreamAsync(stream: Stream, context: TransportContext): Task;
849
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): Task;
850
+ SerializeToStreamAsync(stream: Stream, context: TransportContext | null): Task;
853
851
  }
854
852
 
855
853
 
856
854
  export const StringContent: {
857
855
  new(content: string): StringContent;
858
- new(content: string, mediaType: MediaTypeHeaderValue): StringContent;
859
- new(content: string, encoding: Encoding): StringContent;
860
- new(content: string, encoding: Encoding, mediaType: string): StringContent;
861
- new(content: string, encoding: Encoding, mediaType: MediaTypeHeaderValue): StringContent;
856
+ new(content: string, mediaType: MediaTypeHeaderValue | null): StringContent;
857
+ new(content: string, encoding: Encoding | null): StringContent;
858
+ new(content: string, encoding: Encoding | null, mediaType: string | null): StringContent;
859
+ new(content: string, encoding: Encoding | null, mediaType: MediaTypeHeaderValue | null): StringContent;
862
860
  };
863
861
 
864
862