@tsonic/dotnet 10.0.40 → 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.IO
3
3
  // Assembly: System.IO.FileSystem.AccessControl, System.IO.FileSystem.DriveInfo, System.IO.FileSystem.Watcher, System.Private.CoreLib
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 type { SafeFileHandle } from "../../Microsoft.Win32.SafeHandles/internal/index.js";
@@ -166,23 +164,23 @@ export enum WatcherChangeTypes {
166
164
  }
167
165
 
168
166
 
169
- export type ErrorEventHandler = (sender: unknown, e: ErrorEventArgs) => void;
167
+ export type ErrorEventHandler = (sender: JsValue, e: ErrorEventArgs) => void;
170
168
 
171
169
 
172
- export type FileSystemEventHandler = (sender: unknown, e: FileSystemEventArgs) => void;
170
+ export type FileSystemEventHandler = (sender: JsValue, e: FileSystemEventArgs) => void;
173
171
 
174
172
 
175
- export type RenamedEventHandler = (sender: unknown, e: RenamedEventArgs) => void;
173
+ export type RenamedEventHandler = (sender: JsValue, e: RenamedEventArgs) => void;
176
174
 
177
175
 
178
176
  export interface WaitForChangedResult$instance {
179
177
  readonly __tsonic_type_System_IO_WaitForChangedResult: never;
180
178
 
181
179
  ChangeType: WatcherChangeTypes;
182
- get Name(): string | undefined;
183
- set Name(value: string | undefined);
184
- get OldName(): string | undefined;
185
- set OldName(value: string | undefined);
180
+ get Name(): string | null;
181
+ set Name(value: string | null);
182
+ get OldName(): string | null;
183
+ set OldName(value: string | null);
186
184
  TimedOut: boolean;
187
185
  }
188
186
 
@@ -315,8 +313,8 @@ export interface BufferedStream$instance extends Stream$instance {
315
313
  readonly Length: long;
316
314
  Position: long;
317
315
  readonly UnderlyingStream: Stream;
318
- BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
319
- BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
316
+ BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
317
+ BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
320
318
  CopyTo(destination: Stream, bufferSize: int): void;
321
319
  CopyTo(destination: Stream): void;
322
320
  CopyToAsync(destination: Stream, bufferSize: int, cancellationToken: CancellationToken): Task;
@@ -369,7 +367,7 @@ export interface DirectoryInfo$instance extends FileSystemInfo$instance, System_
369
367
 
370
368
  readonly Exists: boolean;
371
369
  readonly Name: string;
372
- readonly Parent: DirectoryInfo | undefined;
370
+ readonly Parent: DirectoryInfo | null;
373
371
  readonly Root: DirectoryInfo;
374
372
  Create(): void;
375
373
  CreateSubdirectory(path: string): DirectoryInfo;
@@ -425,8 +423,8 @@ export interface DirectoryNotFoundException$instance extends IOException$instanc
425
423
 
426
424
  export const DirectoryNotFoundException: {
427
425
  new(): DirectoryNotFoundException;
428
- new(message: string): DirectoryNotFoundException;
429
- new(message: string, innerException: Exception): DirectoryNotFoundException;
426
+ new(message: string | null): DirectoryNotFoundException;
427
+ new(message: string | null, innerException: Exception | null): DirectoryNotFoundException;
430
428
  };
431
429
 
432
430
 
@@ -478,8 +476,8 @@ export interface DriveNotFoundException$instance extends IOException$instance, S
478
476
 
479
477
  export const DriveNotFoundException: {
480
478
  new(): DriveNotFoundException;
481
- new(message: string): DriveNotFoundException;
482
- new(message: string, innerException: Exception): DriveNotFoundException;
479
+ new(message: string | null): DriveNotFoundException;
480
+ new(message: string | null, innerException: Exception | null): DriveNotFoundException;
483
481
  };
484
482
 
485
483
 
@@ -500,8 +498,8 @@ export interface EndOfStreamException$instance extends IOException$instance, Sys
500
498
 
501
499
  export const EndOfStreamException: {
502
500
  new(): EndOfStreamException;
503
- new(message: string): EndOfStreamException;
504
- new(message: string, innerException: Exception): EndOfStreamException;
501
+ new(message: string | null): EndOfStreamException;
502
+ new(message: string | null, innerException: Exception | null): EndOfStreamException;
505
503
  };
506
504
 
507
505
 
@@ -552,8 +550,8 @@ export interface FileInfo$instance extends FileSystemInfo$instance, System_Runti
552
550
 
553
551
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
554
552
 
555
- readonly Directory: DirectoryInfo | undefined;
556
- readonly DirectoryName: string | undefined;
553
+ readonly Directory: DirectoryInfo | null;
554
+ readonly DirectoryName: string | null;
557
555
  readonly Exists: boolean;
558
556
  IsReadOnly: boolean;
559
557
  readonly Length: long;
@@ -575,8 +573,8 @@ export interface FileInfo$instance extends FileSystemInfo$instance, System_Runti
575
573
  OpenRead(): FileStream;
576
574
  OpenText(): StreamReader;
577
575
  OpenWrite(): FileStream;
578
- Replace(destinationFileName: string, destinationBackupFileName: string): FileInfo;
579
- Replace(destinationFileName: string, destinationBackupFileName: string, ignoreMetadataErrors: boolean): FileInfo;
576
+ Replace(destinationFileName: string, destinationBackupFileName: string | null): FileInfo;
577
+ Replace(destinationFileName: string, destinationBackupFileName: string | null, ignoreMetadataErrors: boolean): FileInfo;
580
578
  }
581
579
 
582
580
 
@@ -597,8 +595,8 @@ export interface FileLoadException$instance extends IOException$instance {
597
595
 
598
596
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
599
597
 
600
- readonly FileName: string | undefined;
601
- readonly FusionLog: string | undefined;
598
+ readonly FileName: string | null;
599
+ readonly FusionLog: string | null;
602
600
  readonly Message: string;
603
601
  GetObjectData(info: SerializationInfo, context: StreamingContext): void;
604
602
  ToString(): string;
@@ -607,10 +605,10 @@ export interface FileLoadException$instance extends IOException$instance {
607
605
 
608
606
  export const FileLoadException: {
609
607
  new(): FileLoadException;
610
- new(message: string): FileLoadException;
611
- new(message: string, inner: Exception): FileLoadException;
612
- new(message: string, fileName: string): FileLoadException;
613
- new(message: string, fileName: string, inner: Exception): FileLoadException;
608
+ new(message: string | null): FileLoadException;
609
+ new(message: string | null, inner: Exception | null): FileLoadException;
610
+ new(message: string | null, fileName: string | null): FileLoadException;
611
+ new(message: string | null, fileName: string | null, inner: Exception | null): FileLoadException;
614
612
  };
615
613
 
616
614
 
@@ -626,8 +624,8 @@ export interface FileNotFoundException$instance extends IOException$instance {
626
624
 
627
625
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
628
626
 
629
- readonly FileName: string | undefined;
630
- readonly FusionLog: string | undefined;
627
+ readonly FileName: string | null;
628
+ readonly FusionLog: string | null;
631
629
  readonly Message: string;
632
630
  GetObjectData(info: SerializationInfo, context: StreamingContext): void;
633
631
  ToString(): string;
@@ -636,10 +634,10 @@ export interface FileNotFoundException$instance extends IOException$instance {
636
634
 
637
635
  export const FileNotFoundException: {
638
636
  new(): FileNotFoundException;
639
- new(message: string): FileNotFoundException;
640
- new(message: string, innerException: Exception): FileNotFoundException;
641
- new(message: string, fileName: string): FileNotFoundException;
642
- new(message: string, fileName: string, innerException: Exception): FileNotFoundException;
637
+ new(message: string | null): FileNotFoundException;
638
+ new(message: string | null, innerException: Exception | null): FileNotFoundException;
639
+ new(message: string | null, fileName: string | null): FileNotFoundException;
640
+ new(message: string | null, fileName: string | null, innerException: Exception | null): FileNotFoundException;
643
641
  };
644
642
 
645
643
 
@@ -665,8 +663,8 @@ export interface FileStream$instance extends Stream$instance {
665
663
  readonly Name: string;
666
664
  Position: long;
667
665
  readonly SafeFileHandle: SafeFileHandle;
668
- BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
669
- BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
666
+ BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
667
+ BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
670
668
  CopyTo(destination: Stream, bufferSize: int): void;
671
669
  CopyTo(destination: Stream): void;
672
670
  CopyToAsync(destination: Stream, bufferSize: int, cancellationToken: CancellationToken): Task;
@@ -754,12 +752,12 @@ export interface FileSystemEventArgs$instance extends EventArgs {
754
752
 
755
753
  readonly ChangeType: WatcherChangeTypes;
756
754
  readonly FullPath: string;
757
- readonly Name: string | undefined;
755
+ readonly Name: string | null;
758
756
  }
759
757
 
760
758
 
761
759
  export const FileSystemEventArgs: {
762
- new(changeType: WatcherChangeTypes, directory: string, name: string): FileSystemEventArgs;
760
+ new(changeType: WatcherChangeTypes, directory: string, name: string | null): FileSystemEventArgs;
763
761
  };
764
762
 
765
763
 
@@ -780,14 +778,14 @@ export interface FileSystemInfo$instance extends MarshalByRefObject, System_Runt
780
778
  LastAccessTimeUtc: DateTime;
781
779
  LastWriteTime: DateTime;
782
780
  LastWriteTimeUtc: DateTime;
783
- readonly LinkTarget: string | undefined;
781
+ readonly LinkTarget: string | null;
784
782
  readonly Name: string;
785
783
  UnixFileMode: UnixFileMode;
786
784
  CreateAsSymbolicLink(pathToTarget: string): void;
787
785
  Delete(): void;
788
786
  GetObjectData(info: SerializationInfo, context: StreamingContext): void;
789
787
  Refresh(): void;
790
- ResolveLinkTarget(returnFinalTarget: boolean): FileSystemInfo | undefined;
788
+ ResolveLinkTarget(returnFinalTarget: boolean): FileSystemInfo | null;
791
789
  ToString(): string;
792
790
  }
793
791
 
@@ -817,10 +815,10 @@ export interface FileSystemWatcher$instance extends Component, System_ComponentM
817
815
  InternalBufferSize: int;
818
816
  NotifyFilter: NotifyFilters;
819
817
  Path: string;
820
- get Site(): ISite | undefined;
821
- set Site(value: ISite | undefined);
822
- get SynchronizingObject(): ISynchronizeInvoke | undefined;
823
- set SynchronizingObject(value: ISynchronizeInvoke | undefined);
818
+ get Site(): ISite | null;
819
+ set Site(value: ISite | null);
820
+ get SynchronizingObject(): ISynchronizeInvoke | null;
821
+ set SynchronizingObject(value: ISynchronizeInvoke | null);
824
822
  BeginInit(): void;
825
823
  Dispose(disposing: boolean): void;
826
824
  Dispose(): void;
@@ -857,8 +855,8 @@ export interface InternalBufferOverflowException$instance extends SystemExceptio
857
855
 
858
856
  export const InternalBufferOverflowException: {
859
857
  new(): InternalBufferOverflowException;
860
- new(message: string): InternalBufferOverflowException;
861
- new(message: string, inner: Exception): InternalBufferOverflowException;
858
+ new(message: string | null): InternalBufferOverflowException;
859
+ new(message: string | null, inner: Exception | null): InternalBufferOverflowException;
862
860
  };
863
861
 
864
862
 
@@ -879,8 +877,8 @@ export interface InvalidDataException$instance extends SystemException, System_R
879
877
 
880
878
  export const InvalidDataException: {
881
879
  new(): InvalidDataException;
882
- new(message: string): InvalidDataException;
883
- new(message: string, innerException: Exception): InvalidDataException;
880
+ new(message: string | null): InvalidDataException;
881
+ new(message: string | null, innerException: Exception | null): InvalidDataException;
884
882
  };
885
883
 
886
884
 
@@ -901,9 +899,9 @@ export interface IOException$instance extends SystemException, System_Runtime_Se
901
899
 
902
900
  export const IOException: {
903
901
  new(): IOException;
904
- new(message: string): IOException;
905
- new(message: string, hresult: int): IOException;
906
- new(message: string, innerException: Exception): IOException;
902
+ new(message: string | null): IOException;
903
+ new(message: string | null, hresult: int): IOException;
904
+ new(message: string | null, innerException: Exception | null): IOException;
907
905
  };
908
906
 
909
907
 
@@ -987,8 +985,8 @@ export interface PathTooLongException$instance extends IOException$instance, Sys
987
985
 
988
986
  export const PathTooLongException: {
989
987
  new(): PathTooLongException;
990
- new(message: string): PathTooLongException;
991
- new(message: string, innerException: Exception): PathTooLongException;
988
+ new(message: string | null): PathTooLongException;
989
+ new(message: string | null, innerException: Exception | null): PathTooLongException;
992
990
  };
993
991
 
994
992
 
@@ -1003,12 +1001,12 @@ export interface RenamedEventArgs$instance extends FileSystemEventArgs {
1003
1001
  readonly __tsonic_type_System_IO_RenamedEventArgs: never;
1004
1002
 
1005
1003
  readonly OldFullPath: string;
1006
- readonly OldName: string | undefined;
1004
+ readonly OldName: string | null;
1007
1005
  }
1008
1006
 
1009
1007
 
1010
1008
  export const RenamedEventArgs: {
1011
- new(changeType: WatcherChangeTypes, directory: string, name: string, oldName: string): RenamedEventArgs;
1009
+ new(changeType: WatcherChangeTypes, directory: string, name: string | null, oldName: string | null): RenamedEventArgs;
1012
1010
  };
1013
1011
 
1014
1012
 
@@ -1028,8 +1026,8 @@ export interface Stream$instance extends MarshalByRefObject, System_Internal.IAs
1028
1026
  Position: long;
1029
1027
  ReadTimeout: int;
1030
1028
  WriteTimeout: int;
1031
- BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
1032
- BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
1029
+ BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
1030
+ BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: JsValue | null): IAsyncResult;
1033
1031
  Close(): void;
1034
1032
  CopyTo(destination: Stream): void;
1035
1033
  CopyTo(destination: Stream, bufferSize: int): void;
@@ -1108,8 +1106,8 @@ export interface StreamReader$instance extends TextReader$instance {
1108
1106
  ReadBlock(buffer: Span_1<System_Internal.Char>): int;
1109
1107
  ReadBlockAsync(buffer: char[], index: int, count: int): Task_1<System_Internal.Int32>;
1110
1108
  ReadBlockAsync(buffer: Memory_1<System_Internal.Char>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1111
- ReadLine(): string | undefined;
1112
- ReadLineAsync(): Task_1<string | undefined>;
1109
+ ReadLine(): string | null;
1110
+ ReadLineAsync(): Task_1<string | null>;
1113
1111
  ReadLineAsync(cancellationToken: CancellationToken): ValueTask_1<System_Internal.String>;
1114
1112
  ReadToEnd(): string;
1115
1113
  ReadToEndAsync(): Task_1<System_Internal.String>;
@@ -1120,17 +1118,17 @@ export interface StreamReader$instance extends TextReader$instance {
1120
1118
  export const StreamReader: {
1121
1119
  new(stream: Stream): StreamReader;
1122
1120
  new(stream: Stream, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1123
- new(stream: Stream, encoding: Encoding): StreamReader;
1124
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1125
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1126
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int, leaveOpen: boolean): StreamReader;
1121
+ new(stream: Stream, encoding: Encoding | null): StreamReader;
1122
+ new(stream: Stream, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1123
+ new(stream: Stream, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1124
+ new(stream: Stream, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean, bufferSize: int, leaveOpen: boolean): StreamReader;
1127
1125
  new(path: string): StreamReader;
1128
1126
  new(path: string, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1129
- new(path: string, encoding: Encoding): StreamReader;
1130
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1131
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1127
+ new(path: string, encoding: Encoding | null): StreamReader;
1128
+ new(path: string, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1129
+ new(path: string, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1132
1130
  new(path: string, options: FileStreamOptions): StreamReader;
1133
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, options: FileStreamOptions): StreamReader;
1131
+ new(path: string, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean, options: FileStreamOptions): StreamReader;
1134
1132
  };
1135
1133
 
1136
1134
 
@@ -1158,15 +1156,15 @@ export interface StreamWriter$instance extends TextWriter$instance {
1158
1156
  FlushAsync(): Task;
1159
1157
  FlushAsync(cancellationToken: CancellationToken): Task;
1160
1158
  Write(value: char): void;
1161
- Write(buffer: char[]): void;
1159
+ Write(buffer: char[] | null): void;
1162
1160
  Write(buffer: char[], index: int, count: int): void;
1163
1161
  Write(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1164
- Write(value: string): void;
1165
- Write(format: string, arg0: unknown): void;
1166
- Write(format: string, arg0: unknown, arg1: unknown): void;
1167
- Write(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1168
- Write(format: string, ...arg: unknown[]): void;
1169
- Write(format: string, arg: ReadOnlySpan_1<unknown>): void;
1162
+ Write(value: string | null): void;
1163
+ Write(format: string, arg0: JsValue | null): void;
1164
+ Write(format: string, arg0: JsValue | null, arg1: JsValue | null): void;
1165
+ Write(format: string, arg0: JsValue | null, arg1: JsValue | null, arg2: JsValue | null): void;
1166
+ Write(format: string, ...arg: (JsValue | null)[]): void;
1167
+ Write(format: string, arg: ReadOnlySpan_1<JsValue>): void;
1170
1168
  Write(value: boolean): void;
1171
1169
  Write(value: int): void;
1172
1170
  Write(value: uint): void;
@@ -1175,24 +1173,24 @@ export interface StreamWriter$instance extends TextWriter$instance {
1175
1173
  Write(value: float): void;
1176
1174
  Write(value: double): void;
1177
1175
  Write(value: decimal): void;
1178
- Write(value: unknown): void;
1179
- Write(value: StringBuilder): void;
1176
+ Write(value: JsValue | null): void;
1177
+ Write(value: StringBuilder | null): void;
1180
1178
  WriteAsync(value: char): Task;
1181
- WriteAsync(value: string): Task;
1179
+ WriteAsync(value: string | null): Task;
1182
1180
  WriteAsync(buffer: char[], index: int, count: int): Task;
1183
1181
  WriteAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1184
- WriteAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1185
- WriteAsync(buffer: char[]): Task;
1186
- WriteLine(value: string): void;
1182
+ WriteAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1183
+ WriteAsync(buffer: char[] | null): Task;
1184
+ WriteLine(value: string | null): void;
1187
1185
  WriteLine(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1188
- WriteLine(format: string, arg0: unknown): void;
1189
- WriteLine(format: string, arg0: unknown, arg1: unknown): void;
1190
- WriteLine(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1191
- WriteLine(format: string, ...arg: unknown[]): void;
1192
- WriteLine(format: string, arg: ReadOnlySpan_1<unknown>): void;
1186
+ WriteLine(format: string, arg0: JsValue | null): void;
1187
+ WriteLine(format: string, arg0: JsValue | null, arg1: JsValue | null): void;
1188
+ WriteLine(format: string, arg0: JsValue | null, arg1: JsValue | null, arg2: JsValue | null): void;
1189
+ WriteLine(format: string, ...arg: (JsValue | null)[]): void;
1190
+ WriteLine(format: string, arg: ReadOnlySpan_1<JsValue>): void;
1193
1191
  WriteLine(): void;
1194
1192
  WriteLine(value: char): void;
1195
- WriteLine(buffer: char[]): void;
1193
+ WriteLine(buffer: char[] | null): void;
1196
1194
  WriteLine(buffer: char[], index: int, count: int): void;
1197
1195
  WriteLine(value: boolean): void;
1198
1196
  WriteLine(value: int): void;
@@ -1202,29 +1200,29 @@ export interface StreamWriter$instance extends TextWriter$instance {
1202
1200
  WriteLine(value: float): void;
1203
1201
  WriteLine(value: double): void;
1204
1202
  WriteLine(value: decimal): void;
1205
- WriteLine(value: StringBuilder): void;
1206
- WriteLine(value: unknown): void;
1203
+ WriteLine(value: StringBuilder | null): void;
1204
+ WriteLine(value: JsValue | null): void;
1207
1205
  WriteLineAsync(): Task;
1208
1206
  WriteLineAsync(value: char): Task;
1209
- WriteLineAsync(value: string): Task;
1207
+ WriteLineAsync(value: string | null): Task;
1210
1208
  WriteLineAsync(buffer: char[], index: int, count: int): Task;
1211
1209
  WriteLineAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1212
- WriteLineAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1213
- WriteLineAsync(buffer: char[]): Task;
1210
+ WriteLineAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1211
+ WriteLineAsync(buffer: char[] | null): Task;
1214
1212
  }
1215
1213
 
1216
1214
 
1217
1215
  export const StreamWriter: {
1218
1216
  new(stream: Stream): StreamWriter;
1219
- new(stream: Stream, encoding: Encoding): StreamWriter;
1220
- new(stream: Stream, encoding: Encoding, bufferSize: int): StreamWriter;
1221
- new(stream: Stream, encoding: Encoding, bufferSize: int, leaveOpen: boolean): StreamWriter;
1217
+ new(stream: Stream, encoding: Encoding | null): StreamWriter;
1218
+ new(stream: Stream, encoding: Encoding | null, bufferSize: int): StreamWriter;
1219
+ new(stream: Stream, encoding: Encoding | null, bufferSize: int, leaveOpen: boolean): StreamWriter;
1222
1220
  new(path: string): StreamWriter;
1223
1221
  new(path: string, append: boolean): StreamWriter;
1224
- new(path: string, append: boolean, encoding: Encoding): StreamWriter;
1225
- new(path: string, append: boolean, encoding: Encoding, bufferSize: int): StreamWriter;
1222
+ new(path: string, append: boolean, encoding: Encoding | null): StreamWriter;
1223
+ new(path: string, append: boolean, encoding: Encoding | null, bufferSize: int): StreamWriter;
1226
1224
  new(path: string, options: FileStreamOptions): StreamWriter;
1227
- new(path: string, encoding: Encoding, options: FileStreamOptions): StreamWriter;
1225
+ new(path: string, encoding: Encoding | null, options: FileStreamOptions): StreamWriter;
1228
1226
  };
1229
1227
 
1230
1228
 
@@ -1254,8 +1252,8 @@ export interface StringReader$instance extends TextReader$instance {
1254
1252
  ReadBlock(buffer: char[], index: int, count: int): int;
1255
1253
  ReadBlockAsync(buffer: char[], index: int, count: int): Task_1<System_Internal.Int32>;
1256
1254
  ReadBlockAsync(buffer: Memory_1<System_Internal.Char>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1257
- ReadLine(): string | undefined;
1258
- ReadLineAsync(): Task_1<string | undefined>;
1255
+ ReadLine(): string | null;
1256
+ ReadLineAsync(): Task_1<string | null>;
1259
1257
  ReadLineAsync(cancellationToken: CancellationToken): ValueTask_1<System_Internal.String>;
1260
1258
  ReadToEnd(): string;
1261
1259
  ReadToEndAsync(): Task_1<System_Internal.String>;
@@ -1292,9 +1290,9 @@ export interface StringWriter$instance extends TextWriter$instance, System_Inter
1292
1290
  Write(value: char): void;
1293
1291
  Write(buffer: char[], index: int, count: int): void;
1294
1292
  Write(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1295
- Write(value: string): void;
1296
- Write(value: StringBuilder): void;
1297
- Write(buffer: char[]): void;
1293
+ Write(value: string | null): void;
1294
+ Write(value: StringBuilder | null): void;
1295
+ Write(buffer: char[] | null): void;
1298
1296
  Write(value: boolean): void;
1299
1297
  Write(value: int): void;
1300
1298
  Write(value: uint): void;
@@ -1303,23 +1301,23 @@ export interface StringWriter$instance extends TextWriter$instance, System_Inter
1303
1301
  Write(value: float): void;
1304
1302
  Write(value: double): void;
1305
1303
  Write(value: decimal): void;
1306
- Write(value: unknown): void;
1307
- Write(format: string, arg0: unknown): void;
1308
- Write(format: string, arg0: unknown, arg1: unknown): void;
1309
- Write(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1310
- Write(format: string, ...arg: unknown[]): void;
1311
- Write(format: string, arg: ReadOnlySpan_1<unknown>): void;
1304
+ Write(value: JsValue | null): void;
1305
+ Write(format: string, arg0: JsValue | null): void;
1306
+ Write(format: string, arg0: JsValue | null, arg1: JsValue | null): void;
1307
+ Write(format: string, arg0: JsValue | null, arg1: JsValue | null, arg2: JsValue | null): void;
1308
+ Write(format: string, ...arg: (JsValue | null)[]): void;
1309
+ Write(format: string, arg: ReadOnlySpan_1<JsValue>): void;
1312
1310
  WriteAsync(value: char): Task;
1313
- WriteAsync(value: string): Task;
1311
+ WriteAsync(value: string | null): Task;
1314
1312
  WriteAsync(buffer: char[], index: int, count: int): Task;
1315
1313
  WriteAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1316
- WriteAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1317
- WriteAsync(buffer: char[]): Task;
1314
+ WriteAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1315
+ WriteAsync(buffer: char[] | null): Task;
1318
1316
  WriteLine(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1319
- WriteLine(value: StringBuilder): void;
1317
+ WriteLine(value: StringBuilder | null): void;
1320
1318
  WriteLine(): void;
1321
1319
  WriteLine(value: char): void;
1322
- WriteLine(buffer: char[]): void;
1320
+ WriteLine(buffer: char[] | null): void;
1323
1321
  WriteLine(buffer: char[], index: int, count: int): void;
1324
1322
  WriteLine(value: boolean): void;
1325
1323
  WriteLine(value: int): void;
@@ -1329,28 +1327,28 @@ export interface StringWriter$instance extends TextWriter$instance, System_Inter
1329
1327
  WriteLine(value: float): void;
1330
1328
  WriteLine(value: double): void;
1331
1329
  WriteLine(value: decimal): void;
1332
- WriteLine(value: string): void;
1333
- WriteLine(value: unknown): void;
1334
- WriteLine(format: string, arg0: unknown): void;
1335
- WriteLine(format: string, arg0: unknown, arg1: unknown): void;
1336
- WriteLine(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1337
- WriteLine(format: string, ...arg: unknown[]): void;
1338
- WriteLine(format: string, arg: ReadOnlySpan_1<unknown>): void;
1330
+ WriteLine(value: string | null): void;
1331
+ WriteLine(value: JsValue | null): void;
1332
+ WriteLine(format: string, arg0: JsValue | null): void;
1333
+ WriteLine(format: string, arg0: JsValue | null, arg1: JsValue | null): void;
1334
+ WriteLine(format: string, arg0: JsValue | null, arg1: JsValue | null, arg2: JsValue | null): void;
1335
+ WriteLine(format: string, ...arg: (JsValue | null)[]): void;
1336
+ WriteLine(format: string, arg: ReadOnlySpan_1<JsValue>): void;
1339
1337
  WriteLineAsync(value: char): Task;
1340
- WriteLineAsync(value: string): Task;
1341
- WriteLineAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1338
+ WriteLineAsync(value: string | null): Task;
1339
+ WriteLineAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1342
1340
  WriteLineAsync(buffer: char[], index: int, count: int): Task;
1343
1341
  WriteLineAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1344
- WriteLineAsync(buffer: char[]): Task;
1342
+ WriteLineAsync(buffer: char[] | null): Task;
1345
1343
  WriteLineAsync(): Task;
1346
1344
  }
1347
1345
 
1348
1346
 
1349
1347
  export const StringWriter: {
1350
1348
  new(): StringWriter;
1351
- new(formatProvider: IFormatProvider): StringWriter;
1349
+ new(formatProvider: IFormatProvider | null): StringWriter;
1352
1350
  new(sb: StringBuilder): StringWriter;
1353
- new(sb: StringBuilder, formatProvider: IFormatProvider): StringWriter;
1351
+ new(sb: StringBuilder, formatProvider: IFormatProvider | null): StringWriter;
1354
1352
  };
1355
1353
 
1356
1354
 
@@ -1380,8 +1378,8 @@ export interface TextReader$instance extends MarshalByRefObject {
1380
1378
  ReadBlock(buffer: Span_1<System_Internal.Char>): int;
1381
1379
  ReadBlockAsync(buffer: char[], index: int, count: int): Task_1<System_Internal.Int32>;
1382
1380
  ReadBlockAsync(buffer: Memory_1<System_Internal.Char>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1383
- ReadLine(): string | undefined;
1384
- ReadLineAsync(): Task_1<string | undefined>;
1381
+ ReadLine(): string | null;
1382
+ ReadLineAsync(): Task_1<string | null>;
1385
1383
  ReadLineAsync(cancellationToken: CancellationToken): ValueTask_1<System_Internal.String>;
1386
1384
  ReadToEnd(): string;
1387
1385
  ReadToEndAsync(): Task_1<System_Internal.String>;
@@ -1419,7 +1417,7 @@ export interface TextWriter$instance extends MarshalByRefObject, System_Internal
1419
1417
  FlushAsync(): Task;
1420
1418
  FlushAsync(cancellationToken: CancellationToken): Task;
1421
1419
  Write(value: char): void;
1422
- Write(buffer: char[]): void;
1420
+ Write(buffer: char[] | null): void;
1423
1421
  Write(buffer: char[], index: int, count: int): void;
1424
1422
  Write(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1425
1423
  Write(value: boolean): void;
@@ -1430,23 +1428,23 @@ export interface TextWriter$instance extends MarshalByRefObject, System_Internal
1430
1428
  Write(value: float): void;
1431
1429
  Write(value: double): void;
1432
1430
  Write(value: decimal): void;
1433
- Write(value: string): void;
1434
- Write(value: unknown): void;
1435
- Write(value: StringBuilder): void;
1436
- Write(format: string, arg0: unknown): void;
1437
- Write(format: string, arg0: unknown, arg1: unknown): void;
1438
- Write(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1439
- Write(format: string, ...arg: unknown[]): void;
1440
- Write(format: string, arg: ReadOnlySpan_1<unknown>): void;
1431
+ Write(value: string | null): void;
1432
+ Write(value: JsValue | null): void;
1433
+ Write(value: StringBuilder | null): void;
1434
+ Write(format: string, arg0: JsValue | null): void;
1435
+ Write(format: string, arg0: JsValue | null, arg1: JsValue | null): void;
1436
+ Write(format: string, arg0: JsValue | null, arg1: JsValue | null, arg2: JsValue | null): void;
1437
+ Write(format: string, ...arg: (JsValue | null)[]): void;
1438
+ Write(format: string, arg: ReadOnlySpan_1<JsValue>): void;
1441
1439
  WriteAsync(value: char): Task;
1442
- WriteAsync(value: string): Task;
1443
- WriteAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1444
- WriteAsync(buffer: char[]): Task;
1440
+ WriteAsync(value: string | null): Task;
1441
+ WriteAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1442
+ WriteAsync(buffer: char[] | null): Task;
1445
1443
  WriteAsync(buffer: char[], index: int, count: int): Task;
1446
1444
  WriteAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1447
1445
  WriteLine(): void;
1448
1446
  WriteLine(value: char): void;
1449
- WriteLine(buffer: char[]): void;
1447
+ WriteLine(buffer: char[] | null): void;
1450
1448
  WriteLine(buffer: char[], index: int, count: int): void;
1451
1449
  WriteLine(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1452
1450
  WriteLine(value: boolean): void;
@@ -1457,25 +1455,25 @@ export interface TextWriter$instance extends MarshalByRefObject, System_Internal
1457
1455
  WriteLine(value: float): void;
1458
1456
  WriteLine(value: double): void;
1459
1457
  WriteLine(value: decimal): void;
1460
- WriteLine(value: string): void;
1461
- WriteLine(value: StringBuilder): void;
1462
- WriteLine(value: unknown): void;
1463
- WriteLine(format: string, arg0: unknown): void;
1464
- WriteLine(format: string, arg0: unknown, arg1: unknown): void;
1465
- WriteLine(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1466
- WriteLine(format: string, ...arg: unknown[]): void;
1467
- WriteLine(format: string, arg: ReadOnlySpan_1<unknown>): void;
1458
+ WriteLine(value: string | null): void;
1459
+ WriteLine(value: StringBuilder | null): void;
1460
+ WriteLine(value: JsValue | null): void;
1461
+ WriteLine(format: string, arg0: JsValue | null): void;
1462
+ WriteLine(format: string, arg0: JsValue | null, arg1: JsValue | null): void;
1463
+ WriteLine(format: string, arg0: JsValue | null, arg1: JsValue | null, arg2: JsValue | null): void;
1464
+ WriteLine(format: string, ...arg: (JsValue | null)[]): void;
1465
+ WriteLine(format: string, arg: ReadOnlySpan_1<JsValue>): void;
1468
1466
  WriteLineAsync(value: char): Task;
1469
- WriteLineAsync(value: string): Task;
1470
- WriteLineAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1471
- WriteLineAsync(buffer: char[]): Task;
1467
+ WriteLineAsync(value: string | null): Task;
1468
+ WriteLineAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1469
+ WriteLineAsync(buffer: char[] | null): Task;
1472
1470
  WriteLineAsync(buffer: char[], index: int, count: int): Task;
1473
1471
  WriteLineAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1474
1472
  WriteLineAsync(): Task;
1475
1473
  }
1476
1474
 
1477
1475
 
1478
- export const TextWriter: (abstract new() => TextWriter) & (abstract new(formatProvider: IFormatProvider) => TextWriter) & {
1476
+ export const TextWriter: (abstract new() => TextWriter) & (abstract new(formatProvider: IFormatProvider | null) => TextWriter) & {
1479
1477
  readonly Null: TextWriter;
1480
1478
  CreateBroadcasting(...writers: TextWriter[]): TextWriter;
1481
1479
  Synchronized(writer: TextWriter): TextWriter;
@@ -1500,8 +1498,8 @@ export interface UnmanagedMemoryAccessor$instance {
1500
1498
  readonly Capacity: long;
1501
1499
  Dispose(disposing: boolean): void;
1502
1500
  Dispose(): void;
1503
- Read<T extends unknown>(position: long, structure: T): void;
1504
- ReadArray<T extends unknown>(position: long, array: T[], offset: int, count: int): int;
1501
+ Read<T extends NonNullable<JsValue>>(position: long, structure: T): void;
1502
+ ReadArray<T extends NonNullable<JsValue>>(position: long, array: T[], offset: int, count: int): int;
1505
1503
  ReadBoolean(position: long): boolean;
1506
1504
  ReadByte(position: long): byte;
1507
1505
  ReadChar(position: long): char;
@@ -1528,8 +1526,8 @@ export interface UnmanagedMemoryAccessor$instance {
1528
1526
  Write(position: long, value: ushort): void;
1529
1527
  Write(position: long, value: uint): void;
1530
1528
  Write(position: long, value: ulong): void;
1531
- Write<T extends unknown>(position: long, structure: T): void;
1532
- WriteArray<T extends unknown>(position: long, array: T[], offset: int, count: int): void;
1529
+ Write<T extends NonNullable<JsValue>>(position: long, structure: T): void;
1530
+ WriteArray<T extends NonNullable<JsValue>>(position: long, array: T[], offset: int, count: int): void;
1533
1531
  }
1534
1532
 
1535
1533
 
@@ -1601,7 +1599,7 @@ export abstract class Directory$instance {
1601
1599
  static CreateDirectory(path: string, unixCreateMode: UnixFileMode): DirectoryInfo;
1602
1600
  static CreateDirectory(path: string): DirectoryInfo;
1603
1601
  static CreateSymbolicLink(path: string, pathToTarget: string): FileSystemInfo;
1604
- static CreateTempSubdirectory(prefix?: string): DirectoryInfo;
1602
+ static CreateTempSubdirectory(prefix?: string | null): DirectoryInfo;
1605
1603
  static Delete(path: string, recursive: boolean): void;
1606
1604
  static Delete(path: string): void;
1607
1605
  static EnumerateDirectories(path: string, searchPattern: string, enumerationOptions: EnumerationOptions): IEnumerable_1<System_Internal.String>;
@@ -1616,7 +1614,7 @@ export abstract class Directory$instance {
1616
1614
  static EnumerateFileSystemEntries(path: string, searchPattern: string, searchOption: SearchOption): IEnumerable_1<System_Internal.String>;
1617
1615
  static EnumerateFileSystemEntries(path: string, searchPattern: string): IEnumerable_1<System_Internal.String>;
1618
1616
  static EnumerateFileSystemEntries(path: string): IEnumerable_1<System_Internal.String>;
1619
- static Exists(path: string): boolean;
1617
+ static Exists(path: string | null): boolean;
1620
1618
  static GetCreationTime(path: string): DateTime;
1621
1619
  static GetCreationTimeUtc(path: string): DateTime;
1622
1620
  static GetCurrentDirectory(): string;
@@ -1638,9 +1636,9 @@ export abstract class Directory$instance {
1638
1636
  static GetLastWriteTime(path: string): DateTime;
1639
1637
  static GetLastWriteTimeUtc(path: string): DateTime;
1640
1638
  static GetLogicalDrives(): string[];
1641
- static GetParent(path: string): DirectoryInfo | undefined;
1639
+ static GetParent(path: string): DirectoryInfo | null;
1642
1640
  static Move(sourceDirName: string, destDirName: string): void;
1643
- static ResolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo | undefined;
1641
+ static ResolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo | null;
1644
1642
  static SetCreationTime(path: string, creationTime: DateTime): void;
1645
1643
  static SetCreationTimeUtc(path: string, creationTimeUtc: DateTime): void;
1646
1644
  static SetCurrentDirectory(path: string): void;
@@ -1664,12 +1662,12 @@ export abstract class File$instance {
1664
1662
  static AppendAllLinesAsync(path: string, contents: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): Task;
1665
1663
  static AppendAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>, encoding: Encoding): void;
1666
1664
  static AppendAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>): void;
1667
- static AppendAllText(path: string, contents: string, encoding: Encoding): void;
1668
- static AppendAllText(path: string, contents: string): void;
1665
+ static AppendAllText(path: string, contents: string | null, encoding: Encoding): void;
1666
+ static AppendAllText(path: string, contents: string | null): void;
1669
1667
  static AppendAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1670
1668
  static AppendAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1671
- static AppendAllTextAsync(path: string, contents: string, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1672
- static AppendAllTextAsync(path: string, contents: string, cancellationToken?: CancellationToken): Task;
1669
+ static AppendAllTextAsync(path: string, contents: string | null, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1670
+ static AppendAllTextAsync(path: string, contents: string | null, cancellationToken?: CancellationToken): Task;
1673
1671
  static AppendText(path: string): StreamWriter;
1674
1672
  static Copy(sourceFileName: string, destFileName: string, overwrite: boolean): void;
1675
1673
  static Copy(sourceFileName: string, destFileName: string): void;
@@ -1681,7 +1679,7 @@ export abstract class File$instance {
1681
1679
  static Decrypt(path: string): void;
1682
1680
  static Delete(path: string): void;
1683
1681
  static Encrypt(path: string): void;
1684
- static Exists(path: string): boolean;
1682
+ static Exists(path: string | null): boolean;
1685
1683
  static GetAttributes(fileHandle: SafeFileHandle): FileAttributes;
1686
1684
  static GetAttributes(path: string): FileAttributes;
1687
1685
  static GetCreationTime(fileHandle: SafeFileHandle): DateTime;
@@ -1722,9 +1720,9 @@ export abstract class File$instance {
1722
1720
  static ReadLines(path: string): IEnumerable_1<System_Internal.String>;
1723
1721
  static ReadLinesAsync(path: string, encoding: Encoding, cancellationToken?: CancellationToken): IAsyncEnumerable_1<System_Internal.String>;
1724
1722
  static ReadLinesAsync(path: string, cancellationToken?: CancellationToken): IAsyncEnumerable_1<System_Internal.String>;
1725
- static Replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string, ignoreMetadataErrors: boolean): void;
1726
- static Replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string): void;
1727
- static ResolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo | undefined;
1723
+ static Replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string | null, ignoreMetadataErrors: boolean): void;
1724
+ static Replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string | null): void;
1725
+ static ResolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo | null;
1728
1726
  static SetAttributes(fileHandle: SafeFileHandle, fileAttributes: FileAttributes): void;
1729
1727
  static SetAttributes(path: string, fileAttributes: FileAttributes): void;
1730
1728
  static SetCreationTime(fileHandle: SafeFileHandle, creationTime: DateTime): void;
@@ -1753,12 +1751,12 @@ export abstract class File$instance {
1753
1751
  static WriteAllLinesAsync(path: string, contents: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): Task;
1754
1752
  static WriteAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>, encoding: Encoding): void;
1755
1753
  static WriteAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>): void;
1756
- static WriteAllText(path: string, contents: string, encoding: Encoding): void;
1757
- static WriteAllText(path: string, contents: string): void;
1754
+ static WriteAllText(path: string, contents: string | null, encoding: Encoding): void;
1755
+ static WriteAllText(path: string, contents: string | null): void;
1758
1756
  static WriteAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1759
1757
  static WriteAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1760
- static WriteAllTextAsync(path: string, contents: string, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1761
- static WriteAllTextAsync(path: string, contents: string, cancellationToken?: CancellationToken): Task;
1758
+ static WriteAllTextAsync(path: string, contents: string | null, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1759
+ static WriteAllTextAsync(path: string, contents: string | null, cancellationToken?: CancellationToken): Task;
1762
1760
  }
1763
1761
 
1764
1762
 
@@ -1766,7 +1764,7 @@ export type File = File$instance;
1766
1764
 
1767
1765
  export abstract class FileSystemAclExtensions$instance {
1768
1766
  static Create(directoryInfo: DirectoryInfo, directorySecurity: DirectorySecurity): void;
1769
- static Create(fileInfo: FileInfo, mode: FileMode, rights: FileSystemRights, share: FileShare, bufferSize: int, options: FileOptions, fileSecurity: FileSecurity): FileStream;
1767
+ static Create(fileInfo: FileInfo, mode: FileMode, rights: FileSystemRights, share: FileShare, bufferSize: int, options: FileOptions, fileSecurity: FileSecurity | null): FileStream;
1770
1768
  static CreateDirectory(directorySecurity: DirectorySecurity, path: string): DirectoryInfo;
1771
1769
  static GetAccessControl(directoryInfo: DirectoryInfo, includeSections: AccessControlSections): DirectorySecurity;
1772
1770
  static GetAccessControl(directoryInfo: DirectoryInfo): DirectorySecurity;
@@ -1787,47 +1785,47 @@ export abstract class Path$instance {
1787
1785
  static readonly VolumeSeparatorChar: char;
1788
1786
  static readonly PathSeparator: char;
1789
1787
  static readonly InvalidPathChars: char[];
1790
- static ChangeExtension(path: string, extension: string): string | undefined;
1788
+ static ChangeExtension(path: string | null, extension: string | null): string | null;
1791
1789
  static Combine(paths: ReadOnlySpan_1<System_Internal.String>): string;
1792
1790
  static Combine(path1: string, path2: string, path3: string, path4: string): string;
1793
1791
  static Combine(path1: string, path2: string, path3: string): string;
1794
1792
  static Combine(path1: string, path2: string): string;
1795
1793
  static Combine(...paths: string[]): string;
1796
1794
  static EndsInDirectorySeparator(path: ReadOnlySpan_1<System_Internal.Char>): boolean;
1797
- static EndsInDirectorySeparator(path: string): boolean;
1798
- static Exists(path: string): boolean;
1795
+ static EndsInDirectorySeparator(path: string | null): boolean;
1796
+ static Exists(path: string | null): boolean;
1799
1797
  static GetDirectoryName(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1800
- static GetDirectoryName(path: string): string | undefined;
1798
+ static GetDirectoryName(path: string | null): string | null;
1801
1799
  static GetExtension(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1802
- static GetExtension(path: string): string | undefined;
1800
+ static GetExtension(path: string | null): string | null;
1803
1801
  static GetFileName(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1804
- static GetFileName(path: string): string | undefined;
1802
+ static GetFileName(path: string | null): string | null;
1805
1803
  static GetFileNameWithoutExtension(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1806
- static GetFileNameWithoutExtension(path: string): string | undefined;
1804
+ static GetFileNameWithoutExtension(path: string | null): string | null;
1807
1805
  static GetFullPath(path: string, basePath: string): string;
1808
1806
  static GetFullPath(path: string): string;
1809
1807
  static GetInvalidFileNameChars(): char[];
1810
1808
  static GetInvalidPathChars(): char[];
1811
1809
  static GetPathRoot(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1812
- static GetPathRoot(path: string): string | undefined;
1810
+ static GetPathRoot(path: string | null): string | null;
1813
1811
  static GetRandomFileName(): string;
1814
1812
  static GetRelativePath(relativeTo: string, path: string): string;
1815
1813
  static GetTempFileName(): string;
1816
1814
  static GetTempPath(): string;
1817
1815
  static HasExtension(path: ReadOnlySpan_1<System_Internal.Char>): boolean;
1818
- static HasExtension(path: string): boolean;
1816
+ static HasExtension(path: string | null): boolean;
1819
1817
  static IsPathFullyQualified(path: ReadOnlySpan_1<System_Internal.Char>): boolean;
1820
1818
  static IsPathFullyQualified(path: string): boolean;
1821
1819
  static IsPathRooted(path: ReadOnlySpan_1<System_Internal.Char>): boolean;
1822
- static IsPathRooted(path: string): boolean;
1820
+ static IsPathRooted(path: string | null): boolean;
1823
1821
  static Join(path1: ReadOnlySpan_1<System_Internal.Char>, path2: ReadOnlySpan_1<System_Internal.Char>, path3: ReadOnlySpan_1<System_Internal.Char>, path4: ReadOnlySpan_1<System_Internal.Char>): string;
1824
1822
  static Join(path1: ReadOnlySpan_1<System_Internal.Char>, path2: ReadOnlySpan_1<System_Internal.Char>, path3: ReadOnlySpan_1<System_Internal.Char>): string;
1825
1823
  static Join(path1: ReadOnlySpan_1<System_Internal.Char>, path2: ReadOnlySpan_1<System_Internal.Char>): string;
1826
1824
  static Join(paths: ReadOnlySpan_1<System_Internal.String>): string;
1827
- static Join(path1: string, path2: string, path3: string, path4: string): string;
1828
- static Join(path1: string, path2: string, path3: string): string;
1829
- static Join(path1: string, path2: string): string;
1830
- static Join(...paths: string[]): string;
1825
+ static Join(path1: string | null, path2: string | null, path3: string | null, path4: string | null): string;
1826
+ static Join(path1: string | null, path2: string | null, path3: string | null): string;
1827
+ static Join(path1: string | null, path2: string | null): string;
1828
+ static Join(...paths: (string | null)[]): string;
1831
1829
  static TrimEndingDirectorySeparator(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1832
1830
  static TrimEndingDirectorySeparator(path: string): string;
1833
1831
  static TryJoin(path1: ReadOnlySpan_1<System_Internal.Char>, path2: ReadOnlySpan_1<System_Internal.Char>, path3: ReadOnlySpan_1<System_Internal.Char>, destination: Span_1<System_Internal.Char>, charsWritten: int): boolean;