@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.Threading
3
3
  // Assembly: System.Private.CoreLib, System.Threading, System.Threading.AccessControl
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 { SafeWaitHandle } from "../../Microsoft.Win32.SafeHandles/internal/index.js";
@@ -74,16 +72,16 @@ export enum ThreadState {
74
72
  }
75
73
 
76
74
 
77
- export type ContextCallback = (state: unknown) => void;
75
+ export type ContextCallback = (state: unknown | null) => void;
78
76
 
79
77
 
80
78
  export type IOCompletionCallback = (errorCode: uint, numBytes: uint, pOVERLAP: ptr<NativeOverlapped>) => void;
81
79
 
82
80
 
83
- export type ParameterizedThreadStart = (obj: unknown) => void;
81
+ export type ParameterizedThreadStart = (obj: unknown | null) => void;
84
82
 
85
83
 
86
- export type SendOrPostCallback = (state: unknown) => void;
84
+ export type SendOrPostCallback = (state: unknown | null) => void;
87
85
 
88
86
 
89
87
  export type ThreadExceptionEventHandler = (sender: unknown, e: ThreadExceptionEventArgs) => void;
@@ -92,13 +90,13 @@ export type ThreadExceptionEventHandler = (sender: unknown, e: ThreadExceptionEv
92
90
  export type ThreadStart = () => void;
93
91
 
94
92
 
95
- export type TimerCallback = (state: unknown) => void;
93
+ export type TimerCallback = (state: unknown | null) => void;
96
94
 
97
95
 
98
- export type WaitCallback = (state: unknown) => void;
96
+ export type WaitCallback = (state: unknown | null) => void;
99
97
 
100
98
 
101
- export type WaitOrTimerCallback = (state: unknown, timedOut: boolean) => void;
99
+ export type WaitOrTimerCallback = (state: unknown | null, timedOut: boolean) => void;
102
100
 
103
101
 
104
102
  export interface IThreadPoolWorkItem$instance {
@@ -130,7 +128,7 @@ export interface AsyncFlowControl$instance extends System_Internal.IDisposable$i
130
128
  readonly __tsonic_iface_System_IEquatable_1: never;
131
129
 
132
130
  Dispose(): void;
133
- Equals(obj: unknown): boolean;
131
+ Equals(obj: unknown | null): boolean;
134
132
  Equals(obj: AsyncFlowControl): boolean;
135
133
  GetHashCode(): int;
136
134
  Undo(): void;
@@ -153,21 +151,21 @@ export interface __AsyncFlowControl$views {
153
151
  export type AsyncFlowControl = AsyncFlowControl$instance & __AsyncFlowControl$views;
154
152
 
155
153
 
156
- export interface AsyncLocalValueChangedArgs_1$instance<T> {
154
+ export interface AsyncLocalValueChangedArgs_1$instance<T extends unknown> {
157
155
  readonly __tsonic_type_System_Threading_AsyncLocalValueChangedArgs_1: never;
158
156
 
159
- readonly CurrentValue: T | undefined;
160
- readonly PreviousValue: T | undefined;
157
+ readonly CurrentValue: T | null;
158
+ readonly PreviousValue: T | null;
161
159
  readonly ThreadContextChanged: boolean;
162
160
  }
163
161
 
164
162
 
165
163
  export const AsyncLocalValueChangedArgs_1: {
166
- new<T>(): AsyncLocalValueChangedArgs_1<T>;
164
+ new<T extends unknown>(): AsyncLocalValueChangedArgs_1<T>;
167
165
  };
168
166
 
169
167
 
170
- export type AsyncLocalValueChangedArgs_1<T> = AsyncLocalValueChangedArgs_1$instance<T>;
168
+ export type AsyncLocalValueChangedArgs_1<T extends unknown> = AsyncLocalValueChangedArgs_1$instance<T>;
171
169
 
172
170
  export interface CancellationToken$instance {
173
171
  readonly __tsonic_type_System_Threading_CancellationToken: never;
@@ -178,16 +176,16 @@ export interface CancellationToken$instance {
178
176
  readonly IsCancellationRequested: boolean;
179
177
  readonly WaitHandle: WaitHandle;
180
178
  Equals(other: CancellationToken): boolean;
181
- Equals(other: unknown): boolean;
179
+ Equals(other: unknown | null): boolean;
182
180
  GetHashCode(): int;
183
181
  Register(callback: Action): CancellationTokenRegistration;
184
182
  Register(callback: Action, useSynchronizationContext: boolean): CancellationTokenRegistration;
185
- Register(callback: Action_1<unknown>, state: unknown): CancellationTokenRegistration;
186
- Register(callback: Action_2<unknown, CancellationToken>, state: unknown): CancellationTokenRegistration;
187
- Register(callback: Action_1<unknown>, state: unknown, useSynchronizationContext: boolean): CancellationTokenRegistration;
183
+ Register(callback: Action_1<unknown | null>, state: unknown | null): CancellationTokenRegistration;
184
+ Register(callback: Action_2<unknown | null, CancellationToken>, state: unknown | null): CancellationTokenRegistration;
185
+ Register(callback: Action_1<unknown | null>, state: unknown | null, useSynchronizationContext: boolean): CancellationTokenRegistration;
188
186
  ThrowIfCancellationRequested(): void;
189
- UnsafeRegister(callback: Action_1<unknown>, state: unknown): CancellationTokenRegistration;
190
- UnsafeRegister(callback: Action_2<unknown, CancellationToken>, state: unknown): CancellationTokenRegistration;
187
+ UnsafeRegister(callback: Action_1<unknown | null>, state: unknown | null): CancellationTokenRegistration;
188
+ UnsafeRegister(callback: Action_2<unknown | null, CancellationToken>, state: unknown | null): CancellationTokenRegistration;
191
189
  }
192
190
 
193
191
 
@@ -217,7 +215,7 @@ export interface CancellationTokenRegistration$instance extends System_Internal.
217
215
  readonly Token: CancellationToken;
218
216
  Dispose(): void;
219
217
  DisposeAsync(): ValueTask;
220
- Equals(obj: unknown): boolean;
218
+ Equals(obj: unknown | null): boolean;
221
219
  Equals(other: CancellationTokenRegistration): boolean;
222
220
  GetHashCode(): int;
223
221
  Unregister(): boolean;
@@ -241,26 +239,12 @@ export interface __CancellationTokenRegistration$views {
241
239
  export type CancellationTokenRegistration = CancellationTokenRegistration$instance & __CancellationTokenRegistration$views;
242
240
 
243
241
 
244
- export interface Lock_Scope$instance {
245
- readonly __tsonic_type_System_Threading_Lock_Scope: never;
246
-
247
- Dispose(): void;
248
- }
249
-
250
-
251
- export const Lock_Scope: {
252
- new(): Lock_Scope;
253
- };
254
-
255
-
256
- export type Lock_Scope = Lock_Scope$instance;
257
-
258
242
  export interface LockCookie$instance {
259
243
  readonly __tsonic_type_System_Threading_LockCookie: never;
260
244
 
261
245
  readonly __tsonic_iface_System_IEquatable_1: never;
262
246
 
263
- Equals(obj: unknown): boolean;
247
+ Equals(obj: unknown | null): boolean;
264
248
  Equals(obj: LockCookie): boolean;
265
249
  GetHashCode(): int;
266
250
  }
@@ -362,18 +346,18 @@ export interface AbandonedMutexException$instance extends SystemException, Syste
362
346
 
363
347
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
364
348
 
365
- readonly Mutex: Mutex | undefined;
349
+ readonly Mutex: Mutex | null;
366
350
  readonly MutexIndex: int;
367
351
  }
368
352
 
369
353
 
370
354
  export const AbandonedMutexException: {
371
355
  new(): AbandonedMutexException;
372
- new(message: string): AbandonedMutexException;
373
- new(message: string, inner: Exception): AbandonedMutexException;
374
- new(location: int, handle: WaitHandle): AbandonedMutexException;
375
- new(message: string, location: int, handle: WaitHandle): AbandonedMutexException;
376
- new(message: string, inner: Exception, location: int, handle: WaitHandle): AbandonedMutexException;
356
+ new(message: string | null): AbandonedMutexException;
357
+ new(message: string | null, inner: Exception | null): AbandonedMutexException;
358
+ new(location: int, handle: WaitHandle | null): AbandonedMutexException;
359
+ new(message: string | null, location: int, handle: WaitHandle | null): AbandonedMutexException;
360
+ new(message: string | null, inner: Exception | null, location: int, handle: WaitHandle | null): AbandonedMutexException;
377
361
  };
378
362
 
379
363
 
@@ -384,7 +368,7 @@ export interface __AbandonedMutexException$views {
384
368
  export type AbandonedMutexException = AbandonedMutexException$instance & __AbandonedMutexException$views;
385
369
 
386
370
 
387
- export interface AsyncLocal_1$instance<T> {
371
+ export interface AsyncLocal_1$instance<T extends unknown> {
388
372
  readonly __tsonic_type_System_Threading_AsyncLocal_1: never;
389
373
 
390
374
  readonly __tsonic_iface_System_Threading_IAsyncLocal: never;
@@ -394,12 +378,12 @@ export interface AsyncLocal_1$instance<T> {
394
378
 
395
379
 
396
380
  export const AsyncLocal_1: {
397
- new<T>(): AsyncLocal_1<T>;
398
- new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>>): AsyncLocal_1<T>;
381
+ new<T extends unknown>(): AsyncLocal_1<T>;
382
+ new<T extends unknown>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>> | null): AsyncLocal_1<T>;
399
383
  };
400
384
 
401
385
 
402
- export type AsyncLocal_1<T> = AsyncLocal_1$instance<T>;
386
+ export type AsyncLocal_1<T extends unknown> = AsyncLocal_1$instance<T>;
403
387
 
404
388
  export interface AutoResetEvent$instance extends EventWaitHandle$instance {
405
389
  readonly __tsonic_type_System_Threading_AutoResetEvent: never;
@@ -446,7 +430,7 @@ export interface Barrier$instance {
446
430
 
447
431
  export const Barrier: {
448
432
  new(participantCount: int): Barrier;
449
- new(participantCount: int, postPhaseAction: Action_1<Barrier>): Barrier;
433
+ new(participantCount: int, postPhaseAction: Action_1<Barrier> | null): Barrier;
450
434
  };
451
435
 
452
436
 
@@ -467,9 +451,9 @@ export interface BarrierPostPhaseException$instance extends Exception, System_Ru
467
451
 
468
452
  export const BarrierPostPhaseException: {
469
453
  new(): BarrierPostPhaseException;
470
- new(innerException: Exception): BarrierPostPhaseException;
471
- new(message: string): BarrierPostPhaseException;
472
- new(message: string, innerException: Exception): BarrierPostPhaseException;
454
+ new(innerException: Exception | null): BarrierPostPhaseException;
455
+ new(message: string | null): BarrierPostPhaseException;
456
+ new(message: string | null, innerException: Exception | null): BarrierPostPhaseException;
473
457
  };
474
458
 
475
459
 
@@ -530,7 +514,7 @@ export interface CompressedStack$instance extends System_Runtime_Serialization_I
530
514
  export const CompressedStack: {
531
515
  Capture(): CompressedStack;
532
516
  GetCompressedStack(): CompressedStack;
533
- Run(compressedStack: CompressedStack, callback: ContextCallback, state: unknown): void;
517
+ Run(compressedStack: CompressedStack, callback: ContextCallback, state: unknown | null): void;
534
518
  };
535
519
 
536
520
 
@@ -593,14 +577,14 @@ export interface EventWaitHandle$instance extends WaitHandle$instance {
593
577
 
594
578
  export const EventWaitHandle: {
595
579
  new(initialState: boolean, mode: EventResetMode): EventWaitHandle;
596
- new(initialState: boolean, mode: EventResetMode, name: string, options: NamedWaitHandleOptions): EventWaitHandle;
597
- new(initialState: boolean, mode: EventResetMode, name: string): EventWaitHandle;
598
- new(initialState: boolean, mode: EventResetMode, name: string, options: NamedWaitHandleOptions, createdNew: boolean): EventWaitHandle;
599
- new(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean): EventWaitHandle;
580
+ new(initialState: boolean, mode: EventResetMode, name: string | null, options: NamedWaitHandleOptions): EventWaitHandle;
581
+ new(initialState: boolean, mode: EventResetMode, name: string | null): EventWaitHandle;
582
+ new(initialState: boolean, mode: EventResetMode, name: string | null, options: NamedWaitHandleOptions, createdNew: boolean): EventWaitHandle;
583
+ new(initialState: boolean, mode: EventResetMode, name: string | null, createdNew: boolean): EventWaitHandle;
600
584
  OpenExisting(name: string, options: NamedWaitHandleOptions): EventWaitHandle;
601
585
  OpenExisting(name: string): EventWaitHandle;
602
- TryOpenExisting(name: string, result: EventWaitHandle): boolean;
603
- TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: EventWaitHandle): boolean;
586
+ TryOpenExisting(name: string, result: EventWaitHandle | null): boolean;
587
+ TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: EventWaitHandle | null): boolean;
604
588
  };
605
589
 
606
590
 
@@ -624,11 +608,11 @@ export interface ExecutionContext$instance extends System_Internal.IDisposable$i
624
608
 
625
609
 
626
610
  export const ExecutionContext: {
627
- Capture(): ExecutionContext | undefined;
611
+ Capture(): ExecutionContext | null;
628
612
  IsFlowSuppressed(): boolean;
629
613
  Restore(executionContext: ExecutionContext): void;
630
614
  RestoreFlow(): void;
631
- Run(executionContext: ExecutionContext, callback: ContextCallback, state: unknown): void;
615
+ Run(executionContext: ExecutionContext, callback: ContextCallback, state: unknown | null): void;
632
616
  SuppressFlow(): AsyncFlowControl;
633
617
  };
634
618
 
@@ -654,7 +638,7 @@ export interface HostExecutionContext$instance {
654
638
 
655
639
  export const HostExecutionContext: {
656
640
  new(): HostExecutionContext;
657
- new(state: unknown): HostExecutionContext;
641
+ new(state: unknown | null): HostExecutionContext;
658
642
  };
659
643
 
660
644
 
@@ -668,7 +652,7 @@ export type HostExecutionContext = HostExecutionContext$instance & __HostExecuti
668
652
  export interface HostExecutionContextManager$instance {
669
653
  readonly __tsonic_type_System_Threading_HostExecutionContextManager: never;
670
654
 
671
- Capture(): HostExecutionContext | undefined;
655
+ Capture(): HostExecutionContext | null;
672
656
  Revert(previousState: unknown): void;
673
657
  SetHostExecutionContext(hostExecutionContext: HostExecutionContext): unknown;
674
658
  }
@@ -701,6 +685,20 @@ export const Lock: {
701
685
 
702
686
  export type Lock = Lock$instance;
703
687
 
688
+ export interface Lock_Scope$instance {
689
+ readonly __tsonic_type_System_Threading_Lock_Scope: never;
690
+
691
+ Dispose(): void;
692
+ }
693
+
694
+
695
+ export const Lock_Scope: {
696
+ new(): Lock_Scope;
697
+ };
698
+
699
+
700
+ export type Lock_Scope = Lock_Scope$instance;
701
+
704
702
  export interface LockRecursionException$instance extends Exception, System_Runtime_Serialization_Internal.ISerializable$instance {
705
703
  readonly __tsonic_type_System_Threading_LockRecursionException: never;
706
704
 
@@ -711,8 +709,8 @@ export interface LockRecursionException$instance extends Exception, System_Runti
711
709
 
712
710
  export const LockRecursionException: {
713
711
  new(): LockRecursionException;
714
- new(message: string): LockRecursionException;
715
- new(message: string, innerException: Exception): LockRecursionException;
712
+ new(message: string | null): LockRecursionException;
713
+ new(message: string | null, innerException: Exception | null): LockRecursionException;
716
714
  };
717
715
 
718
716
 
@@ -788,17 +786,17 @@ export interface Mutex$instance extends WaitHandle$instance {
788
786
 
789
787
 
790
788
  export const Mutex: {
791
- new(initiallyOwned: boolean, name: string, options: NamedWaitHandleOptions, createdNew: boolean): Mutex;
792
- new(initiallyOwned: boolean, name: string, createdNew: boolean): Mutex;
793
- new(initiallyOwned: boolean, name: string, options: NamedWaitHandleOptions): Mutex;
794
- new(initiallyOwned: boolean, name: string): Mutex;
795
- new(name: string, options: NamedWaitHandleOptions): Mutex;
789
+ new(initiallyOwned: boolean, name: string | null, options: NamedWaitHandleOptions, createdNew: boolean): Mutex;
790
+ new(initiallyOwned: boolean, name: string | null, createdNew: boolean): Mutex;
791
+ new(initiallyOwned: boolean, name: string | null, options: NamedWaitHandleOptions): Mutex;
792
+ new(initiallyOwned: boolean, name: string | null): Mutex;
793
+ new(name: string | null, options: NamedWaitHandleOptions): Mutex;
796
794
  new(initiallyOwned: boolean): Mutex;
797
795
  new(): Mutex;
798
796
  OpenExisting(name: string, options: NamedWaitHandleOptions): Mutex;
799
797
  OpenExisting(name: string): Mutex;
800
- TryOpenExisting(name: string, result: Mutex): boolean;
801
- TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Mutex): boolean;
798
+ TryOpenExisting(name: string, result: Mutex | null): boolean;
799
+ TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Mutex | null): boolean;
802
800
  };
803
801
 
804
802
 
@@ -817,17 +815,17 @@ export interface Overlapped$instance {
817
815
  EventHandleIntPtr: nint;
818
816
  OffsetHigh: int;
819
817
  OffsetLow: int;
820
- Pack(iocb: IOCompletionCallback): ptr<NativeOverlapped>;
821
- Pack(iocb: IOCompletionCallback, userData: unknown): ptr<NativeOverlapped>;
822
- UnsafePack(iocb: IOCompletionCallback): ptr<NativeOverlapped>;
823
- UnsafePack(iocb: IOCompletionCallback, userData: unknown): ptr<NativeOverlapped>;
818
+ Pack(iocb: IOCompletionCallback | null): ptr<NativeOverlapped>;
819
+ Pack(iocb: IOCompletionCallback | null, userData: unknown | null): ptr<NativeOverlapped>;
820
+ UnsafePack(iocb: IOCompletionCallback | null): ptr<NativeOverlapped>;
821
+ UnsafePack(iocb: IOCompletionCallback | null, userData: unknown | null): ptr<NativeOverlapped>;
824
822
  }
825
823
 
826
824
 
827
825
  export const Overlapped: {
828
826
  new(): Overlapped;
829
- new(offsetLo: int, offsetHi: int, hEvent: nint, ar: IAsyncResult): Overlapped;
830
- new(offsetLo: int, offsetHi: int, hEvent: int, ar: IAsyncResult): Overlapped;
827
+ new(offsetLo: int, offsetHi: int, hEvent: nint, ar: IAsyncResult | null): Overlapped;
828
+ new(offsetLo: int, offsetHi: int, hEvent: int, ar: IAsyncResult | null): Overlapped;
831
829
  Free(nativeOverlappedPtr: ptr<NativeOverlapped>): void;
832
830
  Unpack(nativeOverlappedPtr: ptr<NativeOverlapped>): Overlapped;
833
831
  };
@@ -870,8 +868,8 @@ export interface PreAllocatedOverlapped$instance extends System_Internal.IDispos
870
868
 
871
869
 
872
870
  export const PreAllocatedOverlapped: {
873
- new(callback: IOCompletionCallback, state: unknown, pinData: unknown): PreAllocatedOverlapped;
874
- UnsafeCreate(callback: IOCompletionCallback, state: unknown, pinData: unknown): PreAllocatedOverlapped;
871
+ new(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): PreAllocatedOverlapped;
872
+ UnsafeCreate(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): PreAllocatedOverlapped;
875
873
  };
876
874
 
877
875
 
@@ -980,14 +978,14 @@ export interface Semaphore$instance extends WaitHandle$instance {
980
978
 
981
979
  export const Semaphore: {
982
980
  new(initialCount: int, maximumCount: int): Semaphore;
983
- new(initialCount: int, maximumCount: int, name: string, options: NamedWaitHandleOptions): Semaphore;
984
- new(initialCount: int, maximumCount: int, name: string): Semaphore;
985
- new(initialCount: int, maximumCount: int, name: string, options: NamedWaitHandleOptions, createdNew: boolean): Semaphore;
986
- new(initialCount: int, maximumCount: int, name: string, createdNew: boolean): Semaphore;
981
+ new(initialCount: int, maximumCount: int, name: string | null, options: NamedWaitHandleOptions): Semaphore;
982
+ new(initialCount: int, maximumCount: int, name: string | null): Semaphore;
983
+ new(initialCount: int, maximumCount: int, name: string | null, options: NamedWaitHandleOptions, createdNew: boolean): Semaphore;
984
+ new(initialCount: int, maximumCount: int, name: string | null, createdNew: boolean): Semaphore;
987
985
  OpenExisting(name: string, options: NamedWaitHandleOptions): Semaphore;
988
986
  OpenExisting(name: string): Semaphore;
989
- TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Semaphore): boolean;
990
- TryOpenExisting(name: string, result: Semaphore): boolean;
987
+ TryOpenExisting(name: string, options: NamedWaitHandleOptions, result: Semaphore | null): boolean;
988
+ TryOpenExisting(name: string, result: Semaphore | null): boolean;
991
989
  };
992
990
 
993
991
 
@@ -1008,8 +1006,8 @@ export interface SemaphoreFullException$instance extends SystemException, System
1008
1006
 
1009
1007
  export const SemaphoreFullException: {
1010
1008
  new(): SemaphoreFullException;
1011
- new(message: string): SemaphoreFullException;
1012
- new(message: string, innerException: Exception): SemaphoreFullException;
1009
+ new(message: string | null): SemaphoreFullException;
1010
+ new(message: string | null, innerException: Exception | null): SemaphoreFullException;
1013
1011
  };
1014
1012
 
1015
1013
 
@@ -1066,16 +1064,16 @@ export interface SynchronizationContext$instance {
1066
1064
  IsWaitNotificationRequired(): boolean;
1067
1065
  OperationCompleted(): void;
1068
1066
  OperationStarted(): void;
1069
- Post(d: SendOrPostCallback, state: unknown): void;
1070
- Send(d: SendOrPostCallback, state: unknown): void;
1067
+ Post(d: SendOrPostCallback, state: unknown | null): void;
1068
+ Send(d: SendOrPostCallback, state: unknown | null): void;
1071
1069
  Wait(waitHandles: nint[], waitAll: boolean, millisecondsTimeout: int): int;
1072
1070
  }
1073
1071
 
1074
1072
 
1075
1073
  export const SynchronizationContext: {
1076
1074
  new(): SynchronizationContext;
1077
- readonly Current: SynchronizationContext | undefined;
1078
- SetSynchronizationContext(syncContext: SynchronizationContext): void;
1075
+ readonly Current: SynchronizationContext | null;
1076
+ SetSynchronizationContext(syncContext: SynchronizationContext | null): void;
1079
1077
  WaitHelper(waitHandles: nint[], waitAll: boolean, millisecondsTimeout: int): int;
1080
1078
  };
1081
1079
 
@@ -1092,8 +1090,8 @@ export interface SynchronizationLockException$instance extends SystemException,
1092
1090
 
1093
1091
  export const SynchronizationLockException: {
1094
1092
  new(): SynchronizationLockException;
1095
- new(message: string): SynchronizationLockException;
1096
- new(message: string, innerException: Exception): SynchronizationLockException;
1093
+ new(message: string | null): SynchronizationLockException;
1094
+ new(message: string | null, innerException: Exception | null): SynchronizationLockException;
1097
1095
  };
1098
1096
 
1099
1097
 
@@ -1110,17 +1108,17 @@ export interface Thread$instance extends CriticalFinalizerObject {
1110
1108
  ApartmentState: ApartmentState;
1111
1109
  CurrentCulture: CultureInfo;
1112
1110
  CurrentUICulture: CultureInfo;
1113
- readonly ExecutionContext: ExecutionContext | undefined;
1111
+ readonly ExecutionContext: ExecutionContext | null;
1114
1112
  readonly IsAlive: boolean;
1115
1113
  IsBackground: boolean;
1116
1114
  IsThreadPoolThread: boolean;
1117
1115
  readonly ManagedThreadId: int;
1118
- get Name(): string | undefined;
1119
- set Name(value: string | undefined);
1116
+ get Name(): string | null;
1117
+ set Name(value: string | null);
1120
1118
  Priority: ThreadPriority;
1121
1119
  readonly ThreadState: ThreadState;
1122
1120
  Abort(): void;
1123
- Abort(stateInfo: unknown): void;
1121
+ Abort(stateInfo: unknown | null): void;
1124
1122
  DisableComObjectEagerCleanup(): void;
1125
1123
  Finalize(): void;
1126
1124
  GetApartmentState(): ApartmentState;
@@ -1133,11 +1131,11 @@ export interface Thread$instance extends CriticalFinalizerObject {
1133
1131
  Resume(): void;
1134
1132
  SetApartmentState(state: ApartmentState): void;
1135
1133
  SetCompressedStack(stack: CompressedStack): void;
1136
- Start(parameter: unknown): void;
1134
+ Start(parameter: unknown | null): void;
1137
1135
  Start(): void;
1138
1136
  Suspend(): void;
1139
1137
  TrySetApartmentState(state: ApartmentState): boolean;
1140
- UnsafeStart(parameter: unknown): void;
1138
+ UnsafeStart(parameter: unknown | null): void;
1141
1139
  UnsafeStart(): void;
1142
1140
  }
1143
1141
 
@@ -1147,8 +1145,8 @@ export const Thread: {
1147
1145
  new(start: ThreadStart, maxStackSize: int): Thread;
1148
1146
  new(start: ParameterizedThreadStart): Thread;
1149
1147
  new(start: ParameterizedThreadStart, maxStackSize: int): Thread;
1150
- get CurrentPrincipal(): IPrincipal | undefined;
1151
- set CurrentPrincipal(value: IPrincipal | undefined);
1148
+ get CurrentPrincipal(): IPrincipal | null;
1149
+ set CurrentPrincipal(value: IPrincipal | null);
1152
1150
  readonly CurrentThread: Thread;
1153
1151
  AllocateDataSlot(): LocalDataStoreSlot;
1154
1152
  AllocateNamedDataSlot(name: string): LocalDataStoreSlot;
@@ -1158,13 +1156,13 @@ export const Thread: {
1158
1156
  EndThreadAffinity(): void;
1159
1157
  FreeNamedDataSlot(name: string): void;
1160
1158
  GetCurrentProcessorId(): int;
1161
- GetData(slot: LocalDataStoreSlot): unknown | undefined;
1159
+ GetData(slot: LocalDataStoreSlot): unknown | null;
1162
1160
  GetDomain(): AppDomain;
1163
1161
  GetDomainID(): int;
1164
1162
  GetNamedDataSlot(name: string): LocalDataStoreSlot;
1165
1163
  MemoryBarrier(): void;
1166
1164
  ResetAbort(): void;
1167
- SetData(slot: LocalDataStoreSlot, data: unknown): void;
1165
+ SetData(slot: LocalDataStoreSlot, data: unknown | null): void;
1168
1166
  Sleep(millisecondsTimeout: int): void;
1169
1167
  Sleep(timeout: TimeSpan): void;
1170
1168
  SpinWait(iterations: int): void;
@@ -1174,7 +1172,7 @@ export const Thread: {
1174
1172
  VolatileRead(address: int): int;
1175
1173
  VolatileRead(address: long): long;
1176
1174
  VolatileRead(address: nint): nint;
1177
- VolatileRead(address: unknown): unknown | undefined;
1175
+ VolatileRead(address: unknown | null): unknown | null;
1178
1176
  VolatileRead(address: sbyte): sbyte;
1179
1177
  VolatileRead(address: float): float;
1180
1178
  VolatileRead(address: ushort): ushort;
@@ -1187,7 +1185,7 @@ export const Thread: {
1187
1185
  VolatileWrite(address: int, value: int): void;
1188
1186
  VolatileWrite(address: long, value: long): void;
1189
1187
  VolatileWrite(address: nint, value: nint): void;
1190
- VolatileWrite(address: unknown, value: unknown): void;
1188
+ VolatileWrite(address: unknown | null, value: unknown | null): void;
1191
1189
  VolatileWrite(address: sbyte, value: sbyte): void;
1192
1190
  VolatileWrite(address: float, value: float): void;
1193
1191
  VolatileWrite(address: ushort, value: ushort): void;
@@ -1205,7 +1203,7 @@ export interface ThreadAbortException$instance extends SystemException, System_R
1205
1203
 
1206
1204
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
1207
1205
 
1208
- readonly ExceptionState: unknown | undefined;
1206
+ readonly ExceptionState: unknown | null;
1209
1207
  }
1210
1208
 
1211
1209
 
@@ -1244,8 +1242,8 @@ export interface ThreadInterruptedException$instance extends SystemException, Sy
1244
1242
 
1245
1243
  export const ThreadInterruptedException: {
1246
1244
  new(): ThreadInterruptedException;
1247
- new(message: string): ThreadInterruptedException;
1248
- new(message: string, innerException: Exception): ThreadInterruptedException;
1245
+ new(message: string | null): ThreadInterruptedException;
1246
+ new(message: string | null, innerException: Exception | null): ThreadInterruptedException;
1249
1247
  };
1250
1248
 
1251
1249
 
@@ -1256,7 +1254,7 @@ export interface __ThreadInterruptedException$views {
1256
1254
  export type ThreadInterruptedException = ThreadInterruptedException$instance & __ThreadInterruptedException$views;
1257
1255
 
1258
1256
 
1259
- export interface ThreadLocal_1$instance<T> {
1257
+ export interface ThreadLocal_1$instance<T extends unknown> {
1260
1258
  readonly __tsonic_type_System_Threading_ThreadLocal_1: never;
1261
1259
 
1262
1260
  readonly __tsonic_iface_System_IDisposable: never;
@@ -1267,23 +1265,23 @@ export interface ThreadLocal_1$instance<T> {
1267
1265
  Dispose(): void;
1268
1266
  Dispose(disposing: boolean): void;
1269
1267
  Finalize(): void;
1270
- ToString(): string | undefined;
1268
+ ToString(): string | null;
1271
1269
  }
1272
1270
 
1273
1271
 
1274
1272
  export const ThreadLocal_1: {
1275
- new<T>(): ThreadLocal_1<T>;
1276
- new<T>(trackAllValues: boolean): ThreadLocal_1<T>;
1277
- new<T>(valueFactory: Func_1<T>): ThreadLocal_1<T>;
1278
- new<T>(valueFactory: Func_1<T>, trackAllValues: boolean): ThreadLocal_1<T>;
1273
+ new<T extends unknown>(): ThreadLocal_1<T>;
1274
+ new<T extends unknown>(trackAllValues: boolean): ThreadLocal_1<T>;
1275
+ new<T extends unknown>(valueFactory: Func_1<T>): ThreadLocal_1<T>;
1276
+ new<T extends unknown>(valueFactory: Func_1<T>, trackAllValues: boolean): ThreadLocal_1<T>;
1279
1277
  };
1280
1278
 
1281
1279
 
1282
- export interface __ThreadLocal_1$views<T> {
1280
+ export interface __ThreadLocal_1$views<T extends unknown> {
1283
1281
  As_IDisposable(): System_Internal.IDisposable$instance;
1284
1282
  }
1285
1283
 
1286
- export type ThreadLocal_1<T> = ThreadLocal_1$instance<T> & __ThreadLocal_1$views<T>;
1284
+ export type ThreadLocal_1<T extends unknown> = ThreadLocal_1$instance<T> & __ThreadLocal_1$views<T>;
1287
1285
 
1288
1286
 
1289
1287
  export interface ThreadPoolBoundHandle$instance extends System_Internal.IDisposable$instance {
@@ -1292,17 +1290,17 @@ export interface ThreadPoolBoundHandle$instance extends System_Internal.IDisposa
1292
1290
  readonly __tsonic_iface_System_IDisposable: never;
1293
1291
 
1294
1292
  readonly Handle: SafeHandle;
1295
- AllocateNativeOverlapped(callback: IOCompletionCallback, state: unknown, pinData: unknown): ptr<NativeOverlapped>;
1293
+ AllocateNativeOverlapped(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): ptr<NativeOverlapped>;
1296
1294
  AllocateNativeOverlapped(preAllocated: PreAllocatedOverlapped): ptr<NativeOverlapped>;
1297
1295
  Dispose(): void;
1298
1296
  FreeNativeOverlapped(overlapped: ptr<NativeOverlapped>): void;
1299
- UnsafeAllocateNativeOverlapped(callback: IOCompletionCallback, state: unknown, pinData: unknown): ptr<NativeOverlapped>;
1297
+ UnsafeAllocateNativeOverlapped(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): ptr<NativeOverlapped>;
1300
1298
  }
1301
1299
 
1302
1300
 
1303
1301
  export const ThreadPoolBoundHandle: {
1304
1302
  BindHandle(handle: SafeHandle): ThreadPoolBoundHandle;
1305
- GetNativeOverlappedState(overlapped: ptr<NativeOverlapped>): unknown | undefined;
1303
+ GetNativeOverlappedState(overlapped: ptr<NativeOverlapped>): unknown | null;
1306
1304
  };
1307
1305
 
1308
1306
 
@@ -1342,8 +1340,8 @@ export interface ThreadStateException$instance extends SystemException, System_R
1342
1340
 
1343
1341
  export const ThreadStateException: {
1344
1342
  new(): ThreadStateException;
1345
- new(message: string): ThreadStateException;
1346
- new(message: string, innerException: Exception): ThreadStateException;
1343
+ new(message: string | null): ThreadStateException;
1344
+ new(message: string | null, innerException: Exception | null): ThreadStateException;
1347
1345
  };
1348
1346
 
1349
1347
 
@@ -1372,10 +1370,10 @@ export interface Timer$instance extends MarshalByRefObject {
1372
1370
 
1373
1371
 
1374
1372
  export const Timer: {
1375
- new(callback: TimerCallback, state: unknown, dueTime: int, period: int): Timer;
1376
- new(callback: TimerCallback, state: unknown, dueTime: TimeSpan, period: TimeSpan): Timer;
1377
- new(callback: TimerCallback, state: unknown, dueTime: uint, period: uint): Timer;
1378
- new(callback: TimerCallback, state: unknown, dueTime: long, period: long): Timer;
1373
+ new(callback: TimerCallback, state: unknown | null, dueTime: int, period: int): Timer;
1374
+ new(callback: TimerCallback, state: unknown | null, dueTime: TimeSpan, period: TimeSpan): Timer;
1375
+ new(callback: TimerCallback, state: unknown | null, dueTime: uint, period: uint): Timer;
1376
+ new(callback: TimerCallback, state: unknown | null, dueTime: long, period: long): Timer;
1379
1377
  new(callback: TimerCallback): Timer;
1380
1378
  readonly ActiveCount: long;
1381
1379
  };
@@ -1444,8 +1442,8 @@ export interface WaitHandleCannotBeOpenedException$instance extends ApplicationE
1444
1442
 
1445
1443
  export const WaitHandleCannotBeOpenedException: {
1446
1444
  new(): WaitHandleCannotBeOpenedException;
1447
- new(message: string): WaitHandleCannotBeOpenedException;
1448
- new(message: string, innerException: Exception): WaitHandleCannotBeOpenedException;
1445
+ new(message: string | null): WaitHandleCannotBeOpenedException;
1446
+ new(message: string | null, innerException: Exception | null): WaitHandleCannotBeOpenedException;
1449
1447
  };
1450
1448
 
1451
1449
 
@@ -1457,9 +1455,9 @@ export type WaitHandleCannotBeOpenedException = WaitHandleCannotBeOpenedExceptio
1457
1455
 
1458
1456
 
1459
1457
  export abstract class EventWaitHandleAcl$instance {
1460
- static Create(initialState: boolean, mode: EventResetMode, name: string, createdNew: boolean, eventSecurity: EventWaitHandleSecurity): EventWaitHandle;
1458
+ static Create(initialState: boolean, mode: EventResetMode, name: string | null, createdNew: boolean, eventSecurity: EventWaitHandleSecurity | null): EventWaitHandle;
1461
1459
  static OpenExisting(name: string, rights: EventWaitHandleRights): EventWaitHandle;
1462
- static TryOpenExisting(name: string, rights: EventWaitHandleRights, result: EventWaitHandle): boolean;
1460
+ static TryOpenExisting(name: string, rights: EventWaitHandleRights, result: EventWaitHandle | null): boolean;
1463
1461
  }
1464
1462
 
1465
1463
 
@@ -1480,14 +1478,14 @@ export abstract class Interlocked$instance {
1480
1478
  static CompareExchange(location1: int, value: int, comparand: int): int;
1481
1479
  static CompareExchange(location1: long, value: long, comparand: long): long;
1482
1480
  static CompareExchange(location1: nint, value: nint, comparand: nint): nint;
1483
- static CompareExchange(location1: unknown, value: unknown, comparand: unknown): unknown | undefined;
1481
+ static CompareExchange(location1: unknown | null, value: unknown | null, comparand: unknown | null): unknown | null;
1484
1482
  static CompareExchange(location1: sbyte, value: sbyte, comparand: sbyte): sbyte;
1485
1483
  static CompareExchange(location1: float, value: float, comparand: float): float;
1486
1484
  static CompareExchange(location1: ushort, value: ushort, comparand: ushort): ushort;
1487
1485
  static CompareExchange(location1: uint, value: uint, comparand: uint): uint;
1488
1486
  static CompareExchange(location1: ulong, value: ulong, comparand: ulong): ulong;
1489
1487
  static CompareExchange(location1: nuint, value: nuint, comparand: nuint): nuint;
1490
- static CompareExchange<T>(location1: T, value: T, comparand: T): T;
1488
+ static CompareExchange<T extends unknown>(location1: T, value: T, comparand: T): T;
1491
1489
  static Decrement(location: int): int;
1492
1490
  static Decrement(location: long): long;
1493
1491
  static Decrement(location: uint): uint;
@@ -1498,14 +1496,14 @@ export abstract class Interlocked$instance {
1498
1496
  static Exchange(location1: int, value: int): int;
1499
1497
  static Exchange(location1: long, value: long): long;
1500
1498
  static Exchange(location1: nint, value: nint): nint;
1501
- static Exchange(location1: unknown, value: unknown): unknown | undefined;
1499
+ static Exchange(location1: unknown | null, value: unknown | null): unknown | null;
1502
1500
  static Exchange(location1: sbyte, value: sbyte): sbyte;
1503
1501
  static Exchange(location1: float, value: float): float;
1504
1502
  static Exchange(location1: ushort, value: ushort): ushort;
1505
1503
  static Exchange(location1: uint, value: uint): uint;
1506
1504
  static Exchange(location1: ulong, value: ulong): ulong;
1507
1505
  static Exchange(location1: nuint, value: nuint): nuint;
1508
- static Exchange<T>(location1: T, value: T): T;
1506
+ static Exchange<T extends unknown>(location1: T, value: T): T;
1509
1507
  static Increment(location: int): int;
1510
1508
  static Increment(location: long): long;
1511
1509
  static Increment(location: uint): uint;
@@ -1524,11 +1522,11 @@ export abstract class Interlocked$instance {
1524
1522
  export type Interlocked = Interlocked$instance;
1525
1523
 
1526
1524
  export abstract class LazyInitializer$instance {
1527
- static EnsureInitialized<T>(target: T, valueFactory: Func_1<T>): T;
1528
- static EnsureInitialized<T>(target: T, initialized: boolean, syncLock: unknown, valueFactory: Func_1<T>): T;
1529
- static EnsureInitialized<T>(target: T, initialized: boolean, syncLock: unknown): T;
1530
- static EnsureInitialized<T>(target: T, syncLock: unknown, valueFactory: Func_1<T>): T;
1531
- static EnsureInitialized<T>(target: T): T;
1525
+ static EnsureInitialized<T extends (object | null)>(target: T | null, valueFactory: Func_1<T>): T;
1526
+ static EnsureInitialized<T extends unknown>(target: T, initialized: boolean, syncLock: unknown | null, valueFactory: Func_1<T>): T;
1527
+ static EnsureInitialized<T extends unknown>(target: T, initialized: boolean, syncLock: unknown | null): T;
1528
+ static EnsureInitialized<T extends (object | null)>(target: T | null, syncLock: unknown | null, valueFactory: Func_1<T>): T;
1529
+ static EnsureInitialized<T extends (object | null)>(target: T | null): T;
1532
1530
  }
1533
1531
 
1534
1532
 
@@ -1559,18 +1557,18 @@ export abstract class Monitor$instance {
1559
1557
  export type Monitor = Monitor$instance;
1560
1558
 
1561
1559
  export abstract class MutexAcl$instance {
1562
- static Create(initiallyOwned: boolean, name: string, createdNew: boolean, mutexSecurity: MutexSecurity): Mutex;
1560
+ static Create(initiallyOwned: boolean, name: string | null, createdNew: boolean, mutexSecurity: MutexSecurity | null): Mutex;
1563
1561
  static OpenExisting(name: string, rights: MutexRights): Mutex;
1564
- static TryOpenExisting(name: string, rights: MutexRights, result: Mutex): boolean;
1562
+ static TryOpenExisting(name: string, rights: MutexRights, result: Mutex | null): boolean;
1565
1563
  }
1566
1564
 
1567
1565
 
1568
1566
  export type MutexAcl = MutexAcl$instance;
1569
1567
 
1570
1568
  export abstract class SemaphoreAcl$instance {
1571
- static Create(initialCount: int, maximumCount: int, name: string, createdNew: boolean, semaphoreSecurity: SemaphoreSecurity): Semaphore;
1569
+ static Create(initialCount: int, maximumCount: int, name: string | null, createdNew: boolean, semaphoreSecurity: SemaphoreSecurity | null): Semaphore;
1572
1570
  static OpenExisting(name: string, rights: SemaphoreRights): Semaphore;
1573
- static TryOpenExisting(name: string, rights: SemaphoreRights, result: Semaphore): boolean;
1571
+ static TryOpenExisting(name: string, rights: SemaphoreRights, result: Semaphore | null): boolean;
1574
1572
  }
1575
1573
 
1576
1574
 
@@ -1597,23 +1595,23 @@ export abstract class ThreadPool$instance {
1597
1595
  static GetAvailableThreads(workerThreads: int, completionPortThreads: int): void;
1598
1596
  static GetMaxThreads(workerThreads: int, completionPortThreads: int): void;
1599
1597
  static GetMinThreads(workerThreads: int, completionPortThreads: int): void;
1600
- static QueueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
1601
- static QueueUserWorkItem(callBack: WaitCallback, state: unknown): boolean;
1598
+ static QueueUserWorkItem<TState extends unknown>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
1599
+ static QueueUserWorkItem(callBack: WaitCallback, state: unknown | null): boolean;
1602
1600
  static QueueUserWorkItem(callBack: WaitCallback): boolean;
1603
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1604
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1605
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1606
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1601
+ static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1602
+ static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1603
+ static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1604
+ static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1607
1605
  static SetMaxThreads(workerThreads: int, completionPortThreads: int): boolean;
1608
1606
  static SetMinThreads(workerThreads: int, completionPortThreads: int): boolean;
1609
1607
  static UnsafeQueueNativeOverlapped(overlapped: ptr<NativeOverlapped>): boolean;
1610
- static UnsafeQueueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
1608
+ static UnsafeQueueUserWorkItem<TState extends unknown>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
1611
1609
  static UnsafeQueueUserWorkItem(callBack: IThreadPoolWorkItem, preferLocal: boolean): boolean;
1612
- static UnsafeQueueUserWorkItem(callBack: WaitCallback, state: unknown): boolean;
1613
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1614
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1615
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1616
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1610
+ static UnsafeQueueUserWorkItem(callBack: WaitCallback, state: unknown | null): boolean;
1611
+ static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1612
+ static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1613
+ static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1614
+ static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: unknown | null, millisecondsTimeOutInterval: uint, executeOnlyOnce: boolean): RegisteredWaitHandle;
1617
1615
  }
1618
1616
 
1619
1617
 
@@ -1641,7 +1639,7 @@ export abstract class Volatile$instance {
1641
1639
  static Read(location: uint): uint;
1642
1640
  static Read(location: ulong): ulong;
1643
1641
  static Read(location: nuint): nuint;
1644
- static Read<T>(location: T): T;
1642
+ static Read<T extends (object | null)>(location: T): T;
1645
1643
  static ReadBarrier(): void;
1646
1644
  static Write(location: boolean, value: boolean): void;
1647
1645
  static Write(location: byte, value: byte): void;
@@ -1656,7 +1654,7 @@ export abstract class Volatile$instance {
1656
1654
  static Write(location: uint, value: uint): void;
1657
1655
  static Write(location: ulong, value: ulong): void;
1658
1656
  static Write(location: nuint, value: nuint): void;
1659
- static Write<T>(location: T, value: T): void;
1657
+ static Write<T extends (object | null)>(location: T, value: T): void;
1660
1658
  static WriteBarrier(): void;
1661
1659
  }
1662
1660
 
@@ -1665,7 +1663,7 @@ export type Volatile = Volatile$instance;
1665
1663
 
1666
1664
  export abstract class WaitHandleExtensions$instance {
1667
1665
  static GetSafeWaitHandle(waitHandle: WaitHandle): SafeWaitHandle;
1668
- static SetSafeWaitHandle(waitHandle: WaitHandle, value: SafeWaitHandle): void;
1666
+ static SetSafeWaitHandle(waitHandle: WaitHandle, value: SafeWaitHandle | null): void;
1669
1667
  }
1670
1668
 
1671
1669