@tsonic/dotnet 0.8.1 → 0.8.2

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 (127) hide show
  1. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +18 -18
  2. package/Microsoft.VisualBasic/internal/index.d.ts +1 -1
  3. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +1 -1
  4. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +1 -1
  5. package/Microsoft.Win32/internal/index.d.ts +11 -11
  6. package/System/bindings.json +114 -114
  7. package/System/internal/index.d.ts +994 -1006
  8. package/System/internal/metadata.json +73 -73
  9. package/System.Buffers/internal/index.d.ts +3 -3
  10. package/System.CodeDom.Compiler/internal/index.d.ts +11 -11
  11. package/System.Collections/internal/index.d.ts +26 -28
  12. package/System.Collections.Concurrent/internal/index.d.ts +10 -10
  13. package/System.Collections.Frozen/bindings.json +20 -20
  14. package/System.Collections.Frozen/internal/index.d.ts +6 -6
  15. package/System.Collections.Frozen/internal/metadata.json +10 -10
  16. package/System.Collections.Generic/bindings.json +44 -20
  17. package/System.Collections.Generic/internal/index.d.ts +68 -60
  18. package/System.Collections.Generic/internal/metadata.json +26 -10
  19. package/System.Collections.Immutable/internal/index.d.ts +99 -99
  20. package/System.Collections.ObjectModel/internal/index.d.ts +15 -15
  21. package/System.Collections.Specialized/internal/index.d.ts +63 -65
  22. package/System.ComponentModel/internal/index.d.ts +428 -430
  23. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +66 -66
  24. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +2 -2
  25. package/System.ComponentModel.Design/internal/index.d.ts +72 -72
  26. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +33 -33
  27. package/System.Data/internal/index.d.ts +168 -168
  28. package/System.Data.Common/internal/index.d.ts +48 -48
  29. package/System.Data.SqlTypes/internal/index.d.ts +21 -21
  30. package/System.Diagnostics/internal/index.d.ts +262 -262
  31. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +25 -25
  32. package/System.Diagnostics.Contracts/internal/index.d.ts +8 -8
  33. package/System.Diagnostics.Metrics/internal/index.d.ts +33 -33
  34. package/System.Diagnostics.SymbolStore/internal/index.d.ts +5 -5
  35. package/System.Diagnostics.Tracing/internal/index.d.ts +28 -28
  36. package/System.Drawing/internal/index.d.ts +77 -77
  37. package/System.Dynamic/internal/index.d.ts +27 -27
  38. package/System.Formats.Asn1/internal/index.d.ts +4 -4
  39. package/System.Formats.Tar/internal/index.d.ts +3 -3
  40. package/System.Globalization/internal/index.d.ts +18 -18
  41. package/System.IO/internal/index.d.ts +107 -107
  42. package/System.IO.Compression/internal/index.d.ts +25 -25
  43. package/System.IO.Enumeration/internal/index.d.ts +5 -5
  44. package/System.IO.IsolatedStorage/internal/index.d.ts +9 -9
  45. package/System.IO.MemoryMappedFiles/internal/index.d.ts +8 -8
  46. package/System.IO.Pipelines/internal/index.d.ts +5 -5
  47. package/System.IO.Pipes/internal/index.d.ts +4 -4
  48. package/System.Linq/internal/index.d.ts +180 -180
  49. package/System.Linq.Expressions/internal/index.d.ts +169 -169
  50. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +2 -2
  51. package/System.Net/internal/index.d.ts +151 -153
  52. package/System.Net.Cache/internal/index.d.ts +2 -2
  53. package/System.Net.Http/internal/index.d.ts +58 -58
  54. package/System.Net.Http.Headers/internal/index.d.ts +48 -48
  55. package/System.Net.Http.Json/internal/index.d.ts +58 -58
  56. package/System.Net.Http.Metrics/internal/index.d.ts +1 -1
  57. package/System.Net.Mail/internal/index.d.ts +72 -72
  58. package/System.Net.Mime/internal/index.d.ts +2 -2
  59. package/System.Net.NetworkInformation/internal/index.d.ts +24 -24
  60. package/System.Net.Quic/internal/index.d.ts +4 -4
  61. package/System.Net.Security/internal/index.d.ts +52 -52
  62. package/System.Net.ServerSentEvents/internal/index.d.ts +2 -2
  63. package/System.Net.Sockets/internal/index.d.ts +41 -41
  64. package/System.Net.WebSockets/internal/index.d.ts +34 -34
  65. package/System.Numerics/bindings.json +384 -0
  66. package/System.Numerics/internal/index.d.ts +91 -93
  67. package/System.Numerics/internal/metadata.json +256 -0
  68. package/System.Reflection/internal/index.d.ts +219 -219
  69. package/System.Reflection.Emit/internal/index.d.ts +118 -118
  70. package/System.Reflection.Metadata/bindings.json +48 -0
  71. package/System.Reflection.Metadata/internal/index.d.ts +14 -14
  72. package/System.Reflection.Metadata/internal/metadata.json +32 -0
  73. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +5 -5
  74. package/System.Reflection.PortableExecutable/internal/index.d.ts +4 -4
  75. package/System.Resources/internal/index.d.ts +24 -24
  76. package/System.Runtime/internal/index.d.ts +5 -5
  77. package/System.Runtime.CompilerServices/internal/index.d.ts +31 -31
  78. package/System.Runtime.InteropServices/bindings.json +22 -22
  79. package/System.Runtime.InteropServices/internal/index.d.ts +93 -93
  80. package/System.Runtime.InteropServices/internal/metadata.json +13 -13
  81. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +10 -10
  82. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +23 -23
  83. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +36 -36
  84. package/System.Runtime.Loader/internal/index.d.ts +6 -6
  85. package/System.Runtime.Remoting/internal/index.d.ts +2 -2
  86. package/System.Runtime.Serialization/internal/index.d.ts +77 -79
  87. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +16 -16
  88. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
  89. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +4 -4
  90. package/System.Runtime.Serialization.Json/internal/index.d.ts +26 -26
  91. package/System.Runtime.Versioning/internal/index.d.ts +9 -9
  92. package/System.Security/internal/index.d.ts +49 -49
  93. package/System.Security.AccessControl/internal/index.d.ts +31 -31
  94. package/System.Security.Authentication/internal/index.d.ts +4 -4
  95. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +10 -10
  96. package/System.Security.Claims/internal/index.d.ts +23 -25
  97. package/System.Security.Cryptography/internal/index.d.ts +189 -189
  98. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +71 -71
  99. package/System.Security.Policy/internal/index.d.ts +2 -2
  100. package/System.Security.Principal/internal/index.d.ts +9 -11
  101. package/System.Text/internal/index.d.ts +51 -51
  102. package/System.Text.Json/internal/index.d.ts +83 -83
  103. package/System.Text.Json.Nodes/internal/index.d.ts +65 -65
  104. package/System.Text.Json.Schema/internal/index.d.ts +5 -5
  105. package/System.Text.Json.Serialization/internal/index.d.ts +10 -10
  106. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +47 -47
  107. package/System.Text.RegularExpressions/internal/index.d.ts +5 -5
  108. package/System.Text.Unicode/internal/index.d.ts +4 -4
  109. package/System.Threading/internal/index.d.ts +87 -87
  110. package/System.Threading.Channels/internal/index.d.ts +8 -8
  111. package/System.Threading.Tasks/internal/index.d.ts +84 -94
  112. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +29 -26
  113. package/System.Threading.Tasks.Sources/internal/index.d.ts +4 -4
  114. package/System.Timers/internal/index.d.ts +3 -3
  115. package/System.Transactions/internal/index.d.ts +20 -20
  116. package/System.Web/internal/index.d.ts +31 -31
  117. package/System.Windows.Input/internal/index.d.ts +2 -2
  118. package/System.Xml/internal/index.d.ts +215 -215
  119. package/System.Xml.Linq/internal/index.d.ts +51 -51
  120. package/System.Xml.Resolvers/internal/index.d.ts +4 -4
  121. package/System.Xml.Schema/internal/index.d.ts +105 -105
  122. package/System.Xml.Serialization/internal/index.d.ts +136 -136
  123. package/System.Xml.XPath/internal/index.d.ts +19 -19
  124. package/System.Xml.Xsl/internal/index.d.ts +41 -41
  125. package/System.Xml.Xsl.Runtime/internal/index.d.ts +20 -20
  126. package/__internal/extensions/index.d.ts +415 -414
  127. package/package.json +1 -1
@@ -178,7 +178,7 @@ export type RenamedEventHandler = (sender: unknown, e: RenamedEventArgs) => void
178
178
  export interface WaitForChangedResult$instance {
179
179
  changeType: WatcherChangeTypes;
180
180
  name: string;
181
- oldName: string;
181
+ oldName: string | undefined;
182
182
  timedOut: boolean;
183
183
  }
184
184
 
@@ -298,8 +298,8 @@ export interface BufferedStream$instance extends Stream$instance {
298
298
  readonly length: long;
299
299
  position: long;
300
300
  readonly underlyingStream: Stream;
301
- beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
302
- beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
301
+ beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
302
+ beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
303
303
  copyTo(destination: Stream, bufferSize: int): void;
304
304
  copyTo(destination: Stream): void;
305
305
  copyToAsync(destination: Stream, bufferSize: int, cancellationToken: CancellationToken): Task;
@@ -405,8 +405,8 @@ export interface DirectoryNotFoundException$instance extends IOException$instanc
405
405
 
406
406
  export const DirectoryNotFoundException: {
407
407
  new(): DirectoryNotFoundException;
408
- new(message: string): DirectoryNotFoundException;
409
- new(message: string, innerException: Exception): DirectoryNotFoundException;
408
+ new(message: string | undefined): DirectoryNotFoundException;
409
+ new(message: string | undefined, innerException: Exception | undefined): DirectoryNotFoundException;
410
410
  };
411
411
 
412
412
 
@@ -453,8 +453,8 @@ export interface DriveNotFoundException$instance extends IOException$instance {
453
453
 
454
454
  export const DriveNotFoundException: {
455
455
  new(): DriveNotFoundException;
456
- new(message: string): DriveNotFoundException;
457
- new(message: string, innerException: Exception): DriveNotFoundException;
456
+ new(message: string | undefined): DriveNotFoundException;
457
+ new(message: string | undefined, innerException: Exception | undefined): DriveNotFoundException;
458
458
  };
459
459
 
460
460
 
@@ -472,8 +472,8 @@ export interface EndOfStreamException$instance extends IOException$instance {
472
472
 
473
473
  export const EndOfStreamException: {
474
474
  new(): EndOfStreamException;
475
- new(message: string): EndOfStreamException;
476
- new(message: string, innerException: Exception): EndOfStreamException;
475
+ new(message: string | undefined): EndOfStreamException;
476
+ new(message: string | undefined, innerException: Exception | undefined): EndOfStreamException;
477
477
  };
478
478
 
479
479
 
@@ -516,8 +516,8 @@ export const ErrorEventArgs: {
516
516
  export type ErrorEventArgs = ErrorEventArgs$instance;
517
517
 
518
518
  export interface FileInfo$instance extends FileSystemInfo$instance {
519
- readonly directory: DirectoryInfo;
520
- readonly directoryName: string;
519
+ readonly directory: DirectoryInfo | undefined;
520
+ readonly directoryName: string | undefined;
521
521
  readonly exists: boolean;
522
522
  isReadOnly: boolean;
523
523
  readonly length: long;
@@ -540,8 +540,8 @@ export interface FileInfo$instance extends FileSystemInfo$instance {
540
540
  openRead(): FileStream;
541
541
  openText(): StreamReader;
542
542
  openWrite(): FileStream;
543
- replace(destinationFileName: string, destinationBackupFileName: string): FileInfo;
544
- replace(destinationFileName: string, destinationBackupFileName: string, ignoreMetadataErrors: boolean): FileInfo;
543
+ replace(destinationFileName: string, destinationBackupFileName: string | undefined): FileInfo;
544
+ replace(destinationFileName: string, destinationBackupFileName: string | undefined, ignoreMetadataErrors: boolean): FileInfo;
545
545
  }
546
546
 
547
547
 
@@ -559,19 +559,19 @@ export type FileInfo = FileInfo$instance & __FileInfo$views;
559
559
 
560
560
  export interface FileLoadException$instance extends IOException$instance {
561
561
  readonly fileName: string;
562
- readonly fusionLog: string;
562
+ readonly fusionLog: string | undefined;
563
563
  readonly message: string;
564
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
565
- toString(): string;
564
+ getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
565
+ toString(): string | undefined;
566
566
  }
567
567
 
568
568
 
569
569
  export const FileLoadException: {
570
570
  new(): FileLoadException;
571
- new(message: string): FileLoadException;
572
- new(message: string, inner: Exception): FileLoadException;
573
- new(message: string, fileName: string): FileLoadException;
574
- new(message: string, fileName: string, inner: Exception): FileLoadException;
571
+ new(message: string | undefined): FileLoadException;
572
+ new(message: string | undefined, inner: Exception | undefined): FileLoadException;
573
+ new(message: string | undefined, fileName: string | undefined): FileLoadException;
574
+ new(message: string | undefined, fileName: string | undefined, inner: Exception | undefined): FileLoadException;
575
575
  };
576
576
 
577
577
 
@@ -584,19 +584,19 @@ export type FileLoadException = FileLoadException$instance & __FileLoadException
584
584
 
585
585
  export interface FileNotFoundException$instance extends IOException$instance {
586
586
  readonly fileName: string;
587
- readonly fusionLog: string;
587
+ readonly fusionLog: string | undefined;
588
588
  readonly message: string;
589
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
590
- toString(): string;
589
+ getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
590
+ toString(): string | undefined;
591
591
  }
592
592
 
593
593
 
594
594
  export const FileNotFoundException: {
595
595
  new(): FileNotFoundException;
596
- new(message: string): FileNotFoundException;
597
- new(message: string, innerException: Exception): FileNotFoundException;
598
- new(message: string, fileName: string): FileNotFoundException;
599
- new(message: string, fileName: string, innerException: Exception): FileNotFoundException;
596
+ new(message: string | undefined): FileNotFoundException;
597
+ new(message: string | undefined, innerException: Exception | undefined): FileNotFoundException;
598
+ new(message: string | undefined, fileName: string | undefined): FileNotFoundException;
599
+ new(message: string | undefined, fileName: string | undefined, innerException: Exception | undefined): FileNotFoundException;
600
600
  };
601
601
 
602
602
 
@@ -617,8 +617,8 @@ export interface FileStream$instance extends Stream$instance {
617
617
  readonly name: string;
618
618
  position: long;
619
619
  readonly safeFileHandle: SafeFileHandle;
620
- beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
621
- beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
620
+ beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
621
+ beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
622
622
  copyTo(destination: Stream, bufferSize: int): void;
623
623
  copyTo(destination: Stream): void;
624
624
  copyToAsync(destination: Stream, bufferSize: int, cancellationToken: CancellationToken): Task;
@@ -708,7 +708,7 @@ export interface FileSystemEventArgs$instance extends EventArgs {
708
708
 
709
709
 
710
710
  export const FileSystemEventArgs: {
711
- new(changeType: WatcherChangeTypes, directory: string, name: string): FileSystemEventArgs;
711
+ new(changeType: WatcherChangeTypes, directory: string, name: string | undefined): FileSystemEventArgs;
712
712
  };
713
713
 
714
714
 
@@ -725,7 +725,7 @@ export interface FileSystemInfo$instance extends MarshalByRefObject {
725
725
  lastAccessTimeUtc: DateTime;
726
726
  lastWriteTime: DateTime;
727
727
  lastWriteTimeUtc: DateTime;
728
- readonly linkTarget: string;
728
+ readonly linkTarget: string | undefined;
729
729
  readonly name: string;
730
730
  unixFileMode: UnixFileMode;
731
731
  createAsSymbolicLink(pathToTarget: string): void;
@@ -758,8 +758,8 @@ export interface FileSystemWatcher$instance extends Component {
758
758
  internalBufferSize: int;
759
759
  notifyFilter: NotifyFilters;
760
760
  path: string;
761
- site: ISite;
762
- synchronizingObject: ISynchronizeInvoke;
761
+ site: ISite | undefined;
762
+ synchronizingObject: ISynchronizeInvoke | undefined;
763
763
  beginInit(): void;
764
764
  dispose(): void;
765
765
  endInit(): void;
@@ -771,8 +771,8 @@ export interface FileSystemWatcher$instance extends Component {
771
771
 
772
772
  export const FileSystemWatcher: {
773
773
  new(): FileSystemWatcher;
774
- new(path: string): FileSystemWatcher;
775
- new(path: string, filter: string): FileSystemWatcher;
774
+ new(path: string | undefined): FileSystemWatcher;
775
+ new(path: string | undefined, filter: string | undefined): FileSystemWatcher;
776
776
  };
777
777
 
778
778
 
@@ -794,8 +794,8 @@ export interface InternalBufferOverflowException$instance extends SystemExceptio
794
794
 
795
795
  export const InternalBufferOverflowException: {
796
796
  new(): InternalBufferOverflowException;
797
- new(message: string): InternalBufferOverflowException;
798
- new(message: string, inner: Exception): InternalBufferOverflowException;
797
+ new(message: string | undefined): InternalBufferOverflowException;
798
+ new(message: string | undefined, inner: Exception | undefined): InternalBufferOverflowException;
799
799
  };
800
800
 
801
801
 
@@ -813,8 +813,8 @@ export interface InvalidDataException$instance extends SystemException {
813
813
 
814
814
  export const InvalidDataException: {
815
815
  new(): InvalidDataException;
816
- new(message: string): InvalidDataException;
817
- new(message: string, innerException: Exception): InvalidDataException;
816
+ new(message: string | undefined): InvalidDataException;
817
+ new(message: string | undefined, innerException: Exception | undefined): InvalidDataException;
818
818
  };
819
819
 
820
820
 
@@ -832,9 +832,9 @@ export interface IOException$instance extends SystemException {
832
832
 
833
833
  export const IOException: {
834
834
  new(): IOException;
835
- new(message: string): IOException;
836
- new(message: string, hresult: int): IOException;
837
- new(message: string, innerException: Exception): IOException;
835
+ new(message: string | undefined): IOException;
836
+ new(message: string | undefined, hresult: int): IOException;
837
+ new(message: string | undefined, innerException: Exception | undefined): IOException;
838
838
  };
839
839
 
840
840
 
@@ -915,8 +915,8 @@ export interface PathTooLongException$instance extends IOException$instance {
915
915
 
916
916
  export const PathTooLongException: {
917
917
  new(): PathTooLongException;
918
- new(message: string): PathTooLongException;
919
- new(message: string, innerException: Exception): PathTooLongException;
918
+ new(message: string | undefined): PathTooLongException;
919
+ new(message: string | undefined, innerException: Exception | undefined): PathTooLongException;
920
920
  };
921
921
 
922
922
 
@@ -929,12 +929,12 @@ export type PathTooLongException = PathTooLongException$instance & __PathTooLong
929
929
 
930
930
  export interface RenamedEventArgs$instance extends FileSystemEventArgs {
931
931
  readonly oldFullPath: string;
932
- readonly oldName: string;
932
+ readonly oldName: string | undefined;
933
933
  }
934
934
 
935
935
 
936
936
  export const RenamedEventArgs: {
937
- new(changeType: WatcherChangeTypes, directory: string, name: string, oldName: string): RenamedEventArgs;
937
+ new(changeType: WatcherChangeTypes, directory: string, name: string | undefined, oldName: string | undefined): RenamedEventArgs;
938
938
  };
939
939
 
940
940
 
@@ -949,8 +949,8 @@ export interface Stream$instance extends MarshalByRefObject {
949
949
  position: long;
950
950
  readTimeout: int;
951
951
  writeTimeout: int;
952
- beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
953
- beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
952
+ beginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
953
+ beginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | undefined, state: unknown | undefined): IAsyncResult;
954
954
  close(): void;
955
955
  copyTo(destination: Stream): void;
956
956
  copyTo(destination: Stream, bufferSize: int): void;
@@ -1028,9 +1028,9 @@ export interface StreamReader$instance extends TextReader$instance {
1028
1028
  readBlockAsync(buffer: char[], index: int, count: int): Task_1<System_Internal.Int32>;
1029
1029
  readBlockAsync(buffer: Memory_1<System_Internal.Char>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1030
1030
  readLine(): string;
1031
- readLineAsync(): Task_1<System_Internal.String>;
1031
+ readLineAsync(): Task_1<string | undefined>;
1032
1032
  readLineAsync(cancellationToken: CancellationToken): ValueTask_1<System_Internal.String>;
1033
- readLineAsync(): Task_1<System_Internal.String>;
1033
+ readLineAsync(): Task_1<string | undefined>;
1034
1034
  readLineAsync(cancellationToken: CancellationToken): ValueTask_1<System_Internal.String>;
1035
1035
  readToEnd(): string;
1036
1036
  readToEndAsync(): Task_1<System_Internal.String>;
@@ -1043,17 +1043,17 @@ export interface StreamReader$instance extends TextReader$instance {
1043
1043
  export const StreamReader: {
1044
1044
  new(stream: Stream): StreamReader;
1045
1045
  new(stream: Stream, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1046
- new(stream: Stream, encoding: Encoding): StreamReader;
1047
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1048
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1049
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int, leaveOpen: boolean): StreamReader;
1046
+ new(stream: Stream, encoding: Encoding | undefined): StreamReader;
1047
+ new(stream: Stream, encoding: Encoding | undefined, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1048
+ new(stream: Stream, encoding: Encoding | undefined, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1049
+ new(stream: Stream, encoding: Encoding | undefined, detectEncodingFromByteOrderMarks: boolean, bufferSize: int, leaveOpen: boolean): StreamReader;
1050
1050
  new(path: string): StreamReader;
1051
1051
  new(path: string, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1052
- new(path: string, encoding: Encoding): StreamReader;
1053
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1054
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1052
+ new(path: string, encoding: Encoding | undefined): StreamReader;
1053
+ new(path: string, encoding: Encoding | undefined, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1054
+ new(path: string, encoding: Encoding | undefined, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1055
1055
  new(path: string, options: FileStreamOptions): StreamReader;
1056
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, options: FileStreamOptions): StreamReader;
1056
+ new(path: string, encoding: Encoding | undefined, detectEncodingFromByteOrderMarks: boolean, options: FileStreamOptions): StreamReader;
1057
1057
  };
1058
1058
 
1059
1059
 
@@ -1079,7 +1079,7 @@ export interface StreamWriter$instance extends TextWriter$instance {
1079
1079
  write(buffer: char[], index: int, count: int): void;
1080
1080
  write(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1081
1081
  write(value: string): void;
1082
- write(format: string, arg0: unknown): void;
1082
+ write(format: string, arg0: unknown | undefined): void;
1083
1083
  write(format: string, arg0: unknown, arg1: unknown): void;
1084
1084
  write(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1085
1085
  write(format: string, ...arg: unknown[]): void;
@@ -1097,15 +1097,15 @@ export interface StreamWriter$instance extends TextWriter$instance {
1097
1097
  write(value: StringBuilder): void;
1098
1098
  write(format: string, arg: ReadOnlySpan_1<unknown>): void;
1099
1099
  writeAsync(value: char): Task;
1100
- writeAsync(value: string): Task;
1100
+ writeAsync(value: string | undefined): Task;
1101
1101
  writeAsync(buffer: char[], index: int, count: int): Task;
1102
1102
  writeAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1103
- writeAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1104
- writeAsync(buffer: char[]): Task;
1103
+ writeAsync(value: StringBuilder | undefined, cancellationToken?: CancellationToken): Task;
1104
+ writeAsync(buffer: char[] | undefined): Task;
1105
1105
  writeAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1106
1106
  writeLine(value: string): void;
1107
1107
  writeLine(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1108
- writeLine(format: string, arg0: unknown): void;
1108
+ writeLine(format: string, arg0: unknown | undefined): void;
1109
1109
  writeLine(format: string, arg0: unknown, arg1: unknown): void;
1110
1110
  writeLine(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1111
1111
  writeLine(format: string, ...arg: unknown[]): void;
@@ -1128,26 +1128,26 @@ export interface StreamWriter$instance extends TextWriter$instance {
1128
1128
  writeLine(format: string, arg: ReadOnlySpan_1<unknown>): void;
1129
1129
  writeLineAsync(): Task;
1130
1130
  writeLineAsync(value: char): Task;
1131
- writeLineAsync(value: string): Task;
1131
+ writeLineAsync(value: string | undefined): Task;
1132
1132
  writeLineAsync(buffer: char[], index: int, count: int): Task;
1133
1133
  writeLineAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1134
- writeLineAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1135
- writeLineAsync(buffer: char[]): Task;
1134
+ writeLineAsync(value: StringBuilder | undefined, cancellationToken?: CancellationToken): Task;
1135
+ writeLineAsync(buffer: char[] | undefined): Task;
1136
1136
  writeLineAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1137
1137
  }
1138
1138
 
1139
1139
 
1140
1140
  export const StreamWriter: {
1141
1141
  new(stream: Stream): StreamWriter;
1142
- new(stream: Stream, encoding: Encoding): StreamWriter;
1143
- new(stream: Stream, encoding: Encoding, bufferSize: int): StreamWriter;
1144
- new(stream: Stream, encoding: Encoding, bufferSize: int, leaveOpen: boolean): StreamWriter;
1142
+ new(stream: Stream, encoding: Encoding | undefined): StreamWriter;
1143
+ new(stream: Stream, encoding: Encoding | undefined, bufferSize: int): StreamWriter;
1144
+ new(stream: Stream, encoding: Encoding | undefined, bufferSize: int, leaveOpen: boolean): StreamWriter;
1145
1145
  new(path: string): StreamWriter;
1146
1146
  new(path: string, append: boolean): StreamWriter;
1147
- new(path: string, append: boolean, encoding: Encoding): StreamWriter;
1148
- new(path: string, append: boolean, encoding: Encoding, bufferSize: int): StreamWriter;
1147
+ new(path: string, append: boolean, encoding: Encoding | undefined): StreamWriter;
1148
+ new(path: string, append: boolean, encoding: Encoding | undefined, bufferSize: int): StreamWriter;
1149
1149
  new(path: string, options: FileStreamOptions): StreamWriter;
1150
- new(path: string, encoding: Encoding, options: FileStreamOptions): StreamWriter;
1150
+ new(path: string, encoding: Encoding | undefined, options: FileStreamOptions): StreamWriter;
1151
1151
  };
1152
1152
 
1153
1153
 
@@ -1179,9 +1179,9 @@ export interface StringReader$instance extends TextReader$instance {
1179
1179
  readBlockAsync(buffer: char[], index: int, count: int): Task_1<System_Internal.Int32>;
1180
1180
  readBlockAsync(buffer: Memory_1<System_Internal.Char>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1181
1181
  readLine(): string;
1182
- readLineAsync(): Task_1<System_Internal.String>;
1182
+ readLineAsync(): Task_1<string | undefined>;
1183
1183
  readLineAsync(cancellationToken: CancellationToken): ValueTask_1<System_Internal.String>;
1184
- readLineAsync(): Task_1<System_Internal.String>;
1184
+ readLineAsync(): Task_1<string | undefined>;
1185
1185
  readLineAsync(cancellationToken: CancellationToken): ValueTask_1<System_Internal.String>;
1186
1186
  readToEnd(): string;
1187
1187
  readToEndAsync(): Task_1<System_Internal.String>;
@@ -1228,17 +1228,17 @@ export interface StringWriter$instance extends TextWriter$instance {
1228
1228
  write(value: double): void;
1229
1229
  write(value: decimal): void;
1230
1230
  write(value: unknown): void;
1231
- write(format: string, arg0: unknown): void;
1231
+ write(format: string, arg0: unknown | undefined): void;
1232
1232
  write(format: string, arg0: unknown, arg1: unknown): void;
1233
1233
  write(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1234
1234
  write(format: string, ...arg: unknown[]): void;
1235
1235
  write(format: string, arg: ReadOnlySpan_1<unknown>): void;
1236
1236
  writeAsync(value: char): Task;
1237
- writeAsync(value: string): Task;
1237
+ writeAsync(value: string | undefined): Task;
1238
1238
  writeAsync(buffer: char[], index: int, count: int): Task;
1239
1239
  writeAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1240
- writeAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1241
- writeAsync(buffer: char[]): Task;
1240
+ writeAsync(value: StringBuilder | undefined, cancellationToken?: CancellationToken): Task;
1241
+ writeAsync(buffer: char[] | undefined): Task;
1242
1242
  writeAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1243
1243
  writeLine(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1244
1244
  writeLine(value: StringBuilder): void;
@@ -1257,17 +1257,17 @@ export interface StringWriter$instance extends TextWriter$instance {
1257
1257
  writeLine(value: decimal): void;
1258
1258
  writeLine(value: string): void;
1259
1259
  writeLine(value: unknown): void;
1260
- writeLine(format: string, arg0: unknown): void;
1260
+ writeLine(format: string, arg0: unknown | undefined): void;
1261
1261
  writeLine(format: string, arg0: unknown, arg1: unknown): void;
1262
1262
  writeLine(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1263
1263
  writeLine(format: string, ...arg: unknown[]): void;
1264
1264
  writeLine(format: string, arg: ReadOnlySpan_1<unknown>): void;
1265
1265
  writeLineAsync(value: char): Task;
1266
- writeLineAsync(value: string): Task;
1267
- writeLineAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1266
+ writeLineAsync(value: string | undefined): Task;
1267
+ writeLineAsync(value: StringBuilder | undefined, cancellationToken?: CancellationToken): Task;
1268
1268
  writeLineAsync(buffer: char[], index: int, count: int): Task;
1269
1269
  writeLineAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1270
- writeLineAsync(buffer: char[]): Task;
1270
+ writeLineAsync(buffer: char[] | undefined): Task;
1271
1271
  writeLineAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1272
1272
  writeLineAsync(): Task;
1273
1273
  }
@@ -1277,7 +1277,7 @@ export const StringWriter: {
1277
1277
  new(): StringWriter;
1278
1278
  new(formatProvider: IFormatProvider): StringWriter;
1279
1279
  new(sb: StringBuilder): StringWriter;
1280
- new(sb: StringBuilder, formatProvider: IFormatProvider): StringWriter;
1280
+ new(sb: StringBuilder, formatProvider: IFormatProvider | undefined): StringWriter;
1281
1281
  };
1282
1282
 
1283
1283
 
@@ -1303,7 +1303,7 @@ export interface TextReader$instance extends MarshalByRefObject {
1303
1303
  readBlockAsync(buffer: char[], index: int, count: int): Task_1<System_Internal.Int32>;
1304
1304
  readBlockAsync(buffer: Memory_1<System_Internal.Char>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1305
1305
  readLine(): string;
1306
- readLineAsync(): Task_1<System_Internal.String>;
1306
+ readLineAsync(): Task_1<string | undefined>;
1307
1307
  readLineAsync(cancellationToken: CancellationToken): ValueTask_1<System_Internal.String>;
1308
1308
  readToEnd(): string;
1309
1309
  readToEndAsync(): Task_1<System_Internal.String>;
@@ -1351,15 +1351,15 @@ export interface TextWriter$instance extends MarshalByRefObject {
1351
1351
  write(value: string): void;
1352
1352
  write(value: unknown): void;
1353
1353
  write(value: StringBuilder): void;
1354
- write(format: string, arg0: unknown): void;
1354
+ write(format: string, arg0: unknown | undefined): void;
1355
1355
  write(format: string, arg0: unknown, arg1: unknown): void;
1356
1356
  write(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1357
1357
  write(format: string, ...arg: unknown[]): void;
1358
1358
  write(format: string, arg: ReadOnlySpan_1<unknown>): void;
1359
1359
  writeAsync(value: char): Task;
1360
- writeAsync(value: string): Task;
1361
- writeAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1362
- writeAsync(buffer: char[]): Task;
1360
+ writeAsync(value: string | undefined): Task;
1361
+ writeAsync(value: StringBuilder | undefined, cancellationToken?: CancellationToken): Task;
1362
+ writeAsync(buffer: char[] | undefined): Task;
1363
1363
  writeAsync(buffer: char[], index: int, count: int): Task;
1364
1364
  writeAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1365
1365
  writeLine(): void;
@@ -1378,15 +1378,15 @@ export interface TextWriter$instance extends MarshalByRefObject {
1378
1378
  writeLine(value: string): void;
1379
1379
  writeLine(value: StringBuilder): void;
1380
1380
  writeLine(value: unknown): void;
1381
- writeLine(format: string, arg0: unknown): void;
1381
+ writeLine(format: string, arg0: unknown | undefined): void;
1382
1382
  writeLine(format: string, arg0: unknown, arg1: unknown): void;
1383
1383
  writeLine(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1384
1384
  writeLine(format: string, ...arg: unknown[]): void;
1385
1385
  writeLine(format: string, arg: ReadOnlySpan_1<unknown>): void;
1386
1386
  writeLineAsync(value: char): Task;
1387
- writeLineAsync(value: string): Task;
1388
- writeLineAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1389
- writeLineAsync(buffer: char[]): Task;
1387
+ writeLineAsync(value: string | undefined): Task;
1388
+ writeLineAsync(value: StringBuilder | undefined, cancellationToken?: CancellationToken): Task;
1389
+ writeLineAsync(buffer: char[] | undefined): Task;
1390
1390
  writeLineAsync(buffer: char[], index: int, count: int): Task;
1391
1391
  writeLineAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1392
1392
  writeLineAsync(): Task;
@@ -1518,7 +1518,7 @@ export abstract class Directory$instance {
1518
1518
  static createDirectory(path: string, unixCreateMode: UnixFileMode): DirectoryInfo;
1519
1519
  static createDirectory(path: string): DirectoryInfo;
1520
1520
  static createSymbolicLink(path: string, pathToTarget: string): FileSystemInfo;
1521
- static createTempSubdirectory(prefix?: string): DirectoryInfo;
1521
+ static createTempSubdirectory(prefix?: string | undefined): DirectoryInfo;
1522
1522
  static delete_(path: string, recursive: boolean): void;
1523
1523
  static delete_(path: string): void;
1524
1524
  static enumerateDirectories(path: string, searchPattern: string, enumerationOptions: EnumerationOptions): IEnumerable_1<System_Internal.String>;
@@ -1555,9 +1555,9 @@ export abstract class Directory$instance {
1555
1555
  static getLastWriteTime(path: string): DateTime;
1556
1556
  static getLastWriteTimeUtc(path: string): DateTime;
1557
1557
  static getLogicalDrives(): string[];
1558
- static getParent(path: string): DirectoryInfo;
1558
+ static getParent(path: string): DirectoryInfo | undefined;
1559
1559
  static move(sourceDirName: string, destDirName: string): void;
1560
- static resolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo;
1560
+ static resolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo | undefined;
1561
1561
  static setCreationTime(path: string, creationTime: DateTime): void;
1562
1562
  static setCreationTimeUtc(path: string, creationTimeUtc: DateTime): void;
1563
1563
  static setCurrentDirectory(path: string): void;
@@ -1581,12 +1581,12 @@ export abstract class File$instance {
1581
1581
  static appendAllLinesAsync(path: string, contents: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): Task;
1582
1582
  static appendAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>, encoding: Encoding): void;
1583
1583
  static appendAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>): void;
1584
- static appendAllText(path: string, contents: string, encoding: Encoding): void;
1585
- static appendAllText(path: string, contents: string): void;
1584
+ static appendAllText(path: string, contents: string | undefined, encoding: Encoding): void;
1585
+ static appendAllText(path: string, contents: string | undefined): void;
1586
1586
  static appendAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1587
1587
  static appendAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1588
- static appendAllTextAsync(path: string, contents: string, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1589
- static appendAllTextAsync(path: string, contents: string, cancellationToken?: CancellationToken): Task;
1588
+ static appendAllTextAsync(path: string, contents: string | undefined, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1589
+ static appendAllTextAsync(path: string, contents: string | undefined, cancellationToken?: CancellationToken): Task;
1590
1590
  static appendText(path: string): StreamWriter;
1591
1591
  static copy(sourceFileName: string, destFileName: string, overwrite: boolean): void;
1592
1592
  static copy(sourceFileName: string, destFileName: string): void;
@@ -1639,9 +1639,9 @@ export abstract class File$instance {
1639
1639
  static readLines(path: string): IEnumerable_1<System_Internal.String>;
1640
1640
  static readLinesAsync(path: string, encoding: Encoding, cancellationToken?: CancellationToken): IAsyncEnumerable_1<System_Internal.String>;
1641
1641
  static readLinesAsync(path: string, cancellationToken?: CancellationToken): IAsyncEnumerable_1<System_Internal.String>;
1642
- static replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string, ignoreMetadataErrors: boolean): void;
1643
- static replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string): void;
1644
- static resolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo;
1642
+ static replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string | undefined, ignoreMetadataErrors: boolean): void;
1643
+ static replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string | undefined): void;
1644
+ static resolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo | undefined;
1645
1645
  static setAttributes(fileHandle: SafeFileHandle, fileAttributes: FileAttributes): void;
1646
1646
  static setAttributes(path: string, fileAttributes: FileAttributes): void;
1647
1647
  static setCreationTime(fileHandle: SafeFileHandle, creationTime: DateTime): void;
@@ -1670,12 +1670,12 @@ export abstract class File$instance {
1670
1670
  static writeAllLinesAsync(path: string, contents: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): Task;
1671
1671
  static writeAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>, encoding: Encoding): void;
1672
1672
  static writeAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>): void;
1673
- static writeAllText(path: string, contents: string, encoding: Encoding): void;
1674
- static writeAllText(path: string, contents: string): void;
1673
+ static writeAllText(path: string, contents: string | undefined, encoding: Encoding): void;
1674
+ static writeAllText(path: string, contents: string | undefined): void;
1675
1675
  static writeAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1676
1676
  static writeAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1677
- static writeAllTextAsync(path: string, contents: string, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1678
- static writeAllTextAsync(path: string, contents: string, cancellationToken?: CancellationToken): Task;
1677
+ static writeAllTextAsync(path: string, contents: string | undefined, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1678
+ static writeAllTextAsync(path: string, contents: string | undefined, cancellationToken?: CancellationToken): Task;
1679
1679
  }
1680
1680
 
1681
1681
 
@@ -1683,7 +1683,7 @@ export type File = File$instance;
1683
1683
 
1684
1684
  export abstract class FileSystemAclExtensions$instance {
1685
1685
  static create(directoryInfo: DirectoryInfo, directorySecurity: DirectorySecurity): void;
1686
- static create(fileInfo: FileInfo, mode: FileMode, rights: FileSystemRights, share: FileShare, bufferSize: int, options: FileOptions, fileSecurity: FileSecurity): FileStream;
1686
+ static create(fileInfo: FileInfo, mode: FileMode, rights: FileSystemRights, share: FileShare, bufferSize: int, options: FileOptions, fileSecurity: FileSecurity | undefined): FileStream;
1687
1687
  static createDirectory(directorySecurity: DirectorySecurity, path: string): DirectoryInfo;
1688
1688
  static getAccessControl(directoryInfo: DirectoryInfo, includeSections: AccessControlSections): DirectorySecurity;
1689
1689
  static getAccessControl(directoryInfo: DirectoryInfo): DirectorySecurity;