@tsonic/dotnet 0.8.0 → 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 (137) hide show
  1. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +21 -21
  2. package/Microsoft.VisualBasic/internal/index.d.ts +24 -24
  3. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +30 -30
  4. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +16 -16
  5. package/Microsoft.Win32/internal/index.d.ts +12 -12
  6. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +19 -19
  7. package/System/bindings.json +114 -114
  8. package/System/internal/index.d.ts +1277 -1289
  9. package/System/internal/metadata.json +73 -73
  10. package/System.Buffers/internal/index.d.ts +13 -13
  11. package/System.CodeDom.Compiler/internal/index.d.ts +13 -13
  12. package/System.Collections/internal/index.d.ts +66 -68
  13. package/System.Collections.Concurrent/internal/index.d.ts +24 -24
  14. package/System.Collections.Frozen/bindings.json +20 -20
  15. package/System.Collections.Frozen/internal/index.d.ts +10 -10
  16. package/System.Collections.Frozen/internal/metadata.json +10 -10
  17. package/System.Collections.Generic/bindings.json +44 -20
  18. package/System.Collections.Generic/internal/index.d.ts +141 -133
  19. package/System.Collections.Generic/internal/metadata.json +26 -10
  20. package/System.Collections.Immutable/internal/index.d.ts +121 -121
  21. package/System.Collections.ObjectModel/internal/index.d.ts +23 -23
  22. package/System.Collections.Specialized/internal/index.d.ts +85 -87
  23. package/System.ComponentModel/internal/index.d.ts +595 -597
  24. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +105 -105
  25. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +9 -9
  26. package/System.ComponentModel.Design/internal/index.d.ts +90 -90
  27. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +37 -37
  28. package/System.Data/internal/index.d.ts +225 -225
  29. package/System.Data.Common/internal/index.d.ts +62 -62
  30. package/System.Data.SqlTypes/internal/index.d.ts +73 -73
  31. package/System.Diagnostics/internal/index.d.ts +343 -343
  32. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +50 -50
  33. package/System.Diagnostics.Contracts/internal/index.d.ts +20 -20
  34. package/System.Diagnostics.Metrics/internal/index.d.ts +46 -46
  35. package/System.Diagnostics.SymbolStore/internal/index.d.ts +9 -9
  36. package/System.Diagnostics.Tracing/internal/index.d.ts +44 -44
  37. package/System.Drawing/internal/index.d.ts +99 -99
  38. package/System.Dynamic/internal/index.d.ts +33 -33
  39. package/System.Formats.Asn1/internal/index.d.ts +12 -12
  40. package/System.Formats.Tar/internal/index.d.ts +17 -17
  41. package/System.Globalization/internal/index.d.ts +51 -51
  42. package/System.IO/internal/index.d.ts +172 -172
  43. package/System.IO.Compression/internal/index.d.ts +56 -56
  44. package/System.IO.Enumeration/internal/index.d.ts +6 -6
  45. package/System.IO.IsolatedStorage/internal/index.d.ts +17 -17
  46. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -11
  47. package/System.IO.Pipelines/internal/index.d.ts +13 -13
  48. package/System.IO.Pipes/internal/index.d.ts +32 -32
  49. package/System.Linq/internal/index.d.ts +187 -187
  50. package/System.Linq.Expressions/internal/index.d.ts +203 -203
  51. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +3 -3
  52. package/System.Net/internal/index.d.ts +218 -220
  53. package/System.Net.Cache/internal/index.d.ts +10 -10
  54. package/System.Net.Http/internal/index.d.ts +89 -89
  55. package/System.Net.Http.Headers/internal/index.d.ts +86 -86
  56. package/System.Net.Http.Json/internal/index.d.ts +59 -59
  57. package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
  58. package/System.Net.Mail/internal/index.d.ts +92 -92
  59. package/System.Net.Mime/internal/index.d.ts +6 -6
  60. package/System.Net.NetworkInformation/internal/index.d.ts +39 -39
  61. package/System.Net.Quic/internal/index.d.ts +13 -13
  62. package/System.Net.Security/internal/index.d.ts +70 -70
  63. package/System.Net.ServerSentEvents/internal/index.d.ts +3 -3
  64. package/System.Net.Sockets/internal/index.d.ts +94 -94
  65. package/System.Net.WebSockets/internal/index.d.ts +46 -46
  66. package/System.Numerics/bindings.json +384 -0
  67. package/System.Numerics/internal/index.d.ts +128 -130
  68. package/System.Numerics/internal/metadata.json +256 -0
  69. package/System.Reflection/internal/index.d.ts +271 -271
  70. package/System.Reflection.Emit/internal/index.d.ts +123 -123
  71. package/System.Reflection.Metadata/bindings.json +48 -0
  72. package/System.Reflection.Metadata/internal/index.d.ts +179 -179
  73. package/System.Reflection.Metadata/internal/metadata.json +32 -0
  74. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +40 -40
  75. package/System.Reflection.PortableExecutable/internal/index.d.ts +26 -26
  76. package/System.Resources/internal/index.d.ts +38 -38
  77. package/System.Runtime/internal/index.d.ts +9 -9
  78. package/System.Runtime.CompilerServices/internal/index.d.ts +168 -168
  79. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +2 -2
  80. package/System.Runtime.ExceptionServices/internal/index.d.ts +3 -3
  81. package/System.Runtime.InteropServices/bindings.json +22 -22
  82. package/System.Runtime.InteropServices/internal/index.d.ts +184 -184
  83. package/System.Runtime.InteropServices/internal/metadata.json +13 -13
  84. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +30 -30
  85. package/System.Runtime.InteropServices.Java/internal/index.d.ts +3 -3
  86. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +50 -50
  87. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +63 -63
  88. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +1 -1
  89. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
  90. package/System.Runtime.Intrinsics/internal/index.d.ts +4 -4
  91. package/System.Runtime.Loader/internal/index.d.ts +9 -9
  92. package/System.Runtime.Remoting/internal/index.d.ts +2 -2
  93. package/System.Runtime.Serialization/internal/index.d.ts +113 -115
  94. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +19 -19
  95. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
  96. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -5
  97. package/System.Runtime.Serialization.Json/internal/index.d.ts +28 -28
  98. package/System.Runtime.Versioning/internal/index.d.ts +22 -22
  99. package/System.Security/internal/index.d.ts +63 -63
  100. package/System.Security.AccessControl/internal/index.d.ts +84 -84
  101. package/System.Security.Authentication/internal/index.d.ts +6 -6
  102. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +13 -13
  103. package/System.Security.Claims/internal/index.d.ts +38 -40
  104. package/System.Security.Cryptography/internal/index.d.ts +378 -378
  105. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +172 -172
  106. package/System.Security.Permissions/internal/index.d.ts +1 -1
  107. package/System.Security.Policy/internal/index.d.ts +6 -6
  108. package/System.Security.Principal/internal/index.d.ts +29 -31
  109. package/System.Text/internal/index.d.ts +94 -94
  110. package/System.Text.Encodings.Web/internal/index.d.ts +3 -3
  111. package/System.Text.Json/internal/index.d.ts +103 -103
  112. package/System.Text.Json.Nodes/internal/index.d.ts +73 -73
  113. package/System.Text.Json.Schema/internal/index.d.ts +7 -7
  114. package/System.Text.Json.Serialization/internal/index.d.ts +34 -34
  115. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +57 -57
  116. package/System.Text.RegularExpressions/internal/index.d.ts +29 -29
  117. package/System.Text.Unicode/internal/index.d.ts +6 -6
  118. package/System.Threading/internal/index.d.ts +160 -160
  119. package/System.Threading.Channels/internal/index.d.ts +12 -12
  120. package/System.Threading.Tasks/internal/index.d.ts +125 -135
  121. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +54 -51
  122. package/System.Threading.Tasks.Sources/internal/index.d.ts +5 -5
  123. package/System.Timers/internal/index.d.ts +8 -8
  124. package/System.Transactions/internal/index.d.ts +51 -51
  125. package/System.Web/internal/index.d.ts +32 -32
  126. package/System.Windows.Input/internal/index.d.ts +2 -2
  127. package/System.Windows.Markup/internal/index.d.ts +2 -2
  128. package/System.Xml/internal/index.d.ts +281 -281
  129. package/System.Xml.Linq/internal/index.d.ts +76 -76
  130. package/System.Xml.Resolvers/internal/index.d.ts +8 -8
  131. package/System.Xml.Schema/internal/index.d.ts +173 -173
  132. package/System.Xml.Serialization/internal/index.d.ts +200 -200
  133. package/System.Xml.XPath/internal/index.d.ts +28 -28
  134. package/System.Xml.Xsl/internal/index.d.ts +53 -53
  135. package/System.Xml.Xsl.Runtime/internal/index.d.ts +72 -72
  136. package/__internal/extensions/index.d.ts +415 -414
  137. package/package.json +1 -1
@@ -178,13 +178,13 @@ 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
 
185
185
 
186
186
  export const WaitForChangedResult: {
187
- new(): WaitForChangedResult$instance;
187
+ new(): WaitForChangedResult;
188
188
  };
189
189
 
190
190
 
@@ -224,9 +224,9 @@ export interface BinaryReader$instance {
224
224
 
225
225
 
226
226
  export const BinaryReader: {
227
- new(input: Stream): BinaryReader$instance;
228
- new(input: Stream, encoding: Encoding): BinaryReader$instance;
229
- new(input: Stream, encoding: Encoding, leaveOpen: boolean): BinaryReader$instance;
227
+ new(input: Stream): BinaryReader;
228
+ new(input: Stream, encoding: Encoding): BinaryReader;
229
+ new(input: Stream, encoding: Encoding, leaveOpen: boolean): BinaryReader;
230
230
  };
231
231
 
232
232
 
@@ -273,9 +273,9 @@ export interface BinaryWriter$instance {
273
273
 
274
274
 
275
275
  export const BinaryWriter: {
276
- new(output: Stream): BinaryWriter$instance;
277
- new(output: Stream, encoding: Encoding): BinaryWriter$instance;
278
- new(output: Stream, encoding: Encoding, leaveOpen: boolean): BinaryWriter$instance;
276
+ new(output: Stream): BinaryWriter;
277
+ new(output: Stream, encoding: Encoding): BinaryWriter;
278
+ new(output: Stream, encoding: Encoding, leaveOpen: boolean): BinaryWriter;
279
279
  readonly null_: BinaryWriter;
280
280
  };
281
281
 
@@ -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;
@@ -336,8 +336,8 @@ export interface BufferedStream$instance extends Stream$instance {
336
336
 
337
337
 
338
338
  export const BufferedStream: {
339
- new(stream: Stream): BufferedStream$instance;
340
- new(stream: Stream, bufferSize: int): BufferedStream$instance;
339
+ new(stream: Stream): BufferedStream;
340
+ new(stream: Stream, bufferSize: int): BufferedStream;
341
341
  };
342
342
 
343
343
 
@@ -387,7 +387,7 @@ export interface DirectoryInfo$instance extends FileSystemInfo$instance {
387
387
 
388
388
 
389
389
  export const DirectoryInfo: {
390
- new(path: string): DirectoryInfo$instance;
390
+ new(path: string): DirectoryInfo;
391
391
  };
392
392
 
393
393
 
@@ -404,9 +404,9 @@ export interface DirectoryNotFoundException$instance extends IOException$instanc
404
404
 
405
405
 
406
406
  export const DirectoryNotFoundException: {
407
- new(): DirectoryNotFoundException$instance;
408
- new(message: string): DirectoryNotFoundException$instance;
409
- new(message: string, innerException: Exception): DirectoryNotFoundException$instance;
407
+ new(): DirectoryNotFoundException;
408
+ new(message: string | undefined): DirectoryNotFoundException;
409
+ new(message: string | undefined, innerException: Exception | undefined): DirectoryNotFoundException;
410
410
  };
411
411
 
412
412
 
@@ -432,7 +432,7 @@ export interface DriveInfo$instance {
432
432
 
433
433
 
434
434
  export const DriveInfo: {
435
- new(driveName: string): DriveInfo$instance;
435
+ new(driveName: string): DriveInfo;
436
436
  getDrives(): DriveInfo[];
437
437
  };
438
438
 
@@ -452,9 +452,9 @@ export interface DriveNotFoundException$instance extends IOException$instance {
452
452
 
453
453
 
454
454
  export const DriveNotFoundException: {
455
- new(): DriveNotFoundException$instance;
456
- new(message: string): DriveNotFoundException$instance;
457
- new(message: string, innerException: Exception): DriveNotFoundException$instance;
455
+ new(): DriveNotFoundException;
456
+ new(message: string | undefined): DriveNotFoundException;
457
+ new(message: string | undefined, innerException: Exception | undefined): DriveNotFoundException;
458
458
  };
459
459
 
460
460
 
@@ -471,9 +471,9 @@ export interface EndOfStreamException$instance extends IOException$instance {
471
471
 
472
472
 
473
473
  export const EndOfStreamException: {
474
- new(): EndOfStreamException$instance;
475
- new(message: string): EndOfStreamException$instance;
476
- new(message: string, innerException: Exception): EndOfStreamException$instance;
474
+ new(): EndOfStreamException;
475
+ new(message: string | undefined): EndOfStreamException;
476
+ new(message: string | undefined, innerException: Exception | undefined): EndOfStreamException;
477
477
  };
478
478
 
479
479
 
@@ -497,7 +497,7 @@ export interface EnumerationOptions$instance {
497
497
 
498
498
 
499
499
  export const EnumerationOptions: {
500
- new(): EnumerationOptions$instance;
500
+ new(): EnumerationOptions;
501
501
  };
502
502
 
503
503
 
@@ -509,15 +509,15 @@ export interface ErrorEventArgs$instance extends EventArgs {
509
509
 
510
510
 
511
511
  export const ErrorEventArgs: {
512
- new(exception: Exception): ErrorEventArgs$instance;
512
+ new(exception: Exception): ErrorEventArgs;
513
513
  };
514
514
 
515
515
 
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,13 +540,13 @@ 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
 
548
548
  export const FileInfo: {
549
- new(fileName: string): FileInfo$instance;
549
+ new(fileName: string): FileInfo;
550
550
  };
551
551
 
552
552
 
@@ -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
- new(): FileLoadException$instance;
571
- new(message: string): FileLoadException$instance;
572
- new(message: string, inner: Exception): FileLoadException$instance;
573
- new(message: string, fileName: string): FileLoadException$instance;
574
- new(message: string, fileName: string, inner: Exception): FileLoadException$instance;
570
+ new(): 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
- new(): FileNotFoundException$instance;
596
- new(message: string): FileNotFoundException$instance;
597
- new(message: string, innerException: Exception): FileNotFoundException$instance;
598
- new(message: string, fileName: string): FileNotFoundException$instance;
599
- new(message: string, fileName: string, innerException: Exception): FileNotFoundException$instance;
595
+ new(): 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;
@@ -657,20 +657,20 @@ export interface FileStream$instance extends Stream$instance {
657
657
 
658
658
 
659
659
  export const FileStream: {
660
- new(handle: nint, access: FileAccess): FileStream$instance;
661
- new(handle: nint, access: FileAccess, ownsHandle: boolean): FileStream$instance;
662
- new(handle: nint, access: FileAccess, ownsHandle: boolean, bufferSize: int): FileStream$instance;
663
- new(handle: nint, access: FileAccess, ownsHandle: boolean, bufferSize: int, isAsync: boolean): FileStream$instance;
664
- new(handle: SafeFileHandle, access: FileAccess): FileStream$instance;
665
- new(handle: SafeFileHandle, access: FileAccess, bufferSize: int): FileStream$instance;
666
- new(handle: SafeFileHandle, access: FileAccess, bufferSize: int, isAsync: boolean): FileStream$instance;
667
- new(path: string, mode: FileMode): FileStream$instance;
668
- new(path: string, mode: FileMode, access: FileAccess): FileStream$instance;
669
- new(path: string, mode: FileMode, access: FileAccess, share: FileShare): FileStream$instance;
670
- new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int): FileStream$instance;
671
- new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int, useAsync: boolean): FileStream$instance;
672
- new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int, options: FileOptions): FileStream$instance;
673
- new(path: string, options: FileStreamOptions): FileStream$instance;
660
+ new(handle: nint, access: FileAccess): FileStream;
661
+ new(handle: nint, access: FileAccess, ownsHandle: boolean): FileStream;
662
+ new(handle: nint, access: FileAccess, ownsHandle: boolean, bufferSize: int): FileStream;
663
+ new(handle: nint, access: FileAccess, ownsHandle: boolean, bufferSize: int, isAsync: boolean): FileStream;
664
+ new(handle: SafeFileHandle, access: FileAccess): FileStream;
665
+ new(handle: SafeFileHandle, access: FileAccess, bufferSize: int): FileStream;
666
+ new(handle: SafeFileHandle, access: FileAccess, bufferSize: int, isAsync: boolean): FileStream;
667
+ new(path: string, mode: FileMode): FileStream;
668
+ new(path: string, mode: FileMode, access: FileAccess): FileStream;
669
+ new(path: string, mode: FileMode, access: FileAccess, share: FileShare): FileStream;
670
+ new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int): FileStream;
671
+ new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int, useAsync: boolean): FileStream;
672
+ new(path: string, mode: FileMode, access: FileAccess, share: FileShare, bufferSize: int, options: FileOptions): FileStream;
673
+ new(path: string, options: FileStreamOptions): FileStream;
674
674
  };
675
675
 
676
676
 
@@ -694,7 +694,7 @@ export interface FileStreamOptions$instance {
694
694
 
695
695
 
696
696
  export const FileStreamOptions: {
697
- new(): FileStreamOptions$instance;
697
+ new(): FileStreamOptions;
698
698
  };
699
699
 
700
700
 
@@ -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$instance;
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;
@@ -770,9 +770,9 @@ export interface FileSystemWatcher$instance extends Component {
770
770
 
771
771
 
772
772
  export const FileSystemWatcher: {
773
- new(): FileSystemWatcher$instance;
774
- new(path: string): FileSystemWatcher$instance;
775
- new(path: string, filter: string): FileSystemWatcher$instance;
773
+ new(): FileSystemWatcher;
774
+ new(path: string | undefined): FileSystemWatcher;
775
+ new(path: string | undefined, filter: string | undefined): FileSystemWatcher;
776
776
  };
777
777
 
778
778
 
@@ -793,9 +793,9 @@ export interface InternalBufferOverflowException$instance extends SystemExceptio
793
793
 
794
794
 
795
795
  export const InternalBufferOverflowException: {
796
- new(): InternalBufferOverflowException$instance;
797
- new(message: string): InternalBufferOverflowException$instance;
798
- new(message: string, inner: Exception): InternalBufferOverflowException$instance;
796
+ new(): InternalBufferOverflowException;
797
+ new(message: string | undefined): InternalBufferOverflowException;
798
+ new(message: string | undefined, inner: Exception | undefined): InternalBufferOverflowException;
799
799
  };
800
800
 
801
801
 
@@ -812,9 +812,9 @@ export interface InvalidDataException$instance extends SystemException {
812
812
 
813
813
 
814
814
  export const InvalidDataException: {
815
- new(): InvalidDataException$instance;
816
- new(message: string): InvalidDataException$instance;
817
- new(message: string, innerException: Exception): InvalidDataException$instance;
815
+ new(): InvalidDataException;
816
+ new(message: string | undefined): InvalidDataException;
817
+ new(message: string | undefined, innerException: Exception | undefined): InvalidDataException;
818
818
  };
819
819
 
820
820
 
@@ -831,10 +831,10 @@ export interface IOException$instance extends SystemException {
831
831
 
832
832
 
833
833
  export const IOException: {
834
- new(): IOException$instance;
835
- new(message: string): IOException$instance;
836
- new(message: string, hresult: int): IOException$instance;
837
- new(message: string, innerException: Exception): IOException$instance;
834
+ new(): 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
 
@@ -890,13 +890,13 @@ export interface MemoryStream$instance extends Stream$instance {
890
890
 
891
891
 
892
892
  export const MemoryStream: {
893
- new(): MemoryStream$instance;
894
- new(capacity: int): MemoryStream$instance;
895
- new(buffer: byte[]): MemoryStream$instance;
896
- new(buffer: byte[], writable: boolean): MemoryStream$instance;
897
- new(buffer: byte[], index: int, count: int): MemoryStream$instance;
898
- new(buffer: byte[], index: int, count: int, writable: boolean): MemoryStream$instance;
899
- new(buffer: byte[], index: int, count: int, writable: boolean, publiclyVisible: boolean): MemoryStream$instance;
893
+ new(): MemoryStream;
894
+ new(capacity: int): MemoryStream;
895
+ new(buffer: byte[]): MemoryStream;
896
+ new(buffer: byte[], writable: boolean): MemoryStream;
897
+ new(buffer: byte[], index: int, count: int): MemoryStream;
898
+ new(buffer: byte[], index: int, count: int, writable: boolean): MemoryStream;
899
+ new(buffer: byte[], index: int, count: int, writable: boolean, publiclyVisible: boolean): MemoryStream;
900
900
  };
901
901
 
902
902
 
@@ -914,9 +914,9 @@ export interface PathTooLongException$instance extends IOException$instance {
914
914
 
915
915
 
916
916
  export const PathTooLongException: {
917
- new(): PathTooLongException$instance;
918
- new(message: string): PathTooLongException$instance;
919
- new(message: string, innerException: Exception): PathTooLongException$instance;
917
+ new(): 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$instance;
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>;
@@ -1041,19 +1041,19 @@ export interface StreamReader$instance extends TextReader$instance {
1041
1041
 
1042
1042
 
1043
1043
  export const StreamReader: {
1044
- new(stream: Stream): StreamReader$instance;
1045
- new(stream: Stream, detectEncodingFromByteOrderMarks: boolean): StreamReader$instance;
1046
- new(stream: Stream, encoding: Encoding): StreamReader$instance;
1047
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean): StreamReader$instance;
1048
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader$instance;
1049
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int, leaveOpen: boolean): StreamReader$instance;
1050
- new(path: string): StreamReader$instance;
1051
- new(path: string, detectEncodingFromByteOrderMarks: boolean): StreamReader$instance;
1052
- new(path: string, encoding: Encoding): StreamReader$instance;
1053
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean): StreamReader$instance;
1054
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader$instance;
1055
- new(path: string, options: FileStreamOptions): StreamReader$instance;
1056
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, options: FileStreamOptions): StreamReader$instance;
1044
+ new(stream: Stream): StreamReader;
1045
+ new(stream: Stream, detectEncodingFromByteOrderMarks: 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
+ new(path: string): StreamReader;
1051
+ new(path: string, detectEncodingFromByteOrderMarks: boolean): 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
+ new(path: string, 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
- new(stream: Stream): StreamWriter$instance;
1142
- new(stream: Stream, encoding: Encoding): StreamWriter$instance;
1143
- new(stream: Stream, encoding: Encoding, bufferSize: int): StreamWriter$instance;
1144
- new(stream: Stream, encoding: Encoding, bufferSize: int, leaveOpen: boolean): StreamWriter$instance;
1145
- new(path: string): StreamWriter$instance;
1146
- new(path: string, append: boolean): StreamWriter$instance;
1147
- new(path: string, append: boolean, encoding: Encoding): StreamWriter$instance;
1148
- new(path: string, append: boolean, encoding: Encoding, bufferSize: int): StreamWriter$instance;
1149
- new(path: string, options: FileStreamOptions): StreamWriter$instance;
1150
- new(path: string, encoding: Encoding, options: FileStreamOptions): StreamWriter$instance;
1141
+ new(stream: Stream): 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
+ new(path: string): StreamWriter;
1146
+ new(path: string, append: boolean): StreamWriter;
1147
+ new(path: string, append: boolean, encoding: Encoding | undefined): StreamWriter;
1148
+ new(path: string, append: boolean, encoding: Encoding | undefined, bufferSize: int): StreamWriter;
1149
+ new(path: string, 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>;
@@ -1192,7 +1192,7 @@ export interface StringReader$instance extends TextReader$instance {
1192
1192
 
1193
1193
 
1194
1194
  export const StringReader: {
1195
- new(s: string): StringReader$instance;
1195
+ new(s: string): StringReader;
1196
1196
  };
1197
1197
 
1198
1198
 
@@ -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,27 +1257,27 @@ 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
  }
1274
1274
 
1275
1275
 
1276
1276
  export const StringWriter: {
1277
- new(): StringWriter$instance;
1278
- new(formatProvider: IFormatProvider): StringWriter$instance;
1279
- new(sb: StringBuilder): StringWriter$instance;
1280
- new(sb: StringBuilder, formatProvider: IFormatProvider): StringWriter$instance;
1277
+ new(): StringWriter;
1278
+ new(formatProvider: IFormatProvider): StringWriter;
1279
+ new(sb: StringBuilder): 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;
@@ -1449,8 +1449,8 @@ export interface UnmanagedMemoryAccessor$instance {
1449
1449
 
1450
1450
 
1451
1451
  export const UnmanagedMemoryAccessor: {
1452
- new(buffer: SafeBuffer, offset: long, capacity: long): UnmanagedMemoryAccessor$instance;
1453
- new(buffer: SafeBuffer, offset: long, capacity: long, access: FileAccess): UnmanagedMemoryAccessor$instance;
1452
+ new(buffer: SafeBuffer, offset: long, capacity: long): UnmanagedMemoryAccessor;
1453
+ new(buffer: SafeBuffer, offset: long, capacity: long, access: FileAccess): UnmanagedMemoryAccessor;
1454
1454
  };
1455
1455
 
1456
1456
 
@@ -1499,10 +1499,10 @@ export interface UnmanagedMemoryStream$instance extends Stream$instance {
1499
1499
 
1500
1500
 
1501
1501
  export const UnmanagedMemoryStream: {
1502
- new(buffer: SafeBuffer, offset: long, length: long): UnmanagedMemoryStream$instance;
1503
- new(buffer: SafeBuffer, offset: long, length: long, access: FileAccess): UnmanagedMemoryStream$instance;
1504
- new(pointer: ptr<byte>, length: long): UnmanagedMemoryStream$instance;
1505
- new(pointer: ptr<byte>, length: long, capacity: long, access: FileAccess): UnmanagedMemoryStream$instance;
1502
+ new(buffer: SafeBuffer, offset: long, length: long): UnmanagedMemoryStream;
1503
+ new(buffer: SafeBuffer, offset: long, length: long, access: FileAccess): UnmanagedMemoryStream;
1504
+ new(pointer: ptr<byte>, length: long): UnmanagedMemoryStream;
1505
+ new(pointer: ptr<byte>, length: long, capacity: long, access: FileAccess): UnmanagedMemoryStream;
1506
1506
  };
1507
1507
 
1508
1508
 
@@ -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;