@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,11 +2,9 @@
2
2
  // Namespace: System.Net.Sockets
3
3
  // Assembly: System.Net.Primitives, System.Net.Sockets
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 Microsoft_Win32_SafeHandles_Internal from "../../Microsoft.Win32.SafeHandles/internal/index.js";
@@ -366,7 +364,7 @@ export interface IPPacketInformation$instance {
366
364
 
367
365
  readonly Address: IPAddress;
368
366
  readonly Interface: int;
369
- Equals(comparand: unknown): boolean;
367
+ Equals(comparand: JsValue | null): boolean;
370
368
  Equals(other: IPPacketInformation): boolean;
371
369
  GetHashCode(): int;
372
370
  }
@@ -441,7 +439,7 @@ export interface UdpReceiveResult$instance {
441
439
 
442
440
  readonly Buffer: byte[];
443
441
  readonly RemoteEndPoint: IPEndPoint;
444
- Equals(obj: unknown): boolean;
442
+ Equals(obj: JsValue | null): boolean;
445
443
  Equals(other: UdpReceiveResult): boolean;
446
444
  GetHashCode(): int;
447
445
  }
@@ -483,7 +481,7 @@ export interface LingerOption$instance {
483
481
 
484
482
  Enabled: boolean;
485
483
  LingerTime: int;
486
- Equals(comparand: unknown): boolean;
484
+ Equals(comparand: JsValue | null): boolean;
487
485
  GetHashCode(): int;
488
486
  }
489
487
 
@@ -500,8 +498,8 @@ export interface MulticastOption$instance {
500
498
 
501
499
  Group: IPAddress;
502
500
  InterfaceIndex: int;
503
- get LocalAddress(): IPAddress | undefined;
504
- set LocalAddress(value: IPAddress | undefined);
501
+ get LocalAddress(): IPAddress | null;
502
+ set LocalAddress(value: IPAddress | null);
505
503
  }
506
504
 
507
505
 
@@ -530,8 +528,8 @@ export interface NetworkStream$instance extends Stream, System_Internal.IAsyncDi
530
528
  ReadTimeout: int;
531
529
  readonly Socket: Socket;
532
530
  WriteTimeout: int;
533
- BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
534
- BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
531
+ BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
532
+ BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
535
533
  Close(timeout: int): void;
536
534
  Close(timeout: TimeSpan): void;
537
535
  Close(): void;
@@ -602,14 +600,14 @@ export type SafeSocketHandle = SafeSocketHandle$instance & __SafeSocketHandle$vi
602
600
  export interface SendPacketsElement$instance {
603
601
  readonly __tsonic_type_System_Net_Sockets_SendPacketsElement: never;
604
602
 
605
- get Buffer(): byte[] | undefined;
606
- set Buffer(value: byte[] | undefined);
603
+ get Buffer(): byte[] | null;
604
+ set Buffer(value: byte[] | null);
607
605
  Count: int;
608
606
  EndOfPacket: boolean;
609
- get FilePath(): string | undefined;
610
- set FilePath(value: string | undefined);
611
- get FileStream(): FileStream | undefined;
612
- set FileStream(value: FileStream | undefined);
607
+ get FilePath(): string | null;
608
+ set FilePath(value: string | null);
609
+ get FileStream(): FileStream | null;
610
+ set FileStream(value: FileStream | null);
613
611
  get MemoryBuffer(): Nullable_1<ReadOnlyMemory_1<System_Internal.Byte>>;
614
612
  set MemoryBuffer(value: Nullable_1<ReadOnlyMemory_1<System_Internal.Byte>> | ReadOnlyMemory_1<System_Internal.Byte>);
615
613
  readonly Offset: int;
@@ -651,15 +649,15 @@ export interface Socket$instance {
651
649
  ExclusiveAddressUse: boolean;
652
650
  readonly Handle: nint;
653
651
  readonly IsBound: boolean;
654
- get LingerState(): LingerOption | undefined;
655
- set LingerState(value: LingerOption | undefined);
656
- readonly LocalEndPoint: EndPoint | undefined;
652
+ get LingerState(): LingerOption | null;
653
+ set LingerState(value: LingerOption | null);
654
+ readonly LocalEndPoint: EndPoint | null;
657
655
  MulticastLoopback: boolean;
658
656
  NoDelay: boolean;
659
657
  readonly ProtocolType: ProtocolType;
660
658
  ReceiveBufferSize: int;
661
659
  ReceiveTimeout: int;
662
- readonly RemoteEndPoint: EndPoint | undefined;
660
+ readonly RemoteEndPoint: EndPoint | null;
663
661
  readonly SafeHandle: SafeSocketHandle;
664
662
  SendBufferSize: int;
665
663
  SendTimeout: int;
@@ -670,29 +668,29 @@ export interface Socket$instance {
670
668
  AcceptAsync(e: SocketAsyncEventArgs): boolean;
671
669
  AcceptAsync(): Task_1<Socket>;
672
670
  AcceptAsync(cancellationToken: CancellationToken): ValueTask_1<Socket>;
673
- AcceptAsync(acceptSocket: Socket): Task_1<Socket>;
674
- AcceptAsync(acceptSocket: Socket, cancellationToken: CancellationToken): ValueTask_1<Socket>;
675
- BeginAccept(callback: AsyncCallback, state: unknown): IAsyncResult;
676
- BeginAccept(receiveSize: int, callback: AsyncCallback, state: unknown): IAsyncResult;
677
- BeginAccept(acceptSocket: Socket, receiveSize: int, callback: AsyncCallback, state: unknown): IAsyncResult;
678
- BeginConnect(remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
679
- BeginConnect(host: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
680
- BeginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
681
- BeginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
682
- BeginDisconnect(reuseSocket: boolean, callback: AsyncCallback, state: unknown): IAsyncResult;
683
- BeginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
684
- BeginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult | undefined;
685
- BeginReceive(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
686
- BeginReceive(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult | undefined;
687
- BeginReceiveFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
688
- BeginReceiveMessageFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
689
- BeginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
690
- BeginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult | undefined;
691
- BeginSend(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, callback: AsyncCallback, state: unknown): IAsyncResult;
692
- BeginSend(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback, state: unknown): IAsyncResult | undefined;
693
- BeginSendFile(fileName: string, callback: AsyncCallback, state: unknown): IAsyncResult;
694
- BeginSendFile(fileName: string, preBuffer: byte[], postBuffer: byte[], flags: TransmitFileOptions, callback: AsyncCallback, state: unknown): IAsyncResult;
695
- BeginSendTo(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback, state: unknown): IAsyncResult;
671
+ AcceptAsync(acceptSocket: Socket | null): Task_1<Socket>;
672
+ AcceptAsync(acceptSocket: Socket | null, cancellationToken: CancellationToken): ValueTask_1<Socket>;
673
+ BeginAccept(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
674
+ BeginAccept(receiveSize: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
675
+ BeginAccept(acceptSocket: Socket | null, receiveSize: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
676
+ BeginConnect(remoteEP: EndPoint, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
677
+ BeginConnect(host: string, port: int, requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
678
+ BeginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
679
+ BeginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
680
+ BeginDisconnect(reuseSocket: boolean, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
681
+ BeginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
682
+ BeginReceive(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult | null;
683
+ BeginReceive(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
684
+ BeginReceive(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult | null;
685
+ BeginReceiveFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
686
+ BeginReceiveMessageFrom(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
687
+ BeginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
688
+ BeginSend(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult | null;
689
+ BeginSend(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
690
+ BeginSend(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags, errorCode: SocketError, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult | null;
691
+ BeginSendFile(fileName: string | null, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
692
+ BeginSendFile(fileName: string | null, preBuffer: byte[] | null, postBuffer: byte[] | null, flags: TransmitFileOptions, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
693
+ BeginSendTo(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
696
694
  Bind(localEP: EndPoint): void;
697
695
  Close(): void;
698
696
  Close(timeout: int): void;
@@ -730,11 +728,11 @@ export interface Socket$instance {
730
728
  EndSendTo(asyncResult: IAsyncResult): int;
731
729
  Finalize(): void;
732
730
  GetRawSocketOption(optionLevel: int, optionName: int, optionValue: Span_1<System_Internal.Byte>): int;
733
- GetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName): unknown | undefined;
731
+ GetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName): JsValue | null;
734
732
  GetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionValue: byte[]): void;
735
733
  GetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionLength: int): byte[];
736
- IOControl(ioControlCode: int, optionInValue: byte[], optionOutValue: byte[]): int;
737
- IOControl(ioControlCode: IOControlCode, optionInValue: byte[], optionOutValue: byte[]): int;
734
+ IOControl(ioControlCode: int, optionInValue: byte[] | null, optionOutValue: byte[] | null): int;
735
+ IOControl(ioControlCode: IOControlCode, optionInValue: byte[] | null, optionOutValue: byte[] | null): int;
738
736
  Listen(): void;
739
737
  Listen(backlog: int): void;
740
738
  Poll(microSeconds: int, mode: SelectMode): boolean;
@@ -795,11 +793,11 @@ export interface Socket$instance {
795
793
  SendAsync(buffer: ReadOnlyMemory_1<System_Internal.Byte>, socketFlags: SocketFlags, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
796
794
  SendAsync(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>): Task_1<System_Internal.Int32>;
797
795
  SendAsync(buffers: IList_1<ArraySegment_1<System_Internal.Byte>>, socketFlags: SocketFlags): Task_1<System_Internal.Int32>;
798
- SendFile(fileName: string): void;
799
- SendFile(fileName: string, preBuffer: byte[], postBuffer: byte[], flags: TransmitFileOptions): void;
800
- SendFile(fileName: string, preBuffer: ReadOnlySpan_1<System_Internal.Byte>, postBuffer: ReadOnlySpan_1<System_Internal.Byte>, flags: TransmitFileOptions): void;
801
- SendFileAsync(fileName: string, cancellationToken?: CancellationToken): ValueTask;
802
- SendFileAsync(fileName: string, preBuffer: ReadOnlyMemory_1<System_Internal.Byte>, postBuffer: ReadOnlyMemory_1<System_Internal.Byte>, flags: TransmitFileOptions, cancellationToken?: CancellationToken): ValueTask;
796
+ SendFile(fileName: string | null): void;
797
+ SendFile(fileName: string | null, preBuffer: byte[] | null, postBuffer: byte[] | null, flags: TransmitFileOptions): void;
798
+ SendFile(fileName: string | null, preBuffer: ReadOnlySpan_1<System_Internal.Byte>, postBuffer: ReadOnlySpan_1<System_Internal.Byte>, flags: TransmitFileOptions): void;
799
+ SendFileAsync(fileName: string | null, cancellationToken?: CancellationToken): ValueTask;
800
+ SendFileAsync(fileName: string | null, preBuffer: ReadOnlyMemory_1<System_Internal.Byte>, postBuffer: ReadOnlyMemory_1<System_Internal.Byte>, flags: TransmitFileOptions, cancellationToken?: CancellationToken): ValueTask;
803
801
  SendPacketsAsync(e: SocketAsyncEventArgs): boolean;
804
802
  SendTo(buffer: byte[], offset: int, size: int, socketFlags: SocketFlags, remoteEP: EndPoint): int;
805
803
  SendTo(buffer: byte[], size: int, socketFlags: SocketFlags, remoteEP: EndPoint): int;
@@ -819,7 +817,7 @@ export interface Socket$instance {
819
817
  SetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionValue: int): void;
820
818
  SetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionValue: byte[]): void;
821
819
  SetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionValue: boolean): void;
822
- SetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionValue: unknown): void;
820
+ SetSocketOption(optionLevel: SocketOptionLevel, optionName: SocketOptionName, optionValue: JsValue): void;
823
821
  Shutdown(how: SocketShutdown): void;
824
822
  }
825
823
 
@@ -836,8 +834,8 @@ export const Socket: {
836
834
  readonly OSSupportsUnixDomainSockets: boolean;
837
835
  CancelConnectAsync(e: SocketAsyncEventArgs): void;
838
836
  ConnectAsync(socketType: SocketType, protocolType: ProtocolType, e: SocketAsyncEventArgs): boolean;
839
- Select(checkRead: IList, checkWrite: IList, checkError: IList, microSeconds: int): void;
840
- Select(checkRead: IList, checkWrite: IList, checkError: IList, timeout: TimeSpan): void;
837
+ Select(checkRead: IList | null, checkWrite: IList | null, checkError: IList | null, microSeconds: int): void;
838
+ Select(checkRead: IList | null, checkWrite: IList | null, checkError: IList | null, timeout: TimeSpan): void;
841
839
  };
842
840
 
843
841
 
@@ -853,35 +851,35 @@ export interface SocketAsyncEventArgs$instance extends EventArgs, System_Interna
853
851
 
854
852
  readonly __tsonic_iface_System_IDisposable: never;
855
853
 
856
- get AcceptSocket(): Socket | undefined;
857
- set AcceptSocket(value: Socket | undefined);
858
- readonly Buffer: byte[] | undefined;
859
- get BufferList(): IList_1<ArraySegment_1<System_Internal.Byte>> | undefined;
860
- set BufferList(value: IList_1<ArraySegment_1<System_Internal.Byte>> | undefined);
854
+ get AcceptSocket(): Socket | null;
855
+ set AcceptSocket(value: Socket | null);
856
+ readonly Buffer: byte[] | null;
857
+ get BufferList(): IList_1<ArraySegment_1<System_Internal.Byte>> | null;
858
+ set BufferList(value: IList_1<ArraySegment_1<System_Internal.Byte>> | null);
861
859
  readonly BytesTransferred: int;
862
- readonly ConnectByNameError: Exception | undefined;
863
- readonly ConnectSocket: Socket | undefined;
860
+ readonly ConnectByNameError: Exception | null;
861
+ readonly ConnectSocket: Socket | null;
864
862
  readonly Count: int;
865
863
  DisconnectReuseSocket: boolean;
866
864
  readonly LastOperation: SocketAsyncOperation;
867
865
  readonly MemoryBuffer: Memory_1<System_Internal.Byte>;
868
866
  readonly Offset: int;
869
867
  readonly ReceiveMessageFromPacketInfo: IPPacketInformation;
870
- get RemoteEndPoint(): EndPoint | undefined;
871
- set RemoteEndPoint(value: EndPoint | undefined);
872
- get SendPacketsElements(): SendPacketsElement[] | undefined;
873
- set SendPacketsElements(value: SendPacketsElement[] | undefined);
868
+ get RemoteEndPoint(): EndPoint | null;
869
+ set RemoteEndPoint(value: EndPoint | null);
870
+ get SendPacketsElements(): SendPacketsElement[] | null;
871
+ set SendPacketsElements(value: SendPacketsElement[] | null);
874
872
  SendPacketsFlags: TransmitFileOptions;
875
873
  SendPacketsSendSize: int;
876
874
  SocketError: SocketError;
877
875
  SocketFlags: SocketFlags;
878
- get UserToken(): unknown | undefined;
879
- set UserToken(value: unknown | undefined);
876
+ get UserToken(): JsValue | null;
877
+ set UserToken(value: JsValue | null);
880
878
  Dispose(): void;
881
879
  Finalize(): void;
882
880
  OnCompleted(e: SocketAsyncEventArgs): void;
883
881
  SetBuffer(offset: int, count: int): void;
884
- SetBuffer(buffer: byte[], offset: int, count: int): void;
882
+ SetBuffer(buffer: byte[] | null, offset: int, count: int): void;
885
883
  SetBuffer(buffer: Memory_1<System_Internal.Byte>): void;
886
884
  }
887
885
 
@@ -912,7 +910,7 @@ export interface SocketException$instance extends Win32Exception {
912
910
 
913
911
  export const SocketException: {
914
912
  new(errorCode: int): SocketException;
915
- new(errorCode: int, message: string): SocketException;
913
+ new(errorCode: int, message: string | null): SocketException;
916
914
  new(): SocketException;
917
915
  };
918
916
 
@@ -933,16 +931,16 @@ export interface TcpClient$instance {
933
931
  Client: Socket;
934
932
  readonly Connected: boolean;
935
933
  ExclusiveAddressUse: boolean;
936
- get LingerState(): LingerOption | undefined;
937
- set LingerState(value: LingerOption | undefined);
934
+ get LingerState(): LingerOption | null;
935
+ set LingerState(value: LingerOption | null);
938
936
  NoDelay: boolean;
939
937
  ReceiveBufferSize: int;
940
938
  ReceiveTimeout: int;
941
939
  SendBufferSize: int;
942
940
  SendTimeout: int;
943
- BeginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
944
- BeginConnect(host: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
945
- BeginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
941
+ BeginConnect(address: IPAddress, port: int, requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
942
+ BeginConnect(host: string, port: int, requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
943
+ BeginConnect(addresses: IPAddress[], port: int, requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
946
944
  Close(): void;
947
945
  Connect(hostname: string, port: int): void;
948
946
  Connect(address: IPAddress, port: int): void;
@@ -994,8 +992,8 @@ export interface TcpListener$instance extends System_Internal.IDisposable$instan
994
992
  AcceptTcpClientAsync(): Task_1<TcpClient>;
995
993
  AcceptTcpClientAsync(cancellationToken: CancellationToken): ValueTask_1<TcpClient>;
996
994
  AllowNatTraversal(allowed: boolean): void;
997
- BeginAcceptSocket(callback: AsyncCallback, state: unknown): IAsyncResult;
998
- BeginAcceptTcpClient(callback: AsyncCallback, state: unknown): IAsyncResult;
995
+ BeginAcceptSocket(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
996
+ BeginAcceptTcpClient(callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
999
997
  Dispose(): void;
1000
998
  EndAcceptSocket(asyncResult: IAsyncResult): Socket;
1001
999
  EndAcceptTcpClient(asyncResult: IAsyncResult): TcpClient;
@@ -1034,10 +1032,10 @@ export interface UdpClient$instance {
1034
1032
  MulticastLoopback: boolean;
1035
1033
  Ttl: short;
1036
1034
  AllowNatTraversal(allowed: boolean): void;
1037
- BeginReceive(requestCallback: AsyncCallback, state: unknown): IAsyncResult;
1038
- BeginSend(datagram: byte[], bytes: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
1039
- BeginSend(datagram: byte[], bytes: int, hostname: string, port: int, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
1040
- BeginSend(datagram: byte[], bytes: int, endPoint: IPEndPoint, requestCallback: AsyncCallback, state: unknown): IAsyncResult;
1035
+ BeginReceive(requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
1036
+ BeginSend(datagram: byte[], bytes: int, requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
1037
+ BeginSend(datagram: byte[], bytes: int, hostname: string | null, port: int, requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
1038
+ BeginSend(datagram: byte[], bytes: int, endPoint: IPEndPoint | null, requestCallback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
1041
1039
  Close(): void;
1042
1040
  Connect(hostname: string, port: int): void;
1043
1041
  Connect(addr: IPAddress, port: int): void;
@@ -1046,27 +1044,27 @@ export interface UdpClient$instance {
1046
1044
  Dispose(disposing: boolean): void;
1047
1045
  DropMulticastGroup(multicastAddr: IPAddress): void;
1048
1046
  DropMulticastGroup(multicastAddr: IPAddress, ifindex: int): void;
1049
- EndReceive(asyncResult: IAsyncResult, remoteEP: IPEndPoint): byte[];
1047
+ EndReceive(asyncResult: IAsyncResult, remoteEP: IPEndPoint | null): byte[];
1050
1048
  EndSend(asyncResult: IAsyncResult): int;
1051
1049
  JoinMulticastGroup(multicastAddr: IPAddress): void;
1052
1050
  JoinMulticastGroup(multicastAddr: IPAddress, localAddress: IPAddress): void;
1053
1051
  JoinMulticastGroup(ifindex: int, multicastAddr: IPAddress): void;
1054
1052
  JoinMulticastGroup(multicastAddr: IPAddress, timeToLive: int): void;
1055
- Receive(remoteEP: IPEndPoint): byte[];
1053
+ Receive(remoteEP: IPEndPoint | null): byte[];
1056
1054
  ReceiveAsync(): Task_1<UdpReceiveResult>;
1057
1055
  ReceiveAsync(cancellationToken: CancellationToken): ValueTask_1<UdpReceiveResult>;
1058
- Send(dgram: byte[], bytes: int, endPoint: IPEndPoint): int;
1059
- Send(datagram: ReadOnlySpan_1<System_Internal.Byte>, endPoint: IPEndPoint): int;
1060
- Send(dgram: byte[], bytes: int, hostname: string, port: int): int;
1061
- Send(datagram: ReadOnlySpan_1<System_Internal.Byte>, hostname: string, port: int): int;
1056
+ Send(dgram: byte[], bytes: int, endPoint: IPEndPoint | null): int;
1057
+ Send(datagram: ReadOnlySpan_1<System_Internal.Byte>, endPoint: IPEndPoint | null): int;
1058
+ Send(dgram: byte[], bytes: int, hostname: string | null, port: int): int;
1059
+ Send(datagram: ReadOnlySpan_1<System_Internal.Byte>, hostname: string | null, port: int): int;
1062
1060
  Send(dgram: byte[], bytes: int): int;
1063
1061
  Send(datagram: ReadOnlySpan_1<System_Internal.Byte>): int;
1064
1062
  SendAsync(datagram: byte[], bytes: int): Task_1<System_Internal.Int32>;
1065
1063
  SendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1066
- SendAsync(datagram: byte[], bytes: int, hostname: string, port: int): Task_1<System_Internal.Int32>;
1067
- SendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, hostname: string, port: int, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1068
- SendAsync(datagram: byte[], bytes: int, endPoint: IPEndPoint): Task_1<System_Internal.Int32>;
1069
- SendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, endPoint: IPEndPoint, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1064
+ SendAsync(datagram: byte[], bytes: int, hostname: string | null, port: int): Task_1<System_Internal.Int32>;
1065
+ SendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, hostname: string | null, port: int, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1066
+ SendAsync(datagram: byte[], bytes: int, endPoint: IPEndPoint | null): Task_1<System_Internal.Int32>;
1067
+ SendAsync(datagram: ReadOnlyMemory_1<System_Internal.Byte>, endPoint: IPEndPoint | null, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1070
1068
  }
1071
1069
 
1072
1070
 
@@ -1092,7 +1090,7 @@ export interface UnixDomainSocketEndPoint$instance extends EndPoint {
1092
1090
 
1093
1091
  readonly AddressFamily: AddressFamily;
1094
1092
  Create(socketAddress: SocketAddress): EndPoint;
1095
- Equals(obj: unknown): boolean;
1093
+ Equals(obj: JsValue | null): boolean;
1096
1094
  GetHashCode(): int;
1097
1095
  Serialize(): SocketAddress;
1098
1096
  ToString(): string;
@@ -1107,7 +1105,7 @@ export const UnixDomainSocketEndPoint: {
1107
1105
  export type UnixDomainSocketEndPoint = UnixDomainSocketEndPoint$instance;
1108
1106
 
1109
1107
  export abstract class SocketTaskExtensions$instance {
1110
- static AcceptAsync(socket: Socket, acceptSocket: Socket): Task_1<Socket>;
1108
+ static AcceptAsync(socket: Socket, acceptSocket: Socket | null): Task_1<Socket>;
1111
1109
  static AcceptAsync(socket: Socket): Task_1<Socket>;
1112
1110
  static ConnectAsync(socket: Socket, remoteEP: EndPoint, cancellationToken: CancellationToken): ValueTask;
1113
1111
  static ConnectAsync(socket: Socket, remoteEP: EndPoint): Task;
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.Net.WebSockets
3
3
  // Assembly: System.Net.HttpListener, System.Net.WebSockets, System.Net.WebSockets.Client
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 type { IEnumerable_1, IReadOnlyDictionary_2 } from "../../System.Collections.Generic/internal/index.js";
@@ -101,18 +102,18 @@ export interface ClientWebSocket$instance extends WebSocket$instance {
101
102
  readonly __tsonic_iface_System_IDisposable: never;
102
103
 
103
104
  readonly CloseStatus: Nullable_1<WebSocketCloseStatus>;
104
- readonly CloseStatusDescription: string | undefined;
105
- get HttpResponseHeaders(): IReadOnlyDictionary_2<System_Internal.String, IEnumerable_1<System_Internal.String>> | undefined;
106
- set HttpResponseHeaders(value: IReadOnlyDictionary_2<System_Internal.String, IEnumerable_1<System_Internal.String>> | undefined);
105
+ readonly CloseStatusDescription: string | null;
106
+ get HttpResponseHeaders(): IReadOnlyDictionary_2<System_Internal.String, IEnumerable_1<System_Internal.String>> | null;
107
+ set HttpResponseHeaders(value: IReadOnlyDictionary_2<System_Internal.String, IEnumerable_1<System_Internal.String>> | null);
107
108
  readonly HttpStatusCode: HttpStatusCode;
108
109
  readonly Options: ClientWebSocketOptions;
109
110
  readonly State: WebSocketState;
110
- readonly SubProtocol: string | undefined;
111
+ readonly SubProtocol: string | null;
111
112
  Abort(): void;
112
- CloseAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
113
- CloseOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
113
+ CloseAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | null, cancellationToken: CancellationToken): Task;
114
+ CloseOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | null, cancellationToken: CancellationToken): Task;
114
115
  ConnectAsync(uri: Uri, cancellationToken: CancellationToken): Task;
115
- ConnectAsync(uri: Uri, invoker: HttpMessageInvoker, cancellationToken: CancellationToken): Task;
116
+ ConnectAsync(uri: Uri, invoker: HttpMessageInvoker | null, cancellationToken: CancellationToken): Task;
116
117
  Dispose(): void;
117
118
  ReceiveAsync(buffer: ArraySegment_1<System_Internal.Byte>, cancellationToken: CancellationToken): Task_1<WebSocketReceiveResult>;
118
119
  ReceiveAsync(buffer: Memory_1<System_Internal.Byte>, cancellationToken: CancellationToken): ValueTask_1<ValueWebSocketReceiveResult>;
@@ -140,25 +141,25 @@ export interface ClientWebSocketOptions$instance {
140
141
 
141
142
  ClientCertificates: X509CertificateCollection;
142
143
  CollectHttpResponseDetails: boolean;
143
- get Cookies(): CookieContainer | undefined;
144
- set Cookies(value: CookieContainer | undefined);
145
- get Credentials(): ICredentials | undefined;
146
- set Credentials(value: ICredentials | undefined);
147
- get DangerousDeflateOptions(): WebSocketDeflateOptions | undefined;
148
- set DangerousDeflateOptions(value: WebSocketDeflateOptions | undefined);
144
+ get Cookies(): CookieContainer | null;
145
+ set Cookies(value: CookieContainer | null);
146
+ get Credentials(): ICredentials | null;
147
+ set Credentials(value: ICredentials | null);
148
+ get DangerousDeflateOptions(): WebSocketDeflateOptions | null;
149
+ set DangerousDeflateOptions(value: WebSocketDeflateOptions | null);
149
150
  HttpVersion: Version;
150
151
  HttpVersionPolicy: HttpVersionPolicy;
151
152
  KeepAliveInterval: TimeSpan;
152
153
  KeepAliveTimeout: TimeSpan;
153
- get Proxy(): IWebProxy | undefined;
154
- set Proxy(value: IWebProxy | undefined);
155
- get RemoteCertificateValidationCallback(): RemoteCertificateValidationCallback | undefined;
156
- set RemoteCertificateValidationCallback(value: RemoteCertificateValidationCallback | undefined);
154
+ get Proxy(): IWebProxy | null;
155
+ set Proxy(value: IWebProxy | null);
156
+ get RemoteCertificateValidationCallback(): RemoteCertificateValidationCallback | null;
157
+ set RemoteCertificateValidationCallback(value: RemoteCertificateValidationCallback | null);
157
158
  UseDefaultCredentials: boolean;
158
159
  AddSubProtocol(subProtocol: string): void;
159
160
  SetBuffer(receiveBufferSize: int, sendBufferSize: int): void;
160
161
  SetBuffer(receiveBufferSize: int, sendBufferSize: int, buffer: ArraySegment_1<System_Internal.Byte>): void;
161
- SetRequestHeader(headerName: string, headerValue: string): void;
162
+ SetRequestHeader(headerName: string, headerValue: string | null): void;
162
163
  }
163
164
 
164
165
 
@@ -181,7 +182,7 @@ export interface HttpListenerWebSocketContext$instance extends WebSocketContext
181
182
  readonly SecWebSocketKey: string;
182
183
  readonly SecWebSocketProtocols: IEnumerable_1<System_Internal.String>;
183
184
  readonly SecWebSocketVersion: string;
184
- readonly User: IPrincipal | IPrincipal | undefined;
185
+ readonly User: IPrincipal | IPrincipal | null;
185
186
  readonly WebSocket: WebSocket;
186
187
  }
187
188
 
@@ -198,12 +199,12 @@ export interface WebSocket$instance extends System_Internal.IDisposable$instance
198
199
  readonly __tsonic_iface_System_IDisposable: never;
199
200
 
200
201
  readonly CloseStatus: Nullable_1<WebSocketCloseStatus>;
201
- readonly CloseStatusDescription: string | undefined;
202
+ readonly CloseStatusDescription: string | null;
202
203
  readonly State: WebSocketState;
203
- readonly SubProtocol: string | undefined;
204
+ readonly SubProtocol: string | null;
204
205
  Abort(): void;
205
- CloseAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
206
- CloseOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string, cancellationToken: CancellationToken): Task;
206
+ CloseAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | null, cancellationToken: CancellationToken): Task;
207
+ CloseOutputAsync(closeStatus: WebSocketCloseStatus, statusDescription: string | null, cancellationToken: CancellationToken): Task;
207
208
  Dispose(): void;
208
209
  ReceiveAsync(buffer: ArraySegment_1<System_Internal.Byte>, cancellationToken: CancellationToken): Task_1<WebSocketReceiveResult>;
209
210
  ReceiveAsync(buffer: Memory_1<System_Internal.Byte>, cancellationToken: CancellationToken): ValueTask_1<ValueWebSocketReceiveResult>;
@@ -216,8 +217,8 @@ export interface WebSocket$instance extends System_Internal.IDisposable$instance
216
217
  export const WebSocket: (abstract new() => WebSocket) & {
217
218
  readonly DefaultKeepAliveInterval: TimeSpan;
218
219
  CreateClientBuffer(receiveBufferSize: int, sendBufferSize: int): ArraySegment_1<System_Internal.Byte>;
219
- CreateClientWebSocket(innerStream: Stream, subProtocol: string, receiveBufferSize: int, sendBufferSize: int, keepAliveInterval: TimeSpan, useZeroMaskingKey: boolean, internalBuffer: ArraySegment_1<System_Internal.Byte>): WebSocket;
220
- CreateFromStream(stream: Stream, isServer: boolean, subProtocol: string, keepAliveInterval: TimeSpan): WebSocket;
220
+ CreateClientWebSocket(innerStream: Stream, subProtocol: string | null, receiveBufferSize: int, sendBufferSize: int, keepAliveInterval: TimeSpan, useZeroMaskingKey: boolean, internalBuffer: ArraySegment_1<System_Internal.Byte>): WebSocket;
221
+ CreateFromStream(stream: Stream, isServer: boolean, subProtocol: string | null, keepAliveInterval: TimeSpan): WebSocket;
221
222
  CreateFromStream(stream: Stream, options: WebSocketCreationOptions): WebSocket;
222
223
  CreateServerBuffer(receiveBufferSize: int): ArraySegment_1<System_Internal.Byte>;
223
224
  IsApplicationTargeting45(): boolean;
@@ -247,7 +248,7 @@ export interface WebSocketContext$instance {
247
248
  readonly SecWebSocketKey: string;
248
249
  readonly SecWebSocketProtocols: IEnumerable_1<System_Internal.String>;
249
250
  readonly SecWebSocketVersion: string;
250
- readonly User: IPrincipal | IPrincipal | undefined;
251
+ readonly User: IPrincipal | IPrincipal | null;
251
252
  readonly WebSocket: WebSocket;
252
253
  }
253
254
 
@@ -261,13 +262,13 @@ export type WebSocketContext = WebSocketContext$instance;
261
262
  export interface WebSocketCreationOptions$instance {
262
263
  readonly __tsonic_type_System_Net_WebSockets_WebSocketCreationOptions: never;
263
264
 
264
- get DangerousDeflateOptions(): WebSocketDeflateOptions | undefined;
265
- set DangerousDeflateOptions(value: WebSocketDeflateOptions | undefined);
265
+ get DangerousDeflateOptions(): WebSocketDeflateOptions | null;
266
+ set DangerousDeflateOptions(value: WebSocketDeflateOptions | null);
266
267
  IsServer: boolean;
267
268
  KeepAliveInterval: TimeSpan;
268
269
  KeepAliveTimeout: TimeSpan;
269
- get SubProtocol(): string | undefined;
270
- set SubProtocol(value: string | undefined);
270
+ get SubProtocol(): string | null;
271
+ set SubProtocol(value: string | null);
271
272
  }
272
273
 
273
274
 
@@ -309,18 +310,18 @@ export interface WebSocketException$instance extends Win32Exception {
309
310
  export const WebSocketException: {
310
311
  new(): WebSocketException;
311
312
  new(error: WebSocketError): WebSocketException;
312
- new(error: WebSocketError, message: string): WebSocketException;
313
- new(error: WebSocketError, innerException: Exception): WebSocketException;
314
- new(error: WebSocketError, message: string, innerException: Exception): WebSocketException;
313
+ new(error: WebSocketError, message: string | null): WebSocketException;
314
+ new(error: WebSocketError, innerException: Exception | null): WebSocketException;
315
+ new(error: WebSocketError, message: string | null, innerException: Exception | null): WebSocketException;
315
316
  new(nativeError: int): WebSocketException;
316
- new(nativeError: int, message: string): WebSocketException;
317
- new(nativeError: int, innerException: Exception): WebSocketException;
317
+ new(nativeError: int, message: string | null): WebSocketException;
318
+ new(nativeError: int, innerException: Exception | null): WebSocketException;
318
319
  new(error: WebSocketError, nativeError: int): WebSocketException;
319
- new(error: WebSocketError, nativeError: int, message: string): WebSocketException;
320
- new(error: WebSocketError, nativeError: int, innerException: Exception): WebSocketException;
321
- new(error: WebSocketError, nativeError: int, message: string, innerException: Exception): WebSocketException;
322
- new(message: string): WebSocketException;
323
- new(message: string, innerException: Exception): WebSocketException;
320
+ new(error: WebSocketError, nativeError: int, message: string | null): WebSocketException;
321
+ new(error: WebSocketError, nativeError: int, innerException: Exception | null): WebSocketException;
322
+ new(error: WebSocketError, nativeError: int, message: string | null, innerException: Exception | null): WebSocketException;
323
+ new(message: string | null): WebSocketException;
324
+ new(message: string | null, innerException: Exception | null): WebSocketException;
324
325
  };
325
326
 
326
327
 
@@ -335,7 +336,7 @@ export interface WebSocketReceiveResult$instance {
335
336
  readonly __tsonic_type_System_Net_WebSockets_WebSocketReceiveResult: never;
336
337
 
337
338
  readonly CloseStatus: Nullable_1<WebSocketCloseStatus>;
338
- readonly CloseStatusDescription: string | undefined;
339
+ readonly CloseStatusDescription: string | null;
339
340
  readonly Count: int;
340
341
  readonly EndOfMessage: boolean;
341
342
  readonly MessageType: WebSocketMessageType;
@@ -344,7 +345,7 @@ export interface WebSocketReceiveResult$instance {
344
345
 
345
346
  export const WebSocketReceiveResult: {
346
347
  new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean): WebSocketReceiveResult;
347
- new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean, closeStatus: Nullable_1<WebSocketCloseStatus>, closeStatusDescription: string): WebSocketReceiveResult;
348
+ new(count: int, messageType: WebSocketMessageType, endOfMessage: boolean, closeStatus: Nullable_1<WebSocketCloseStatus>, closeStatusDescription: string | null): WebSocketReceiveResult;
348
349
  };
349
350
 
350
351
 
@@ -362,8 +363,8 @@ export interface WebSocketStream$instance extends Stream, System_Internal.IAsync
362
363
  readonly Length: long;
363
364
  Position: long;
364
365
  readonly WebSocket: WebSocket;
365
- BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
366
- BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
366
+ BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
367
+ BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
367
368
  Dispose(disposing: boolean): void;
368
369
  Dispose(): void;
369
370
  EndRead(asyncResult: IAsyncResult): int;