@tsonic/dotnet 10.0.40 → 10.0.42

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 (341) hide show
  1. package/Internal/bindings.json +5 -5
  2. package/Internal/internal/index.d.ts +4 -3
  3. package/Internal.d.ts +4 -0
  4. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
  5. package/Microsoft.CSharp.RuntimeBinder.d.ts +4 -0
  6. package/Microsoft.VisualBasic/bindings.json +13 -13
  7. package/Microsoft.VisualBasic/internal/index.d.ts +5 -7
  8. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +3 -5
  9. package/Microsoft.VisualBasic.CompilerServices.d.ts +4 -0
  10. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +4 -3
  11. package/Microsoft.VisualBasic.FileIO.d.ts +4 -0
  12. package/Microsoft.VisualBasic.d.ts +4 -0
  13. package/Microsoft.Win32/internal/index.d.ts +19 -18
  14. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
  15. package/Microsoft.Win32.SafeHandles.d.ts +4 -0
  16. package/Microsoft.Win32.d.ts +4 -0
  17. package/README.md +83 -104
  18. package/System/bindings.json +1858 -2297
  19. package/System/internal/index.d.ts +1972 -2010
  20. package/System.Buffers/bindings.json +12 -3
  21. package/System.Buffers/internal/index.d.ts +56 -58
  22. package/System.Buffers.Binary/internal/index.d.ts +2 -4
  23. package/System.Buffers.Binary.d.ts +4 -0
  24. package/System.Buffers.Text/internal/index.d.ts +2 -4
  25. package/System.Buffers.Text.d.ts +4 -0
  26. package/System.Buffers.d.ts +10 -6
  27. package/System.CodeDom.Compiler/internal/index.d.ts +31 -30
  28. package/System.CodeDom.Compiler.d.ts +4 -0
  29. package/System.Collections/bindings.json +300 -300
  30. package/System.Collections/internal/index.d.ts +90 -92
  31. package/System.Collections.Concurrent/bindings.json +311 -311
  32. package/System.Collections.Concurrent/internal/index.d.ts +83 -85
  33. package/System.Collections.Concurrent.d.ts +7 -3
  34. package/System.Collections.Frozen/bindings.json +490 -648
  35. package/System.Collections.Frozen/internal/index.d.ts +95 -109
  36. package/System.Collections.Frozen.d.ts +18 -2
  37. package/System.Collections.Generic/bindings.json +9628 -14043
  38. package/System.Collections.Generic/internal/index.d.ts +632 -827
  39. package/System.Collections.Generic.d.ts +20 -16
  40. package/System.Collections.Immutable/bindings.json +6134 -9214
  41. package/System.Collections.Immutable/internal/index.d.ts +414 -502
  42. package/System.Collections.Immutable.d.ts +58 -17
  43. package/System.Collections.ObjectModel/bindings.json +328 -850
  44. package/System.Collections.ObjectModel/internal/index.d.ts +42 -62
  45. package/System.Collections.ObjectModel.d.ts +6 -2
  46. package/System.Collections.Specialized/bindings.json +79 -202
  47. package/System.Collections.Specialized/internal/index.d.ts +72 -85
  48. package/System.Collections.Specialized.d.ts +4 -0
  49. package/System.Collections.d.ts +4 -0
  50. package/System.ComponentModel/bindings.json +271 -210
  51. package/System.ComponentModel/internal/index.d.ts +562 -547
  52. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +126 -125
  53. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
  54. package/System.ComponentModel.DataAnnotations.Schema.d.ts +4 -0
  55. package/System.ComponentModel.DataAnnotations.d.ts +4 -0
  56. package/System.ComponentModel.Design/bindings.json +40 -310
  57. package/System.ComponentModel.Design/internal/index.d.ts +85 -93
  58. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +42 -41
  59. package/System.ComponentModel.Design.Serialization.d.ts +4 -0
  60. package/System.ComponentModel.Design.d.ts +4 -0
  61. package/System.ComponentModel.d.ts +5 -0
  62. package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
  63. package/System.Configuration.Assemblies.d.ts +4 -0
  64. package/System.Data/bindings.json +128 -125
  65. package/System.Data/internal/index.d.ts +341 -340
  66. package/System.Data.Common/bindings.json +68 -68
  67. package/System.Data.Common/internal/index.d.ts +135 -136
  68. package/System.Data.Common.d.ts +4 -0
  69. package/System.Data.SqlTypes/internal/index.d.ts +55 -54
  70. package/System.Data.SqlTypes.d.ts +4 -0
  71. package/System.Data.d.ts +8 -4
  72. package/System.Diagnostics/bindings.json +6324 -6509
  73. package/System.Diagnostics/internal/index.d.ts +435 -437
  74. package/System.Diagnostics.CodeAnalysis/bindings.json +121 -121
  75. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
  76. package/System.Diagnostics.CodeAnalysis.d.ts +4 -0
  77. package/System.Diagnostics.Contracts/bindings.json +62 -62
  78. package/System.Diagnostics.Contracts/internal/index.d.ts +23 -25
  79. package/System.Diagnostics.Contracts.d.ts +4 -0
  80. package/System.Diagnostics.Metrics/internal/index.d.ts +82 -84
  81. package/System.Diagnostics.Metrics.d.ts +7 -3
  82. package/System.Diagnostics.SymbolStore/bindings.json +2 -2
  83. package/System.Diagnostics.SymbolStore/internal/index.d.ts +11 -10
  84. package/System.Diagnostics.SymbolStore.d.ts +4 -0
  85. package/System.Diagnostics.Tracing/bindings.json +291 -231
  86. package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
  87. package/System.Diagnostics.Tracing.d.ts +6 -1
  88. package/System.Diagnostics.d.ts +5 -1
  89. package/System.Drawing/internal/index.d.ts +76 -75
  90. package/System.Drawing.d.ts +4 -0
  91. package/System.Dynamic/bindings.json +13 -13
  92. package/System.Dynamic/internal/index.d.ts +35 -36
  93. package/System.Dynamic.d.ts +4 -0
  94. package/System.Formats.Asn1/bindings.json +48 -69
  95. package/System.Formats.Asn1/internal/index.d.ts +30 -37
  96. package/System.Formats.Asn1.d.ts +4 -0
  97. package/System.Formats.Tar/internal/index.d.ts +8 -7
  98. package/System.Formats.Tar.d.ts +4 -0
  99. package/System.Globalization/bindings.json +3 -3
  100. package/System.Globalization/internal/index.d.ts +35 -37
  101. package/System.Globalization.d.ts +4 -0
  102. package/System.IO/bindings.json +957 -957
  103. package/System.IO/internal/index.d.ts +183 -185
  104. package/System.IO.Compression/internal/index.d.ts +33 -35
  105. package/System.IO.Compression.d.ts +4 -0
  106. package/System.IO.Enumeration/bindings.json +402 -402
  107. package/System.IO.Enumeration/internal/index.d.ts +21 -23
  108. package/System.IO.Enumeration.d.ts +4 -0
  109. package/System.IO.IsolatedStorage/internal/index.d.ts +16 -15
  110. package/System.IO.IsolatedStorage.d.ts +4 -0
  111. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
  112. package/System.IO.MemoryMappedFiles.d.ts +4 -0
  113. package/System.IO.Pipelines/internal/index.d.ts +15 -17
  114. package/System.IO.Pipelines.d.ts +4 -0
  115. package/System.IO.Pipes/internal/index.d.ts +8 -7
  116. package/System.IO.Pipes.d.ts +4 -0
  117. package/System.IO.d.ts +4 -0
  118. package/System.Linq/bindings.json +22 -22
  119. package/System.Linq/internal/index.d.ts +705 -705
  120. package/System.Linq.Expressions/internal/index.d.ts +219 -195
  121. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
  122. package/System.Linq.Expressions.Interpreter.d.ts +4 -0
  123. package/System.Linq.Expressions.d.ts +6 -2
  124. package/System.Linq.d.ts +18 -14
  125. package/System.Net/bindings.json +131 -131
  126. package/System.Net/internal/index.d.ts +276 -278
  127. package/System.Net.Cache/internal/index.d.ts +3 -2
  128. package/System.Net.Cache.d.ts +4 -0
  129. package/System.Net.Http/bindings.json +22 -22
  130. package/System.Net.Http/internal/index.d.ts +128 -130
  131. package/System.Net.Http.Headers/bindings.json +36 -200
  132. package/System.Net.Http.Headers/internal/index.d.ts +114 -128
  133. package/System.Net.Http.Headers.d.ts +4 -0
  134. package/System.Net.Http.Json/internal/index.d.ts +67 -69
  135. package/System.Net.Http.Json.d.ts +4 -0
  136. package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
  137. package/System.Net.Http.Metrics.d.ts +4 -0
  138. package/System.Net.Http.d.ts +5 -1
  139. package/System.Net.Mail/bindings.json +96 -96
  140. package/System.Net.Mail/internal/index.d.ts +78 -80
  141. package/System.Net.Mail.d.ts +4 -0
  142. package/System.Net.Mime/internal/index.d.ts +11 -10
  143. package/System.Net.Mime.d.ts +4 -0
  144. package/System.Net.NetworkInformation/bindings.json +40 -40
  145. package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
  146. package/System.Net.NetworkInformation.d.ts +4 -0
  147. package/System.Net.Quic/internal/index.d.ts +11 -10
  148. package/System.Net.Quic.d.ts +4 -0
  149. package/System.Net.Security/internal/index.d.ts +90 -92
  150. package/System.Net.Security.d.ts +4 -0
  151. package/System.Net.ServerSentEvents/internal/index.d.ts +13 -12
  152. package/System.Net.ServerSentEvents.d.ts +7 -3
  153. package/System.Net.Sockets/internal/index.d.ts +91 -93
  154. package/System.Net.Sockets.d.ts +4 -0
  155. package/System.Net.WebSockets/bindings.json +101 -101
  156. package/System.Net.WebSockets/internal/index.d.ts +49 -48
  157. package/System.Net.WebSockets.d.ts +4 -0
  158. package/System.Net.d.ts +4 -0
  159. package/System.Numerics/bindings.json +547 -119
  160. package/System.Numerics/internal/index.d.ts +302 -304
  161. package/System.Numerics.d.ts +38 -34
  162. package/System.Reflection/bindings.json +870 -870
  163. package/System.Reflection/internal/index.d.ts +257 -259
  164. package/System.Reflection.Emit/bindings.json +754 -754
  165. package/System.Reflection.Emit/internal/index.d.ts +114 -114
  166. package/System.Reflection.Emit.d.ts +4 -0
  167. package/System.Reflection.Metadata/bindings.json +535 -3018
  168. package/System.Reflection.Metadata/internal/index.d.ts +188 -369
  169. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +16 -18
  170. package/System.Reflection.Metadata.Ecma335.d.ts +4 -0
  171. package/System.Reflection.Metadata.d.ts +9 -5
  172. package/System.Reflection.PortableExecutable/bindings.json +58 -0
  173. package/System.Reflection.PortableExecutable/internal/index.d.ts +25 -12
  174. package/System.Reflection.PortableExecutable.d.ts +5 -0
  175. package/System.Reflection.d.ts +4 -0
  176. package/System.Resources/bindings.json +3 -3
  177. package/System.Resources/internal/index.d.ts +33 -35
  178. package/System.Resources.d.ts +4 -0
  179. package/System.Runtime/bindings.json +9 -9
  180. package/System.Runtime/internal/index.d.ts +11 -10
  181. package/System.Runtime.CompilerServices/bindings.json +962 -1160
  182. package/System.Runtime.CompilerServices/internal/index.d.ts +280 -304
  183. package/System.Runtime.CompilerServices.d.ts +30 -16
  184. package/System.Runtime.ConstrainedExecution/bindings.json +9 -9
  185. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
  186. package/System.Runtime.ConstrainedExecution.d.ts +4 -0
  187. package/System.Runtime.ExceptionServices/bindings.json +9 -9
  188. package/System.Runtime.ExceptionServices/internal/index.d.ts +3 -2
  189. package/System.Runtime.ExceptionServices.d.ts +4 -0
  190. package/System.Runtime.InteropServices/bindings.json +666 -666
  191. package/System.Runtime.InteropServices/internal/index.d.ts +250 -252
  192. package/System.Runtime.InteropServices.ComTypes/bindings.json +349 -349
  193. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +22 -24
  194. package/System.Runtime.InteropServices.ComTypes.d.ts +4 -0
  195. package/System.Runtime.InteropServices.Java/bindings.json +12 -12
  196. package/System.Runtime.InteropServices.Java/internal/index.d.ts +3 -5
  197. package/System.Runtime.InteropServices.Java.d.ts +4 -0
  198. package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
  199. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +70 -72
  200. package/System.Runtime.InteropServices.JavaScript.d.ts +14 -28
  201. package/System.Runtime.InteropServices.Marshalling/bindings.json +2422 -2422
  202. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +317 -319
  203. package/System.Runtime.InteropServices.Marshalling.d.ts +4 -0
  204. package/System.Runtime.InteropServices.ObjectiveC/bindings.json +151 -151
  205. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +16 -18
  206. package/System.Runtime.InteropServices.ObjectiveC.d.ts +4 -0
  207. package/System.Runtime.InteropServices.Swift/bindings.json +4 -4
  208. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +5 -7
  209. package/System.Runtime.InteropServices.Swift.d.ts +6 -2
  210. package/System.Runtime.InteropServices.d.ts +6 -2
  211. package/System.Runtime.Intrinsics/bindings.json +64 -16
  212. package/System.Runtime.Intrinsics/internal/index.d.ts +515 -517
  213. package/System.Runtime.Intrinsics.Arm/bindings.json +31 -31
  214. package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
  215. package/System.Runtime.Intrinsics.Arm.d.ts +4 -0
  216. package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
  217. package/System.Runtime.Intrinsics.Wasm.d.ts +4 -0
  218. package/System.Runtime.Intrinsics.X86/bindings.json +38 -38
  219. package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
  220. package/System.Runtime.Intrinsics.X86.d.ts +4 -0
  221. package/System.Runtime.Intrinsics.d.ts +12 -8
  222. package/System.Runtime.Loader/bindings.json +48 -69
  223. package/System.Runtime.Loader/internal/index.d.ts +30 -34
  224. package/System.Runtime.Loader.d.ts +4 -0
  225. package/System.Runtime.Remoting/internal/index.d.ts +5 -4
  226. package/System.Runtime.Remoting.d.ts +4 -0
  227. package/System.Runtime.Serialization/bindings.json +13 -13
  228. package/System.Runtime.Serialization/internal/index.d.ts +124 -126
  229. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +28 -30
  230. package/System.Runtime.Serialization.DataContracts.d.ts +4 -0
  231. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
  232. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +8 -7
  233. package/System.Runtime.Serialization.Formatters.Binary.d.ts +4 -0
  234. package/System.Runtime.Serialization.Formatters.d.ts +4 -0
  235. package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
  236. package/System.Runtime.Serialization.Json.d.ts +4 -0
  237. package/System.Runtime.Serialization.d.ts +4 -0
  238. package/System.Runtime.Versioning/bindings.json +13 -13
  239. package/System.Runtime.Versioning/internal/index.d.ts +20 -19
  240. package/System.Runtime.Versioning.d.ts +4 -0
  241. package/System.Runtime.d.ts +4 -0
  242. package/System.Security/bindings.json +5 -5
  243. package/System.Security/internal/index.d.ts +64 -66
  244. package/System.Security.AccessControl/bindings.json +137 -33
  245. package/System.Security.AccessControl/internal/index.d.ts +62 -61
  246. package/System.Security.AccessControl.d.ts +13 -8
  247. package/System.Security.Authentication/internal/index.d.ts +7 -6
  248. package/System.Security.Authentication.ExtendedProtection/bindings.json +5 -5
  249. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
  250. package/System.Security.Authentication.ExtendedProtection.d.ts +4 -0
  251. package/System.Security.Authentication.d.ts +4 -0
  252. package/System.Security.Claims/internal/index.d.ts +45 -44
  253. package/System.Security.Claims.d.ts +4 -0
  254. package/System.Security.Cryptography/bindings.json +509 -509
  255. package/System.Security.Cryptography/internal/index.d.ts +268 -269
  256. package/System.Security.Cryptography.X509Certificates/bindings.json +312 -374
  257. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +96 -103
  258. package/System.Security.Cryptography.X509Certificates.d.ts +4 -0
  259. package/System.Security.Cryptography.d.ts +4 -0
  260. package/System.Security.Permissions/internal/index.d.ts +5 -4
  261. package/System.Security.Permissions.d.ts +4 -0
  262. package/System.Security.Policy/bindings.json +5 -5
  263. package/System.Security.Policy/internal/index.d.ts +9 -8
  264. package/System.Security.Policy.d.ts +4 -0
  265. package/System.Security.Principal/bindings.json +8 -8
  266. package/System.Security.Principal/internal/index.d.ts +30 -29
  267. package/System.Security.Principal.d.ts +4 -0
  268. package/System.Security.d.ts +4 -0
  269. package/System.Text/bindings.json +1577 -1577
  270. package/System.Text/internal/index.d.ts +121 -123
  271. package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
  272. package/System.Text.Encodings.Web.d.ts +4 -0
  273. package/System.Text.Json/bindings.json +0 -290
  274. package/System.Text.Json/internal/index.d.ts +143 -161
  275. package/System.Text.Json.Nodes/bindings.json +27 -27
  276. package/System.Text.Json.Nodes/internal/index.d.ts +63 -65
  277. package/System.Text.Json.Nodes.d.ts +4 -0
  278. package/System.Text.Json.Schema/internal/index.d.ts +9 -8
  279. package/System.Text.Json.Schema.d.ts +4 -0
  280. package/System.Text.Json.Serialization/internal/index.d.ts +37 -39
  281. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +120 -119
  282. package/System.Text.Json.Serialization.Metadata.d.ts +6 -2
  283. package/System.Text.Json.Serialization.d.ts +10 -6
  284. package/System.Text.Json.d.ts +4 -0
  285. package/System.Text.RegularExpressions/bindings.json +414 -578
  286. package/System.Text.RegularExpressions/internal/index.d.ts +48 -62
  287. package/System.Text.RegularExpressions.d.ts +4 -0
  288. package/System.Text.Unicode/bindings.json +508 -508
  289. package/System.Text.Unicode/internal/index.d.ts +29 -31
  290. package/System.Text.Unicode.d.ts +4 -0
  291. package/System.Text.d.ts +4 -0
  292. package/System.Threading/bindings.json +61 -61
  293. package/System.Threading/internal/index.d.ts +156 -158
  294. package/System.Threading.Channels/internal/index.d.ts +31 -33
  295. package/System.Threading.Channels.d.ts +8 -4
  296. package/System.Threading.Tasks/bindings.json +142 -39
  297. package/System.Threading.Tasks/internal/index.d.ts +250 -247
  298. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +121 -122
  299. package/System.Threading.Tasks.Dataflow.d.ts +18 -14
  300. package/System.Threading.Tasks.Sources/bindings.json +9 -9
  301. package/System.Threading.Tasks.Sources/internal/index.d.ts +11 -10
  302. package/System.Threading.Tasks.Sources.d.ts +6 -2
  303. package/System.Threading.Tasks.d.ts +12 -8
  304. package/System.Threading.d.ts +4 -0
  305. package/System.Timers/internal/index.d.ts +8 -7
  306. package/System.Timers.d.ts +4 -0
  307. package/System.Transactions/internal/index.d.ts +31 -30
  308. package/System.Transactions.d.ts +4 -0
  309. package/System.Web/internal/index.d.ts +32 -31
  310. package/System.Web.d.ts +4 -0
  311. package/System.Windows.Input/internal/index.d.ts +5 -4
  312. package/System.Windows.Input.d.ts +4 -0
  313. package/System.Windows.Markup/internal/index.d.ts +3 -2
  314. package/System.Windows.Markup.d.ts +4 -0
  315. package/System.Xml/bindings.json +27 -27
  316. package/System.Xml/internal/index.d.ts +376 -378
  317. package/System.Xml.Linq/bindings.json +6 -6
  318. package/System.Xml.Linq/internal/index.d.ts +101 -100
  319. package/System.Xml.Linq.d.ts +4 -0
  320. package/System.Xml.Resolvers/internal/index.d.ts +10 -9
  321. package/System.Xml.Resolvers.d.ts +4 -0
  322. package/System.Xml.Schema/bindings.json +100 -100
  323. package/System.Xml.Schema/internal/index.d.ts +231 -230
  324. package/System.Xml.Schema.d.ts +4 -0
  325. package/System.Xml.Serialization/bindings.json +250 -57
  326. package/System.Xml.Serialization/internal/index.d.ts +274 -242
  327. package/System.Xml.Serialization.d.ts +6 -0
  328. package/System.Xml.XPath/bindings.json +1 -1
  329. package/System.Xml.XPath/internal/index.d.ts +37 -36
  330. package/System.Xml.XPath.d.ts +4 -0
  331. package/System.Xml.Xsl/bindings.json +1 -1
  332. package/System.Xml.Xsl/internal/index.d.ts +50 -49
  333. package/System.Xml.Xsl.Runtime/bindings.json +74 -71
  334. package/System.Xml.Xsl.Runtime/internal/index.d.ts +38 -40
  335. package/System.Xml.Xsl.Runtime.d.ts +4 -0
  336. package/System.Xml.Xsl.d.ts +4 -0
  337. package/System.Xml.d.ts +4 -0
  338. package/System.d.ts +126 -122
  339. package/__internal/extensions/index.d.ts +1335 -1338
  340. package/families.json +63 -7
  341. package/package.json +2 -2
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.IO
3
3
  // Assembly: System.IO.FileSystem.AccessControl, System.IO.FileSystem.DriveInfo, System.IO.FileSystem.Watcher, System.Private.CoreLib
4
4
 
5
- // Primitive type aliases from @tsonic/core
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
5
+ // Core type aliases from @tsonic/core
6
+ import type { fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
7
7
 
8
- // Import support types from @tsonic/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import type { SafeFileHandle } from "../../Microsoft.Win32.SafeHandles/internal/index.js";
@@ -179,10 +177,10 @@ export interface WaitForChangedResult$instance {
179
177
  readonly __tsonic_type_System_IO_WaitForChangedResult: never;
180
178
 
181
179
  ChangeType: WatcherChangeTypes;
182
- get Name(): string | undefined;
183
- set Name(value: string | undefined);
184
- get OldName(): string | undefined;
185
- set OldName(value: string | undefined);
180
+ get Name(): string | null;
181
+ set Name(value: string | null);
182
+ get OldName(): string | null;
183
+ set OldName(value: string | null);
186
184
  TimedOut: boolean;
187
185
  }
188
186
 
@@ -302,7 +300,7 @@ export interface __BinaryWriter$views {
302
300
  export type BinaryWriter = BinaryWriter$instance & __BinaryWriter$views;
303
301
 
304
302
 
305
- export interface BufferedStream$instance extends Stream$instance {
303
+ export interface BufferedStream$instance extends Stream$instance, System_Internal.IAsyncDisposable$instance {
306
304
  readonly __tsonic_type_System_IO_BufferedStream: never;
307
305
 
308
306
  readonly __tsonic_iface_System_IAsyncDisposable: never;
@@ -315,8 +313,8 @@ export interface BufferedStream$instance extends Stream$instance {
315
313
  readonly Length: long;
316
314
  Position: long;
317
315
  readonly UnderlyingStream: Stream;
318
- BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
319
- BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
316
+ BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: unknown | null): IAsyncResult;
317
+ BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: unknown | null): IAsyncResult;
320
318
  CopyTo(destination: Stream, bufferSize: int): void;
321
319
  CopyTo(destination: Stream): void;
322
320
  CopyToAsync(destination: Stream, bufferSize: int, cancellationToken: CancellationToken): Task;
@@ -369,7 +367,7 @@ export interface DirectoryInfo$instance extends FileSystemInfo$instance, System_
369
367
 
370
368
  readonly Exists: boolean;
371
369
  readonly Name: string;
372
- readonly Parent: DirectoryInfo | undefined;
370
+ readonly Parent: DirectoryInfo | null;
373
371
  readonly Root: DirectoryInfo;
374
372
  Create(): void;
375
373
  CreateSubdirectory(path: string): DirectoryInfo;
@@ -425,8 +423,8 @@ export interface DirectoryNotFoundException$instance extends IOException$instanc
425
423
 
426
424
  export const DirectoryNotFoundException: {
427
425
  new(): DirectoryNotFoundException;
428
- new(message: string): DirectoryNotFoundException;
429
- new(message: string, innerException: Exception): DirectoryNotFoundException;
426
+ new(message: string | null): DirectoryNotFoundException;
427
+ new(message: string | null, innerException: Exception | null): DirectoryNotFoundException;
430
428
  };
431
429
 
432
430
 
@@ -478,8 +476,8 @@ export interface DriveNotFoundException$instance extends IOException$instance, S
478
476
 
479
477
  export const DriveNotFoundException: {
480
478
  new(): DriveNotFoundException;
481
- new(message: string): DriveNotFoundException;
482
- new(message: string, innerException: Exception): DriveNotFoundException;
479
+ new(message: string | null): DriveNotFoundException;
480
+ new(message: string | null, innerException: Exception | null): DriveNotFoundException;
483
481
  };
484
482
 
485
483
 
@@ -500,8 +498,8 @@ export interface EndOfStreamException$instance extends IOException$instance, Sys
500
498
 
501
499
  export const EndOfStreamException: {
502
500
  new(): EndOfStreamException;
503
- new(message: string): EndOfStreamException;
504
- new(message: string, innerException: Exception): EndOfStreamException;
501
+ new(message: string | null): EndOfStreamException;
502
+ new(message: string | null, innerException: Exception | null): EndOfStreamException;
505
503
  };
506
504
 
507
505
 
@@ -552,8 +550,8 @@ export interface FileInfo$instance extends FileSystemInfo$instance, System_Runti
552
550
 
553
551
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
554
552
 
555
- readonly Directory: DirectoryInfo | undefined;
556
- readonly DirectoryName: string | undefined;
553
+ readonly Directory: DirectoryInfo | null;
554
+ readonly DirectoryName: string | null;
557
555
  readonly Exists: boolean;
558
556
  IsReadOnly: boolean;
559
557
  readonly Length: long;
@@ -575,8 +573,8 @@ export interface FileInfo$instance extends FileSystemInfo$instance, System_Runti
575
573
  OpenRead(): FileStream;
576
574
  OpenText(): StreamReader;
577
575
  OpenWrite(): FileStream;
578
- Replace(destinationFileName: string, destinationBackupFileName: string): FileInfo;
579
- Replace(destinationFileName: string, destinationBackupFileName: string, ignoreMetadataErrors: boolean): FileInfo;
576
+ Replace(destinationFileName: string, destinationBackupFileName: string | null): FileInfo;
577
+ Replace(destinationFileName: string, destinationBackupFileName: string | null, ignoreMetadataErrors: boolean): FileInfo;
580
578
  }
581
579
 
582
580
 
@@ -592,13 +590,13 @@ export interface __FileInfo$views {
592
590
  export type FileInfo = FileInfo$instance & __FileInfo$views;
593
591
 
594
592
 
595
- export interface FileLoadException$instance extends IOException$instance {
593
+ export interface FileLoadException$instance extends IOException$instance, System_Runtime_Serialization_Internal.ISerializable$instance {
596
594
  readonly __tsonic_type_System_IO_FileLoadException: never;
597
595
 
598
596
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
599
597
 
600
- readonly FileName: string | undefined;
601
- readonly FusionLog: string | undefined;
598
+ readonly FileName: string | null;
599
+ readonly FusionLog: string | null;
602
600
  readonly Message: string;
603
601
  GetObjectData(info: SerializationInfo, context: StreamingContext): void;
604
602
  ToString(): string;
@@ -607,10 +605,10 @@ export interface FileLoadException$instance extends IOException$instance {
607
605
 
608
606
  export const FileLoadException: {
609
607
  new(): FileLoadException;
610
- new(message: string): FileLoadException;
611
- new(message: string, inner: Exception): FileLoadException;
612
- new(message: string, fileName: string): FileLoadException;
613
- new(message: string, fileName: string, inner: Exception): FileLoadException;
608
+ new(message: string | null): FileLoadException;
609
+ new(message: string | null, inner: Exception | null): FileLoadException;
610
+ new(message: string | null, fileName: string | null): FileLoadException;
611
+ new(message: string | null, fileName: string | null, inner: Exception | null): FileLoadException;
614
612
  };
615
613
 
616
614
 
@@ -621,13 +619,13 @@ export interface __FileLoadException$views {
621
619
  export type FileLoadException = FileLoadException$instance & __FileLoadException$views;
622
620
 
623
621
 
624
- export interface FileNotFoundException$instance extends IOException$instance {
622
+ export interface FileNotFoundException$instance extends IOException$instance, System_Runtime_Serialization_Internal.ISerializable$instance {
625
623
  readonly __tsonic_type_System_IO_FileNotFoundException: never;
626
624
 
627
625
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
628
626
 
629
- readonly FileName: string | undefined;
630
- readonly FusionLog: string | undefined;
627
+ readonly FileName: string | null;
628
+ readonly FusionLog: string | null;
631
629
  readonly Message: string;
632
630
  GetObjectData(info: SerializationInfo, context: StreamingContext): void;
633
631
  ToString(): string;
@@ -636,10 +634,10 @@ export interface FileNotFoundException$instance extends IOException$instance {
636
634
 
637
635
  export const FileNotFoundException: {
638
636
  new(): FileNotFoundException;
639
- new(message: string): FileNotFoundException;
640
- new(message: string, innerException: Exception): FileNotFoundException;
641
- new(message: string, fileName: string): FileNotFoundException;
642
- new(message: string, fileName: string, innerException: Exception): FileNotFoundException;
637
+ new(message: string | null): FileNotFoundException;
638
+ new(message: string | null, innerException: Exception | null): FileNotFoundException;
639
+ new(message: string | null, fileName: string | null): FileNotFoundException;
640
+ new(message: string | null, fileName: string | null, innerException: Exception | null): FileNotFoundException;
643
641
  };
644
642
 
645
643
 
@@ -650,7 +648,7 @@ export interface __FileNotFoundException$views {
650
648
  export type FileNotFoundException = FileNotFoundException$instance & __FileNotFoundException$views;
651
649
 
652
650
 
653
- export interface FileStream$instance extends Stream$instance {
651
+ export interface FileStream$instance extends Stream$instance, System_Internal.IAsyncDisposable$instance {
654
652
  readonly __tsonic_type_System_IO_FileStream: never;
655
653
 
656
654
  readonly __tsonic_iface_System_IAsyncDisposable: never;
@@ -665,8 +663,8 @@ export interface FileStream$instance extends Stream$instance {
665
663
  readonly Name: string;
666
664
  Position: long;
667
665
  readonly SafeFileHandle: SafeFileHandle;
668
- BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
669
- BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
666
+ BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: unknown | null): IAsyncResult;
667
+ BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: unknown | null): IAsyncResult;
670
668
  CopyTo(destination: Stream, bufferSize: int): void;
671
669
  CopyTo(destination: Stream): void;
672
670
  CopyToAsync(destination: Stream, bufferSize: int, cancellationToken: CancellationToken): Task;
@@ -754,12 +752,12 @@ export interface FileSystemEventArgs$instance extends EventArgs {
754
752
 
755
753
  readonly ChangeType: WatcherChangeTypes;
756
754
  readonly FullPath: string;
757
- readonly Name: string | undefined;
755
+ readonly Name: string | null;
758
756
  }
759
757
 
760
758
 
761
759
  export const FileSystemEventArgs: {
762
- new(changeType: WatcherChangeTypes, directory: string, name: string): FileSystemEventArgs;
760
+ new(changeType: WatcherChangeTypes, directory: string, name: string | null): FileSystemEventArgs;
763
761
  };
764
762
 
765
763
 
@@ -780,14 +778,14 @@ export interface FileSystemInfo$instance extends MarshalByRefObject, System_Runt
780
778
  LastAccessTimeUtc: DateTime;
781
779
  LastWriteTime: DateTime;
782
780
  LastWriteTimeUtc: DateTime;
783
- readonly LinkTarget: string | undefined;
781
+ readonly LinkTarget: string | null;
784
782
  readonly Name: string;
785
783
  UnixFileMode: UnixFileMode;
786
784
  CreateAsSymbolicLink(pathToTarget: string): void;
787
785
  Delete(): void;
788
786
  GetObjectData(info: SerializationInfo, context: StreamingContext): void;
789
787
  Refresh(): void;
790
- ResolveLinkTarget(returnFinalTarget: boolean): FileSystemInfo | undefined;
788
+ ResolveLinkTarget(returnFinalTarget: boolean): FileSystemInfo | null;
791
789
  ToString(): string;
792
790
  }
793
791
 
@@ -817,10 +815,10 @@ export interface FileSystemWatcher$instance extends Component, System_ComponentM
817
815
  InternalBufferSize: int;
818
816
  NotifyFilter: NotifyFilters;
819
817
  Path: string;
820
- get Site(): ISite | undefined;
821
- set Site(value: ISite | undefined);
822
- get SynchronizingObject(): ISynchronizeInvoke | undefined;
823
- set SynchronizingObject(value: ISynchronizeInvoke | undefined);
818
+ get Site(): ISite | null;
819
+ set Site(value: ISite | null);
820
+ get SynchronizingObject(): ISynchronizeInvoke | null;
821
+ set SynchronizingObject(value: ISynchronizeInvoke | null);
824
822
  BeginInit(): void;
825
823
  Dispose(disposing: boolean): void;
826
824
  Dispose(): void;
@@ -857,8 +855,8 @@ export interface InternalBufferOverflowException$instance extends SystemExceptio
857
855
 
858
856
  export const InternalBufferOverflowException: {
859
857
  new(): InternalBufferOverflowException;
860
- new(message: string): InternalBufferOverflowException;
861
- new(message: string, inner: Exception): InternalBufferOverflowException;
858
+ new(message: string | null): InternalBufferOverflowException;
859
+ new(message: string | null, inner: Exception | null): InternalBufferOverflowException;
862
860
  };
863
861
 
864
862
 
@@ -879,8 +877,8 @@ export interface InvalidDataException$instance extends SystemException, System_R
879
877
 
880
878
  export const InvalidDataException: {
881
879
  new(): InvalidDataException;
882
- new(message: string): InvalidDataException;
883
- new(message: string, innerException: Exception): InvalidDataException;
880
+ new(message: string | null): InvalidDataException;
881
+ new(message: string | null, innerException: Exception | null): InvalidDataException;
884
882
  };
885
883
 
886
884
 
@@ -901,9 +899,9 @@ export interface IOException$instance extends SystemException, System_Runtime_Se
901
899
 
902
900
  export const IOException: {
903
901
  new(): IOException;
904
- new(message: string): IOException;
905
- new(message: string, hresult: int): IOException;
906
- new(message: string, innerException: Exception): IOException;
902
+ new(message: string | null): IOException;
903
+ new(message: string | null, hresult: int): IOException;
904
+ new(message: string | null, innerException: Exception | null): IOException;
907
905
  };
908
906
 
909
907
 
@@ -987,8 +985,8 @@ export interface PathTooLongException$instance extends IOException$instance, Sys
987
985
 
988
986
  export const PathTooLongException: {
989
987
  new(): PathTooLongException;
990
- new(message: string): PathTooLongException;
991
- new(message: string, innerException: Exception): PathTooLongException;
988
+ new(message: string | null): PathTooLongException;
989
+ new(message: string | null, innerException: Exception | null): PathTooLongException;
992
990
  };
993
991
 
994
992
 
@@ -1003,12 +1001,12 @@ export interface RenamedEventArgs$instance extends FileSystemEventArgs {
1003
1001
  readonly __tsonic_type_System_IO_RenamedEventArgs: never;
1004
1002
 
1005
1003
  readonly OldFullPath: string;
1006
- readonly OldName: string | undefined;
1004
+ readonly OldName: string | null;
1007
1005
  }
1008
1006
 
1009
1007
 
1010
1008
  export const RenamedEventArgs: {
1011
- new(changeType: WatcherChangeTypes, directory: string, name: string, oldName: string): RenamedEventArgs;
1009
+ new(changeType: WatcherChangeTypes, directory: string, name: string | null, oldName: string | null): RenamedEventArgs;
1012
1010
  };
1013
1011
 
1014
1012
 
@@ -1028,8 +1026,8 @@ export interface Stream$instance extends MarshalByRefObject, System_Internal.IAs
1028
1026
  Position: long;
1029
1027
  ReadTimeout: int;
1030
1028
  WriteTimeout: int;
1031
- BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
1032
- BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback, state: unknown): IAsyncResult;
1029
+ BeginRead(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: unknown | null): IAsyncResult;
1030
+ BeginWrite(buffer: byte[], offset: int, count: int, callback: AsyncCallback | null, state: unknown | null): IAsyncResult;
1033
1031
  Close(): void;
1034
1032
  CopyTo(destination: Stream): void;
1035
1033
  CopyTo(destination: Stream, bufferSize: int): void;
@@ -1108,8 +1106,8 @@ export interface StreamReader$instance extends TextReader$instance {
1108
1106
  ReadBlock(buffer: Span_1<System_Internal.Char>): int;
1109
1107
  ReadBlockAsync(buffer: char[], index: int, count: int): Task_1<System_Internal.Int32>;
1110
1108
  ReadBlockAsync(buffer: Memory_1<System_Internal.Char>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1111
- ReadLine(): string | undefined;
1112
- ReadLineAsync(): Task_1<string | undefined>;
1109
+ ReadLine(): string | null;
1110
+ ReadLineAsync(): Task_1<string | null>;
1113
1111
  ReadLineAsync(cancellationToken: CancellationToken): ValueTask_1<System_Internal.String>;
1114
1112
  ReadToEnd(): string;
1115
1113
  ReadToEndAsync(): Task_1<System_Internal.String>;
@@ -1120,17 +1118,17 @@ export interface StreamReader$instance extends TextReader$instance {
1120
1118
  export const StreamReader: {
1121
1119
  new(stream: Stream): StreamReader;
1122
1120
  new(stream: Stream, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1123
- new(stream: Stream, encoding: Encoding): StreamReader;
1124
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1125
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1126
- new(stream: Stream, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int, leaveOpen: boolean): StreamReader;
1121
+ new(stream: Stream, encoding: Encoding | null): StreamReader;
1122
+ new(stream: Stream, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1123
+ new(stream: Stream, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1124
+ new(stream: Stream, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean, bufferSize: int, leaveOpen: boolean): StreamReader;
1127
1125
  new(path: string): StreamReader;
1128
1126
  new(path: string, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1129
- new(path: string, encoding: Encoding): StreamReader;
1130
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1131
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1127
+ new(path: string, encoding: Encoding | null): StreamReader;
1128
+ new(path: string, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean): StreamReader;
1129
+ new(path: string, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean, bufferSize: int): StreamReader;
1132
1130
  new(path: string, options: FileStreamOptions): StreamReader;
1133
- new(path: string, encoding: Encoding, detectEncodingFromByteOrderMarks: boolean, options: FileStreamOptions): StreamReader;
1131
+ new(path: string, encoding: Encoding | null, detectEncodingFromByteOrderMarks: boolean, options: FileStreamOptions): StreamReader;
1134
1132
  };
1135
1133
 
1136
1134
 
@@ -1141,7 +1139,7 @@ export interface __StreamReader$views {
1141
1139
  export type StreamReader = StreamReader$instance & __StreamReader$views;
1142
1140
 
1143
1141
 
1144
- export interface StreamWriter$instance extends TextWriter$instance {
1142
+ export interface StreamWriter$instance extends TextWriter$instance, System_Internal.IAsyncDisposable$instance {
1145
1143
  readonly __tsonic_type_System_IO_StreamWriter: never;
1146
1144
 
1147
1145
  readonly __tsonic_iface_System_IAsyncDisposable: never;
@@ -1158,14 +1156,14 @@ export interface StreamWriter$instance extends TextWriter$instance {
1158
1156
  FlushAsync(): Task;
1159
1157
  FlushAsync(cancellationToken: CancellationToken): Task;
1160
1158
  Write(value: char): void;
1161
- Write(buffer: char[]): void;
1159
+ Write(buffer: char[] | null): void;
1162
1160
  Write(buffer: char[], index: int, count: int): void;
1163
1161
  Write(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1164
- Write(value: string): void;
1165
- Write(format: string, arg0: unknown): void;
1166
- Write(format: string, arg0: unknown, arg1: unknown): void;
1167
- Write(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1168
- Write(format: string, ...arg: unknown[]): void;
1162
+ Write(value: string | null): void;
1163
+ Write(format: string, arg0: unknown | null): void;
1164
+ Write(format: string, arg0: unknown | null, arg1: unknown | null): void;
1165
+ Write(format: string, arg0: unknown | null, arg1: unknown | null, arg2: unknown | null): void;
1166
+ Write(format: string, ...arg: (unknown | null)[]): void;
1169
1167
  Write(format: string, arg: ReadOnlySpan_1<unknown>): void;
1170
1168
  Write(value: boolean): void;
1171
1169
  Write(value: int): void;
@@ -1175,24 +1173,24 @@ export interface StreamWriter$instance extends TextWriter$instance {
1175
1173
  Write(value: float): void;
1176
1174
  Write(value: double): void;
1177
1175
  Write(value: decimal): void;
1178
- Write(value: unknown): void;
1179
- Write(value: StringBuilder): void;
1176
+ Write(value: unknown | null): void;
1177
+ Write(value: StringBuilder | null): void;
1180
1178
  WriteAsync(value: char): Task;
1181
- WriteAsync(value: string): Task;
1179
+ WriteAsync(value: string | null): Task;
1182
1180
  WriteAsync(buffer: char[], index: int, count: int): Task;
1183
1181
  WriteAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1184
- WriteAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1185
- WriteAsync(buffer: char[]): Task;
1186
- WriteLine(value: string): void;
1182
+ WriteAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1183
+ WriteAsync(buffer: char[] | null): Task;
1184
+ WriteLine(value: string | null): void;
1187
1185
  WriteLine(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1188
- WriteLine(format: string, arg0: unknown): void;
1189
- WriteLine(format: string, arg0: unknown, arg1: unknown): void;
1190
- WriteLine(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1191
- WriteLine(format: string, ...arg: unknown[]): void;
1186
+ WriteLine(format: string, arg0: unknown | null): void;
1187
+ WriteLine(format: string, arg0: unknown | null, arg1: unknown | null): void;
1188
+ WriteLine(format: string, arg0: unknown | null, arg1: unknown | null, arg2: unknown | null): void;
1189
+ WriteLine(format: string, ...arg: (unknown | null)[]): void;
1192
1190
  WriteLine(format: string, arg: ReadOnlySpan_1<unknown>): void;
1193
1191
  WriteLine(): void;
1194
1192
  WriteLine(value: char): void;
1195
- WriteLine(buffer: char[]): void;
1193
+ WriteLine(buffer: char[] | null): void;
1196
1194
  WriteLine(buffer: char[], index: int, count: int): void;
1197
1195
  WriteLine(value: boolean): void;
1198
1196
  WriteLine(value: int): void;
@@ -1202,29 +1200,29 @@ export interface StreamWriter$instance extends TextWriter$instance {
1202
1200
  WriteLine(value: float): void;
1203
1201
  WriteLine(value: double): void;
1204
1202
  WriteLine(value: decimal): void;
1205
- WriteLine(value: StringBuilder): void;
1206
- WriteLine(value: unknown): void;
1203
+ WriteLine(value: StringBuilder | null): void;
1204
+ WriteLine(value: unknown | null): void;
1207
1205
  WriteLineAsync(): Task;
1208
1206
  WriteLineAsync(value: char): Task;
1209
- WriteLineAsync(value: string): Task;
1207
+ WriteLineAsync(value: string | null): Task;
1210
1208
  WriteLineAsync(buffer: char[], index: int, count: int): Task;
1211
1209
  WriteLineAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1212
- WriteLineAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1213
- WriteLineAsync(buffer: char[]): Task;
1210
+ WriteLineAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1211
+ WriteLineAsync(buffer: char[] | null): Task;
1214
1212
  }
1215
1213
 
1216
1214
 
1217
1215
  export const StreamWriter: {
1218
1216
  new(stream: Stream): StreamWriter;
1219
- new(stream: Stream, encoding: Encoding): StreamWriter;
1220
- new(stream: Stream, encoding: Encoding, bufferSize: int): StreamWriter;
1221
- new(stream: Stream, encoding: Encoding, bufferSize: int, leaveOpen: boolean): StreamWriter;
1217
+ new(stream: Stream, encoding: Encoding | null): StreamWriter;
1218
+ new(stream: Stream, encoding: Encoding | null, bufferSize: int): StreamWriter;
1219
+ new(stream: Stream, encoding: Encoding | null, bufferSize: int, leaveOpen: boolean): StreamWriter;
1222
1220
  new(path: string): StreamWriter;
1223
1221
  new(path: string, append: boolean): StreamWriter;
1224
- new(path: string, append: boolean, encoding: Encoding): StreamWriter;
1225
- new(path: string, append: boolean, encoding: Encoding, bufferSize: int): StreamWriter;
1222
+ new(path: string, append: boolean, encoding: Encoding | null): StreamWriter;
1223
+ new(path: string, append: boolean, encoding: Encoding | null, bufferSize: int): StreamWriter;
1226
1224
  new(path: string, options: FileStreamOptions): StreamWriter;
1227
- new(path: string, encoding: Encoding, options: FileStreamOptions): StreamWriter;
1225
+ new(path: string, encoding: Encoding | null, options: FileStreamOptions): StreamWriter;
1228
1226
  };
1229
1227
 
1230
1228
 
@@ -1254,8 +1252,8 @@ export interface StringReader$instance extends TextReader$instance {
1254
1252
  ReadBlock(buffer: char[], index: int, count: int): int;
1255
1253
  ReadBlockAsync(buffer: char[], index: int, count: int): Task_1<System_Internal.Int32>;
1256
1254
  ReadBlockAsync(buffer: Memory_1<System_Internal.Char>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1257
- ReadLine(): string | undefined;
1258
- ReadLineAsync(): Task_1<string | undefined>;
1255
+ ReadLine(): string | null;
1256
+ ReadLineAsync(): Task_1<string | null>;
1259
1257
  ReadLineAsync(cancellationToken: CancellationToken): ValueTask_1<System_Internal.String>;
1260
1258
  ReadToEnd(): string;
1261
1259
  ReadToEndAsync(): Task_1<System_Internal.String>;
@@ -1292,9 +1290,9 @@ export interface StringWriter$instance extends TextWriter$instance, System_Inter
1292
1290
  Write(value: char): void;
1293
1291
  Write(buffer: char[], index: int, count: int): void;
1294
1292
  Write(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1295
- Write(value: string): void;
1296
- Write(value: StringBuilder): void;
1297
- Write(buffer: char[]): void;
1293
+ Write(value: string | null): void;
1294
+ Write(value: StringBuilder | null): void;
1295
+ Write(buffer: char[] | null): void;
1298
1296
  Write(value: boolean): void;
1299
1297
  Write(value: int): void;
1300
1298
  Write(value: uint): void;
@@ -1303,23 +1301,23 @@ export interface StringWriter$instance extends TextWriter$instance, System_Inter
1303
1301
  Write(value: float): void;
1304
1302
  Write(value: double): void;
1305
1303
  Write(value: decimal): void;
1306
- Write(value: unknown): void;
1307
- Write(format: string, arg0: unknown): void;
1308
- Write(format: string, arg0: unknown, arg1: unknown): void;
1309
- Write(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1310
- Write(format: string, ...arg: unknown[]): void;
1304
+ Write(value: unknown | null): void;
1305
+ Write(format: string, arg0: unknown | null): void;
1306
+ Write(format: string, arg0: unknown | null, arg1: unknown | null): void;
1307
+ Write(format: string, arg0: unknown | null, arg1: unknown | null, arg2: unknown | null): void;
1308
+ Write(format: string, ...arg: (unknown | null)[]): void;
1311
1309
  Write(format: string, arg: ReadOnlySpan_1<unknown>): void;
1312
1310
  WriteAsync(value: char): Task;
1313
- WriteAsync(value: string): Task;
1311
+ WriteAsync(value: string | null): Task;
1314
1312
  WriteAsync(buffer: char[], index: int, count: int): Task;
1315
1313
  WriteAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1316
- WriteAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1317
- WriteAsync(buffer: char[]): Task;
1314
+ WriteAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1315
+ WriteAsync(buffer: char[] | null): Task;
1318
1316
  WriteLine(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1319
- WriteLine(value: StringBuilder): void;
1317
+ WriteLine(value: StringBuilder | null): void;
1320
1318
  WriteLine(): void;
1321
1319
  WriteLine(value: char): void;
1322
- WriteLine(buffer: char[]): void;
1320
+ WriteLine(buffer: char[] | null): void;
1323
1321
  WriteLine(buffer: char[], index: int, count: int): void;
1324
1322
  WriteLine(value: boolean): void;
1325
1323
  WriteLine(value: int): void;
@@ -1329,28 +1327,28 @@ export interface StringWriter$instance extends TextWriter$instance, System_Inter
1329
1327
  WriteLine(value: float): void;
1330
1328
  WriteLine(value: double): void;
1331
1329
  WriteLine(value: decimal): void;
1332
- WriteLine(value: string): void;
1333
- WriteLine(value: unknown): void;
1334
- WriteLine(format: string, arg0: unknown): void;
1335
- WriteLine(format: string, arg0: unknown, arg1: unknown): void;
1336
- WriteLine(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1337
- WriteLine(format: string, ...arg: unknown[]): void;
1330
+ WriteLine(value: string | null): void;
1331
+ WriteLine(value: unknown | null): void;
1332
+ WriteLine(format: string, arg0: unknown | null): void;
1333
+ WriteLine(format: string, arg0: unknown | null, arg1: unknown | null): void;
1334
+ WriteLine(format: string, arg0: unknown | null, arg1: unknown | null, arg2: unknown | null): void;
1335
+ WriteLine(format: string, ...arg: (unknown | null)[]): void;
1338
1336
  WriteLine(format: string, arg: ReadOnlySpan_1<unknown>): void;
1339
1337
  WriteLineAsync(value: char): Task;
1340
- WriteLineAsync(value: string): Task;
1341
- WriteLineAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1338
+ WriteLineAsync(value: string | null): Task;
1339
+ WriteLineAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1342
1340
  WriteLineAsync(buffer: char[], index: int, count: int): Task;
1343
1341
  WriteLineAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1344
- WriteLineAsync(buffer: char[]): Task;
1342
+ WriteLineAsync(buffer: char[] | null): Task;
1345
1343
  WriteLineAsync(): Task;
1346
1344
  }
1347
1345
 
1348
1346
 
1349
1347
  export const StringWriter: {
1350
1348
  new(): StringWriter;
1351
- new(formatProvider: IFormatProvider): StringWriter;
1349
+ new(formatProvider: IFormatProvider | null): StringWriter;
1352
1350
  new(sb: StringBuilder): StringWriter;
1353
- new(sb: StringBuilder, formatProvider: IFormatProvider): StringWriter;
1351
+ new(sb: StringBuilder, formatProvider: IFormatProvider | null): StringWriter;
1354
1352
  };
1355
1353
 
1356
1354
 
@@ -1380,8 +1378,8 @@ export interface TextReader$instance extends MarshalByRefObject {
1380
1378
  ReadBlock(buffer: Span_1<System_Internal.Char>): int;
1381
1379
  ReadBlockAsync(buffer: char[], index: int, count: int): Task_1<System_Internal.Int32>;
1382
1380
  ReadBlockAsync(buffer: Memory_1<System_Internal.Char>, cancellationToken?: CancellationToken): ValueTask_1<System_Internal.Int32>;
1383
- ReadLine(): string | undefined;
1384
- ReadLineAsync(): Task_1<string | undefined>;
1381
+ ReadLine(): string | null;
1382
+ ReadLineAsync(): Task_1<string | null>;
1385
1383
  ReadLineAsync(cancellationToken: CancellationToken): ValueTask_1<System_Internal.String>;
1386
1384
  ReadToEnd(): string;
1387
1385
  ReadToEndAsync(): Task_1<System_Internal.String>;
@@ -1419,7 +1417,7 @@ export interface TextWriter$instance extends MarshalByRefObject, System_Internal
1419
1417
  FlushAsync(): Task;
1420
1418
  FlushAsync(cancellationToken: CancellationToken): Task;
1421
1419
  Write(value: char): void;
1422
- Write(buffer: char[]): void;
1420
+ Write(buffer: char[] | null): void;
1423
1421
  Write(buffer: char[], index: int, count: int): void;
1424
1422
  Write(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1425
1423
  Write(value: boolean): void;
@@ -1430,23 +1428,23 @@ export interface TextWriter$instance extends MarshalByRefObject, System_Internal
1430
1428
  Write(value: float): void;
1431
1429
  Write(value: double): void;
1432
1430
  Write(value: decimal): void;
1433
- Write(value: string): void;
1434
- Write(value: unknown): void;
1435
- Write(value: StringBuilder): void;
1436
- Write(format: string, arg0: unknown): void;
1437
- Write(format: string, arg0: unknown, arg1: unknown): void;
1438
- Write(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1439
- Write(format: string, ...arg: unknown[]): void;
1431
+ Write(value: string | null): void;
1432
+ Write(value: unknown | null): void;
1433
+ Write(value: StringBuilder | null): void;
1434
+ Write(format: string, arg0: unknown | null): void;
1435
+ Write(format: string, arg0: unknown | null, arg1: unknown | null): void;
1436
+ Write(format: string, arg0: unknown | null, arg1: unknown | null, arg2: unknown | null): void;
1437
+ Write(format: string, ...arg: (unknown | null)[]): void;
1440
1438
  Write(format: string, arg: ReadOnlySpan_1<unknown>): void;
1441
1439
  WriteAsync(value: char): Task;
1442
- WriteAsync(value: string): Task;
1443
- WriteAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1444
- WriteAsync(buffer: char[]): Task;
1440
+ WriteAsync(value: string | null): Task;
1441
+ WriteAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1442
+ WriteAsync(buffer: char[] | null): Task;
1445
1443
  WriteAsync(buffer: char[], index: int, count: int): Task;
1446
1444
  WriteAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1447
1445
  WriteLine(): void;
1448
1446
  WriteLine(value: char): void;
1449
- WriteLine(buffer: char[]): void;
1447
+ WriteLine(buffer: char[] | null): void;
1450
1448
  WriteLine(buffer: char[], index: int, count: int): void;
1451
1449
  WriteLine(buffer: ReadOnlySpan_1<System_Internal.Char>): void;
1452
1450
  WriteLine(value: boolean): void;
@@ -1457,25 +1455,25 @@ export interface TextWriter$instance extends MarshalByRefObject, System_Internal
1457
1455
  WriteLine(value: float): void;
1458
1456
  WriteLine(value: double): void;
1459
1457
  WriteLine(value: decimal): void;
1460
- WriteLine(value: string): void;
1461
- WriteLine(value: StringBuilder): void;
1462
- WriteLine(value: unknown): void;
1463
- WriteLine(format: string, arg0: unknown): void;
1464
- WriteLine(format: string, arg0: unknown, arg1: unknown): void;
1465
- WriteLine(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void;
1466
- WriteLine(format: string, ...arg: unknown[]): void;
1458
+ WriteLine(value: string | null): void;
1459
+ WriteLine(value: StringBuilder | null): void;
1460
+ WriteLine(value: unknown | null): void;
1461
+ WriteLine(format: string, arg0: unknown | null): void;
1462
+ WriteLine(format: string, arg0: unknown | null, arg1: unknown | null): void;
1463
+ WriteLine(format: string, arg0: unknown | null, arg1: unknown | null, arg2: unknown | null): void;
1464
+ WriteLine(format: string, ...arg: (unknown | null)[]): void;
1467
1465
  WriteLine(format: string, arg: ReadOnlySpan_1<unknown>): void;
1468
1466
  WriteLineAsync(value: char): Task;
1469
- WriteLineAsync(value: string): Task;
1470
- WriteLineAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task;
1471
- WriteLineAsync(buffer: char[]): Task;
1467
+ WriteLineAsync(value: string | null): Task;
1468
+ WriteLineAsync(value: StringBuilder | null, cancellationToken?: CancellationToken): Task;
1469
+ WriteLineAsync(buffer: char[] | null): Task;
1472
1470
  WriteLineAsync(buffer: char[], index: int, count: int): Task;
1473
1471
  WriteLineAsync(buffer: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1474
1472
  WriteLineAsync(): Task;
1475
1473
  }
1476
1474
 
1477
1475
 
1478
- export const TextWriter: (abstract new() => TextWriter) & (abstract new(formatProvider: IFormatProvider) => TextWriter) & {
1476
+ export const TextWriter: (abstract new() => TextWriter) & (abstract new(formatProvider: IFormatProvider | null) => TextWriter) & {
1479
1477
  readonly Null: TextWriter;
1480
1478
  CreateBroadcasting(...writers: TextWriter[]): TextWriter;
1481
1479
  Synchronized(writer: TextWriter): TextWriter;
@@ -1500,8 +1498,8 @@ export interface UnmanagedMemoryAccessor$instance {
1500
1498
  readonly Capacity: long;
1501
1499
  Dispose(disposing: boolean): void;
1502
1500
  Dispose(): void;
1503
- Read<T extends unknown>(position: long, structure: T): void;
1504
- ReadArray<T extends unknown>(position: long, array: T[], offset: int, count: int): int;
1501
+ Read<T extends NonNullable<unknown>>(position: long, structure: T): void;
1502
+ ReadArray<T extends NonNullable<unknown>>(position: long, array: T[], offset: int, count: int): int;
1505
1503
  ReadBoolean(position: long): boolean;
1506
1504
  ReadByte(position: long): byte;
1507
1505
  ReadChar(position: long): char;
@@ -1528,8 +1526,8 @@ export interface UnmanagedMemoryAccessor$instance {
1528
1526
  Write(position: long, value: ushort): void;
1529
1527
  Write(position: long, value: uint): void;
1530
1528
  Write(position: long, value: ulong): void;
1531
- Write<T extends unknown>(position: long, structure: T): void;
1532
- WriteArray<T extends unknown>(position: long, array: T[], offset: int, count: int): void;
1529
+ Write<T extends NonNullable<unknown>>(position: long, structure: T): void;
1530
+ WriteArray<T extends NonNullable<unknown>>(position: long, array: T[], offset: int, count: int): void;
1533
1531
  }
1534
1532
 
1535
1533
 
@@ -1601,7 +1599,7 @@ export abstract class Directory$instance {
1601
1599
  static CreateDirectory(path: string, unixCreateMode: UnixFileMode): DirectoryInfo;
1602
1600
  static CreateDirectory(path: string): DirectoryInfo;
1603
1601
  static CreateSymbolicLink(path: string, pathToTarget: string): FileSystemInfo;
1604
- static CreateTempSubdirectory(prefix?: string): DirectoryInfo;
1602
+ static CreateTempSubdirectory(prefix?: string | null): DirectoryInfo;
1605
1603
  static Delete(path: string, recursive: boolean): void;
1606
1604
  static Delete(path: string): void;
1607
1605
  static EnumerateDirectories(path: string, searchPattern: string, enumerationOptions: EnumerationOptions): IEnumerable_1<System_Internal.String>;
@@ -1616,7 +1614,7 @@ export abstract class Directory$instance {
1616
1614
  static EnumerateFileSystemEntries(path: string, searchPattern: string, searchOption: SearchOption): IEnumerable_1<System_Internal.String>;
1617
1615
  static EnumerateFileSystemEntries(path: string, searchPattern: string): IEnumerable_1<System_Internal.String>;
1618
1616
  static EnumerateFileSystemEntries(path: string): IEnumerable_1<System_Internal.String>;
1619
- static Exists(path: string): boolean;
1617
+ static Exists(path: string | null): boolean;
1620
1618
  static GetCreationTime(path: string): DateTime;
1621
1619
  static GetCreationTimeUtc(path: string): DateTime;
1622
1620
  static GetCurrentDirectory(): string;
@@ -1638,9 +1636,9 @@ export abstract class Directory$instance {
1638
1636
  static GetLastWriteTime(path: string): DateTime;
1639
1637
  static GetLastWriteTimeUtc(path: string): DateTime;
1640
1638
  static GetLogicalDrives(): string[];
1641
- static GetParent(path: string): DirectoryInfo | undefined;
1639
+ static GetParent(path: string): DirectoryInfo | null;
1642
1640
  static Move(sourceDirName: string, destDirName: string): void;
1643
- static ResolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo | undefined;
1641
+ static ResolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo | null;
1644
1642
  static SetCreationTime(path: string, creationTime: DateTime): void;
1645
1643
  static SetCreationTimeUtc(path: string, creationTimeUtc: DateTime): void;
1646
1644
  static SetCurrentDirectory(path: string): void;
@@ -1664,12 +1662,12 @@ export abstract class File$instance {
1664
1662
  static AppendAllLinesAsync(path: string, contents: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): Task;
1665
1663
  static AppendAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>, encoding: Encoding): void;
1666
1664
  static AppendAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>): void;
1667
- static AppendAllText(path: string, contents: string, encoding: Encoding): void;
1668
- static AppendAllText(path: string, contents: string): void;
1665
+ static AppendAllText(path: string, contents: string | null, encoding: Encoding): void;
1666
+ static AppendAllText(path: string, contents: string | null): void;
1669
1667
  static AppendAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1670
1668
  static AppendAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1671
- static AppendAllTextAsync(path: string, contents: string, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1672
- static AppendAllTextAsync(path: string, contents: string, cancellationToken?: CancellationToken): Task;
1669
+ static AppendAllTextAsync(path: string, contents: string | null, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1670
+ static AppendAllTextAsync(path: string, contents: string | null, cancellationToken?: CancellationToken): Task;
1673
1671
  static AppendText(path: string): StreamWriter;
1674
1672
  static Copy(sourceFileName: string, destFileName: string, overwrite: boolean): void;
1675
1673
  static Copy(sourceFileName: string, destFileName: string): void;
@@ -1681,7 +1679,7 @@ export abstract class File$instance {
1681
1679
  static Decrypt(path: string): void;
1682
1680
  static Delete(path: string): void;
1683
1681
  static Encrypt(path: string): void;
1684
- static Exists(path: string): boolean;
1682
+ static Exists(path: string | null): boolean;
1685
1683
  static GetAttributes(fileHandle: SafeFileHandle): FileAttributes;
1686
1684
  static GetAttributes(path: string): FileAttributes;
1687
1685
  static GetCreationTime(fileHandle: SafeFileHandle): DateTime;
@@ -1722,9 +1720,9 @@ export abstract class File$instance {
1722
1720
  static ReadLines(path: string): IEnumerable_1<System_Internal.String>;
1723
1721
  static ReadLinesAsync(path: string, encoding: Encoding, cancellationToken?: CancellationToken): IAsyncEnumerable_1<System_Internal.String>;
1724
1722
  static ReadLinesAsync(path: string, cancellationToken?: CancellationToken): IAsyncEnumerable_1<System_Internal.String>;
1725
- static Replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string, ignoreMetadataErrors: boolean): void;
1726
- static Replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string): void;
1727
- static ResolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo | undefined;
1723
+ static Replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string | null, ignoreMetadataErrors: boolean): void;
1724
+ static Replace(sourceFileName: string, destinationFileName: string, destinationBackupFileName: string | null): void;
1725
+ static ResolveLinkTarget(linkPath: string, returnFinalTarget: boolean): FileSystemInfo | null;
1728
1726
  static SetAttributes(fileHandle: SafeFileHandle, fileAttributes: FileAttributes): void;
1729
1727
  static SetAttributes(path: string, fileAttributes: FileAttributes): void;
1730
1728
  static SetCreationTime(fileHandle: SafeFileHandle, creationTime: DateTime): void;
@@ -1753,12 +1751,12 @@ export abstract class File$instance {
1753
1751
  static WriteAllLinesAsync(path: string, contents: IEnumerable_1<System_Internal.String>, cancellationToken?: CancellationToken): Task;
1754
1752
  static WriteAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>, encoding: Encoding): void;
1755
1753
  static WriteAllText(path: string, contents: ReadOnlySpan_1<System_Internal.Char>): void;
1756
- static WriteAllText(path: string, contents: string, encoding: Encoding): void;
1757
- static WriteAllText(path: string, contents: string): void;
1754
+ static WriteAllText(path: string, contents: string | null, encoding: Encoding): void;
1755
+ static WriteAllText(path: string, contents: string | null): void;
1758
1756
  static WriteAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1759
1757
  static WriteAllTextAsync(path: string, contents: ReadOnlyMemory_1<System_Internal.Char>, cancellationToken?: CancellationToken): Task;
1760
- static WriteAllTextAsync(path: string, contents: string, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1761
- static WriteAllTextAsync(path: string, contents: string, cancellationToken?: CancellationToken): Task;
1758
+ static WriteAllTextAsync(path: string, contents: string | null, encoding: Encoding, cancellationToken?: CancellationToken): Task;
1759
+ static WriteAllTextAsync(path: string, contents: string | null, cancellationToken?: CancellationToken): Task;
1762
1760
  }
1763
1761
 
1764
1762
 
@@ -1766,7 +1764,7 @@ export type File = File$instance;
1766
1764
 
1767
1765
  export abstract class FileSystemAclExtensions$instance {
1768
1766
  static Create(directoryInfo: DirectoryInfo, directorySecurity: DirectorySecurity): void;
1769
- static Create(fileInfo: FileInfo, mode: FileMode, rights: FileSystemRights, share: FileShare, bufferSize: int, options: FileOptions, fileSecurity: FileSecurity): FileStream;
1767
+ static Create(fileInfo: FileInfo, mode: FileMode, rights: FileSystemRights, share: FileShare, bufferSize: int, options: FileOptions, fileSecurity: FileSecurity | null): FileStream;
1770
1768
  static CreateDirectory(directorySecurity: DirectorySecurity, path: string): DirectoryInfo;
1771
1769
  static GetAccessControl(directoryInfo: DirectoryInfo, includeSections: AccessControlSections): DirectorySecurity;
1772
1770
  static GetAccessControl(directoryInfo: DirectoryInfo): DirectorySecurity;
@@ -1787,47 +1785,47 @@ export abstract class Path$instance {
1787
1785
  static readonly VolumeSeparatorChar: char;
1788
1786
  static readonly PathSeparator: char;
1789
1787
  static readonly InvalidPathChars: char[];
1790
- static ChangeExtension(path: string, extension: string): string | undefined;
1788
+ static ChangeExtension(path: string | null, extension: string | null): string | null;
1791
1789
  static Combine(paths: ReadOnlySpan_1<System_Internal.String>): string;
1792
1790
  static Combine(path1: string, path2: string, path3: string, path4: string): string;
1793
1791
  static Combine(path1: string, path2: string, path3: string): string;
1794
1792
  static Combine(path1: string, path2: string): string;
1795
1793
  static Combine(...paths: string[]): string;
1796
1794
  static EndsInDirectorySeparator(path: ReadOnlySpan_1<System_Internal.Char>): boolean;
1797
- static EndsInDirectorySeparator(path: string): boolean;
1798
- static Exists(path: string): boolean;
1795
+ static EndsInDirectorySeparator(path: string | null): boolean;
1796
+ static Exists(path: string | null): boolean;
1799
1797
  static GetDirectoryName(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1800
- static GetDirectoryName(path: string): string | undefined;
1798
+ static GetDirectoryName(path: string | null): string | null;
1801
1799
  static GetExtension(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1802
- static GetExtension(path: string): string | undefined;
1800
+ static GetExtension(path: string | null): string | null;
1803
1801
  static GetFileName(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1804
- static GetFileName(path: string): string | undefined;
1802
+ static GetFileName(path: string | null): string | null;
1805
1803
  static GetFileNameWithoutExtension(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1806
- static GetFileNameWithoutExtension(path: string): string | undefined;
1804
+ static GetFileNameWithoutExtension(path: string | null): string | null;
1807
1805
  static GetFullPath(path: string, basePath: string): string;
1808
1806
  static GetFullPath(path: string): string;
1809
1807
  static GetInvalidFileNameChars(): char[];
1810
1808
  static GetInvalidPathChars(): char[];
1811
1809
  static GetPathRoot(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1812
- static GetPathRoot(path: string): string | undefined;
1810
+ static GetPathRoot(path: string | null): string | null;
1813
1811
  static GetRandomFileName(): string;
1814
1812
  static GetRelativePath(relativeTo: string, path: string): string;
1815
1813
  static GetTempFileName(): string;
1816
1814
  static GetTempPath(): string;
1817
1815
  static HasExtension(path: ReadOnlySpan_1<System_Internal.Char>): boolean;
1818
- static HasExtension(path: string): boolean;
1816
+ static HasExtension(path: string | null): boolean;
1819
1817
  static IsPathFullyQualified(path: ReadOnlySpan_1<System_Internal.Char>): boolean;
1820
1818
  static IsPathFullyQualified(path: string): boolean;
1821
1819
  static IsPathRooted(path: ReadOnlySpan_1<System_Internal.Char>): boolean;
1822
- static IsPathRooted(path: string): boolean;
1820
+ static IsPathRooted(path: string | null): boolean;
1823
1821
  static Join(path1: ReadOnlySpan_1<System_Internal.Char>, path2: ReadOnlySpan_1<System_Internal.Char>, path3: ReadOnlySpan_1<System_Internal.Char>, path4: ReadOnlySpan_1<System_Internal.Char>): string;
1824
1822
  static Join(path1: ReadOnlySpan_1<System_Internal.Char>, path2: ReadOnlySpan_1<System_Internal.Char>, path3: ReadOnlySpan_1<System_Internal.Char>): string;
1825
1823
  static Join(path1: ReadOnlySpan_1<System_Internal.Char>, path2: ReadOnlySpan_1<System_Internal.Char>): string;
1826
1824
  static Join(paths: ReadOnlySpan_1<System_Internal.String>): string;
1827
- static Join(path1: string, path2: string, path3: string, path4: string): string;
1828
- static Join(path1: string, path2: string, path3: string): string;
1829
- static Join(path1: string, path2: string): string;
1830
- static Join(...paths: string[]): string;
1825
+ static Join(path1: string | null, path2: string | null, path3: string | null, path4: string | null): string;
1826
+ static Join(path1: string | null, path2: string | null, path3: string | null): string;
1827
+ static Join(path1: string | null, path2: string | null): string;
1828
+ static Join(...paths: (string | null)[]): string;
1831
1829
  static TrimEndingDirectorySeparator(path: ReadOnlySpan_1<System_Internal.Char>): ReadOnlySpan_1<System_Internal.Char>;
1832
1830
  static TrimEndingDirectorySeparator(path: string): string;
1833
1831
  static TryJoin(path1: ReadOnlySpan_1<System_Internal.Char>, path2: ReadOnlySpan_1<System_Internal.Char>, path3: ReadOnlySpan_1<System_Internal.Char>, destination: Span_1<System_Internal.Char>, charsWritten: int): boolean;