@tsonic/dotnet 10.0.41 → 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 (332) hide show
  1. package/Internal/bindings.json +5 -5
  2. package/Internal/internal/index.d.ts +1 -1
  3. package/Internal.d.ts +4 -0
  4. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +1 -1
  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 +51 -51
  8. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +116 -116
  9. package/Microsoft.VisualBasic.CompilerServices.d.ts +4 -0
  10. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +2 -2
  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 +9 -9
  14. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +1 -1
  15. package/Microsoft.Win32.SafeHandles.d.ts +4 -0
  16. package/Microsoft.Win32.d.ts +4 -0
  17. package/README.md +8 -1
  18. package/System/bindings.json +204 -124
  19. package/System/internal/index.d.ts +1041 -1026
  20. package/System.Buffers/internal/index.d.ts +51 -51
  21. package/System.Buffers.Binary/internal/index.d.ts +1 -1
  22. package/System.Buffers.Binary.d.ts +4 -0
  23. package/System.Buffers.Text/internal/index.d.ts +1 -1
  24. package/System.Buffers.Text.d.ts +4 -0
  25. package/System.Buffers.d.ts +10 -6
  26. package/System.CodeDom.Compiler/internal/index.d.ts +14 -14
  27. package/System.CodeDom.Compiler.d.ts +4 -0
  28. package/System.Collections/bindings.json +300 -300
  29. package/System.Collections/internal/index.d.ts +113 -113
  30. package/System.Collections.Concurrent/bindings.json +93 -93
  31. package/System.Collections.Concurrent/internal/index.d.ts +65 -65
  32. package/System.Collections.Concurrent.d.ts +7 -3
  33. package/System.Collections.Frozen/bindings.json +90 -50
  34. package/System.Collections.Frozen/internal/index.d.ts +35 -33
  35. package/System.Collections.Frozen.d.ts +6 -2
  36. package/System.Collections.Generic/bindings.json +932 -612
  37. package/System.Collections.Generic/internal/index.d.ts +303 -287
  38. package/System.Collections.Generic.d.ts +19 -15
  39. package/System.Collections.Immutable/bindings.json +189 -189
  40. package/System.Collections.Immutable/internal/index.d.ts +235 -234
  41. package/System.Collections.Immutable.d.ts +21 -17
  42. package/System.Collections.ObjectModel/bindings.json +229 -229
  43. package/System.Collections.ObjectModel/internal/index.d.ts +41 -41
  44. package/System.Collections.ObjectModel.d.ts +6 -2
  45. package/System.Collections.Specialized/bindings.json +79 -79
  46. package/System.Collections.Specialized/internal/index.d.ts +46 -46
  47. package/System.Collections.Specialized.d.ts +4 -0
  48. package/System.Collections.d.ts +4 -0
  49. package/System.ComponentModel/bindings.json +108 -108
  50. package/System.ComponentModel/internal/index.d.ts +368 -363
  51. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +78 -78
  52. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +1 -1
  53. package/System.ComponentModel.DataAnnotations.Schema.d.ts +4 -0
  54. package/System.ComponentModel.DataAnnotations.d.ts +4 -0
  55. package/System.ComponentModel.Design/bindings.json +18 -18
  56. package/System.ComponentModel.Design/internal/index.d.ts +47 -47
  57. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +38 -38
  58. package/System.ComponentModel.Design.Serialization.d.ts +4 -0
  59. package/System.ComponentModel.Design.d.ts +4 -0
  60. package/System.ComponentModel.d.ts +4 -0
  61. package/System.Configuration.Assemblies/internal/index.d.ts +1 -1
  62. package/System.Configuration.Assemblies.d.ts +4 -0
  63. package/System.Data/bindings.json +124 -124
  64. package/System.Data/internal/index.d.ts +156 -156
  65. package/System.Data.Common/bindings.json +68 -68
  66. package/System.Data.Common/internal/index.d.ts +42 -42
  67. package/System.Data.Common.d.ts +4 -0
  68. package/System.Data.SqlTypes/internal/index.d.ts +40 -40
  69. package/System.Data.SqlTypes.d.ts +4 -0
  70. package/System.Data.d.ts +8 -4
  71. package/System.Diagnostics/bindings.json +251 -231
  72. package/System.Diagnostics/internal/index.d.ts +167 -154
  73. package/System.Diagnostics.CodeAnalysis/bindings.json +121 -121
  74. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +7 -7
  75. package/System.Diagnostics.CodeAnalysis.d.ts +4 -0
  76. package/System.Diagnostics.Contracts/bindings.json +62 -62
  77. package/System.Diagnostics.Contracts/internal/index.d.ts +9 -9
  78. package/System.Diagnostics.Contracts.d.ts +4 -0
  79. package/System.Diagnostics.Metrics/internal/index.d.ts +86 -86
  80. package/System.Diagnostics.Metrics.d.ts +7 -3
  81. package/System.Diagnostics.SymbolStore/bindings.json +2 -2
  82. package/System.Diagnostics.SymbolStore/internal/index.d.ts +3 -3
  83. package/System.Diagnostics.SymbolStore.d.ts +4 -0
  84. package/System.Diagnostics.Tracing/bindings.json +212 -212
  85. package/System.Diagnostics.Tracing/internal/index.d.ts +7 -7
  86. package/System.Diagnostics.Tracing.d.ts +4 -0
  87. package/System.Diagnostics.d.ts +5 -1
  88. package/System.Drawing/internal/index.d.ts +48 -48
  89. package/System.Drawing.d.ts +4 -0
  90. package/System.Dynamic/bindings.json +13 -13
  91. package/System.Dynamic/internal/index.d.ts +36 -35
  92. package/System.Dynamic.d.ts +4 -0
  93. package/System.Formats.Asn1/internal/index.d.ts +11 -11
  94. package/System.Formats.Asn1.d.ts +4 -0
  95. package/System.Formats.Tar/internal/index.d.ts +1 -1
  96. package/System.Formats.Tar.d.ts +4 -0
  97. package/System.Globalization/bindings.json +3 -3
  98. package/System.Globalization/internal/index.d.ts +19 -19
  99. package/System.Globalization.d.ts +4 -0
  100. package/System.IO/bindings.json +957 -957
  101. package/System.IO/internal/index.d.ts +55 -55
  102. package/System.IO.Compression/internal/index.d.ts +13 -13
  103. package/System.IO.Compression.d.ts +4 -0
  104. package/System.IO.Enumeration/bindings.json +47 -47
  105. package/System.IO.Enumeration/internal/index.d.ts +11 -11
  106. package/System.IO.Enumeration.d.ts +4 -0
  107. package/System.IO.IsolatedStorage/internal/index.d.ts +10 -10
  108. package/System.IO.IsolatedStorage.d.ts +4 -0
  109. package/System.IO.MemoryMappedFiles/internal/index.d.ts +1 -1
  110. package/System.IO.MemoryMappedFiles.d.ts +4 -0
  111. package/System.IO.Pipelines/internal/index.d.ts +4 -4
  112. package/System.IO.Pipelines.d.ts +4 -0
  113. package/System.IO.Pipes/internal/index.d.ts +4 -4
  114. package/System.IO.Pipes.d.ts +4 -0
  115. package/System.IO.d.ts +4 -0
  116. package/System.Linq/bindings.json +22 -22
  117. package/System.Linq/internal/index.d.ts +703 -701
  118. package/System.Linq.Expressions/internal/index.d.ts +67 -41
  119. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +3 -3
  120. package/System.Linq.Expressions.Interpreter.d.ts +4 -0
  121. package/System.Linq.Expressions.d.ts +6 -2
  122. package/System.Linq.d.ts +18 -14
  123. package/System.Net/bindings.json +27 -27
  124. package/System.Net/internal/index.d.ts +53 -53
  125. package/System.Net.Cache/internal/index.d.ts +1 -1
  126. package/System.Net.Cache.d.ts +4 -0
  127. package/System.Net.Http/bindings.json +22 -22
  128. package/System.Net.Http/internal/index.d.ts +16 -16
  129. package/System.Net.Http.Headers/bindings.json +66 -26
  130. package/System.Net.Http.Headers/internal/index.d.ts +26 -24
  131. package/System.Net.Http.Headers.d.ts +4 -0
  132. package/System.Net.Http.Json/internal/index.d.ts +63 -63
  133. package/System.Net.Http.Json.d.ts +4 -0
  134. package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
  135. package/System.Net.Http.Metrics.d.ts +4 -0
  136. package/System.Net.Http.d.ts +5 -1
  137. package/System.Net.Mail/bindings.json +96 -96
  138. package/System.Net.Mail/internal/index.d.ts +8 -8
  139. package/System.Net.Mail.d.ts +4 -0
  140. package/System.Net.Mime/internal/index.d.ts +3 -3
  141. package/System.Net.Mime.d.ts +4 -0
  142. package/System.Net.NetworkInformation/bindings.json +40 -40
  143. package/System.Net.NetworkInformation/internal/index.d.ts +15 -15
  144. package/System.Net.NetworkInformation.d.ts +4 -0
  145. package/System.Net.Quic/internal/index.d.ts +4 -4
  146. package/System.Net.Quic.d.ts +4 -0
  147. package/System.Net.Security/internal/index.d.ts +29 -29
  148. package/System.Net.Security.d.ts +4 -0
  149. package/System.Net.ServerSentEvents/internal/index.d.ts +9 -9
  150. package/System.Net.ServerSentEvents.d.ts +7 -3
  151. package/System.Net.Sockets/internal/index.d.ts +42 -42
  152. package/System.Net.Sockets.d.ts +4 -0
  153. package/System.Net.WebSockets/bindings.json +101 -101
  154. package/System.Net.WebSockets/internal/index.d.ts +5 -5
  155. package/System.Net.WebSockets.d.ts +4 -0
  156. package/System.Net.d.ts +4 -0
  157. package/System.Numerics/bindings.json +3 -3
  158. package/System.Numerics/internal/index.d.ts +218 -218
  159. package/System.Numerics.d.ts +38 -34
  160. package/System.Reflection/bindings.json +870 -870
  161. package/System.Reflection/internal/index.d.ts +107 -107
  162. package/System.Reflection.Emit/bindings.json +754 -754
  163. package/System.Reflection.Emit/internal/index.d.ts +27 -25
  164. package/System.Reflection.Emit.d.ts +4 -0
  165. package/System.Reflection.Metadata/bindings.json +607 -87
  166. package/System.Reflection.Metadata/internal/index.d.ts +144 -118
  167. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +9 -9
  168. package/System.Reflection.Metadata.Ecma335.d.ts +4 -0
  169. package/System.Reflection.Metadata.d.ts +9 -5
  170. package/System.Reflection.PortableExecutable/internal/index.d.ts +2 -2
  171. package/System.Reflection.PortableExecutable.d.ts +4 -0
  172. package/System.Reflection.d.ts +4 -0
  173. package/System.Resources/bindings.json +3 -3
  174. package/System.Resources/internal/index.d.ts +7 -7
  175. package/System.Resources.d.ts +4 -0
  176. package/System.Runtime/bindings.json +9 -9
  177. package/System.Runtime/internal/index.d.ts +7 -7
  178. package/System.Runtime.CompilerServices/bindings.json +383 -383
  179. package/System.Runtime.CompilerServices/internal/index.d.ts +226 -226
  180. package/System.Runtime.CompilerServices.d.ts +20 -16
  181. package/System.Runtime.ConstrainedExecution/bindings.json +9 -9
  182. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +1 -1
  183. package/System.Runtime.ConstrainedExecution.d.ts +4 -0
  184. package/System.Runtime.ExceptionServices/bindings.json +9 -9
  185. package/System.Runtime.ExceptionServices/internal/index.d.ts +2 -2
  186. package/System.Runtime.ExceptionServices.d.ts +4 -0
  187. package/System.Runtime.InteropServices/bindings.json +559 -559
  188. package/System.Runtime.InteropServices/internal/index.d.ts +182 -182
  189. package/System.Runtime.InteropServices.ComTypes/bindings.json +349 -349
  190. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +19 -19
  191. package/System.Runtime.InteropServices.ComTypes.d.ts +4 -0
  192. package/System.Runtime.InteropServices.Java/bindings.json +12 -12
  193. package/System.Runtime.InteropServices.Java/internal/index.d.ts +2 -2
  194. package/System.Runtime.InteropServices.Java.d.ts +4 -0
  195. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +38 -38
  196. package/System.Runtime.InteropServices.JavaScript.d.ts +6 -2
  197. package/System.Runtime.InteropServices.Marshalling/bindings.json +117 -117
  198. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +81 -81
  199. package/System.Runtime.InteropServices.Marshalling.d.ts +4 -0
  200. package/System.Runtime.InteropServices.ObjectiveC/bindings.json +15 -15
  201. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +2 -2
  202. package/System.Runtime.InteropServices.ObjectiveC.d.ts +4 -0
  203. package/System.Runtime.InteropServices.Swift/bindings.json +4 -4
  204. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
  205. package/System.Runtime.InteropServices.Swift.d.ts +6 -2
  206. package/System.Runtime.InteropServices.d.ts +6 -2
  207. package/System.Runtime.Intrinsics/internal/index.d.ts +514 -514
  208. package/System.Runtime.Intrinsics.Arm/bindings.json +31 -31
  209. package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +1 -1
  210. package/System.Runtime.Intrinsics.Arm.d.ts +4 -0
  211. package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +1 -1
  212. package/System.Runtime.Intrinsics.Wasm.d.ts +4 -0
  213. package/System.Runtime.Intrinsics.X86/bindings.json +38 -38
  214. package/System.Runtime.Intrinsics.X86/internal/index.d.ts +1 -1
  215. package/System.Runtime.Intrinsics.X86.d.ts +4 -0
  216. package/System.Runtime.Intrinsics.d.ts +12 -8
  217. package/System.Runtime.Loader/internal/index.d.ts +1 -1
  218. package/System.Runtime.Loader.d.ts +4 -0
  219. package/System.Runtime.Remoting/internal/index.d.ts +3 -3
  220. package/System.Runtime.Remoting.d.ts +4 -0
  221. package/System.Runtime.Serialization/bindings.json +13 -13
  222. package/System.Runtime.Serialization/internal/index.d.ts +102 -102
  223. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +4 -4
  224. package/System.Runtime.Serialization.DataContracts.d.ts +4 -0
  225. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +1 -1
  226. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +3 -3
  227. package/System.Runtime.Serialization.Formatters.Binary.d.ts +4 -0
  228. package/System.Runtime.Serialization.Formatters.d.ts +4 -0
  229. package/System.Runtime.Serialization.Json/internal/index.d.ts +13 -13
  230. package/System.Runtime.Serialization.Json.d.ts +4 -0
  231. package/System.Runtime.Serialization.d.ts +4 -0
  232. package/System.Runtime.Versioning/bindings.json +13 -13
  233. package/System.Runtime.Versioning/internal/index.d.ts +2 -2
  234. package/System.Runtime.Versioning.d.ts +4 -0
  235. package/System.Runtime.d.ts +4 -0
  236. package/System.Security/bindings.json +5 -5
  237. package/System.Security/internal/index.d.ts +10 -10
  238. package/System.Security.AccessControl/bindings.json +33 -33
  239. package/System.Security.AccessControl/internal/index.d.ts +21 -21
  240. package/System.Security.AccessControl.d.ts +10 -6
  241. package/System.Security.Authentication/internal/index.d.ts +1 -1
  242. package/System.Security.Authentication.ExtendedProtection/bindings.json +5 -5
  243. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +3 -3
  244. package/System.Security.Authentication.ExtendedProtection.d.ts +4 -0
  245. package/System.Security.Authentication.d.ts +4 -0
  246. package/System.Security.Claims/internal/index.d.ts +3 -3
  247. package/System.Security.Claims.d.ts +4 -0
  248. package/System.Security.Cryptography/bindings.json +40 -40
  249. package/System.Security.Cryptography/internal/index.d.ts +28 -27
  250. package/System.Security.Cryptography.X509Certificates/bindings.json +312 -312
  251. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +10 -10
  252. package/System.Security.Cryptography.X509Certificates.d.ts +4 -0
  253. package/System.Security.Cryptography.d.ts +4 -0
  254. package/System.Security.Permissions/internal/index.d.ts +1 -1
  255. package/System.Security.Permissions.d.ts +4 -0
  256. package/System.Security.Policy/bindings.json +5 -5
  257. package/System.Security.Policy/internal/index.d.ts +9 -9
  258. package/System.Security.Policy.d.ts +4 -0
  259. package/System.Security.Principal/bindings.json +8 -8
  260. package/System.Security.Principal/internal/index.d.ts +8 -8
  261. package/System.Security.Principal.d.ts +4 -0
  262. package/System.Security.d.ts +4 -0
  263. package/System.Text/bindings.json +20 -20
  264. package/System.Text/internal/index.d.ts +48 -48
  265. package/System.Text.Encodings.Web/internal/index.d.ts +1 -1
  266. package/System.Text.Encodings.Web.d.ts +4 -0
  267. package/System.Text.Json/internal/index.d.ts +109 -109
  268. package/System.Text.Json.Nodes/bindings.json +27 -27
  269. package/System.Text.Json.Nodes/internal/index.d.ts +8 -8
  270. package/System.Text.Json.Nodes.d.ts +4 -0
  271. package/System.Text.Json.Schema/internal/index.d.ts +1 -1
  272. package/System.Text.Json.Schema.d.ts +4 -0
  273. package/System.Text.Json.Serialization/internal/index.d.ts +18 -18
  274. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +67 -67
  275. package/System.Text.Json.Serialization.Metadata.d.ts +6 -2
  276. package/System.Text.Json.Serialization.d.ts +10 -6
  277. package/System.Text.Json.d.ts +4 -0
  278. package/System.Text.RegularExpressions/bindings.json +158 -118
  279. package/System.Text.RegularExpressions/internal/index.d.ts +9 -7
  280. package/System.Text.RegularExpressions.d.ts +4 -0
  281. package/System.Text.Unicode/internal/index.d.ts +6 -6
  282. package/System.Text.Unicode.d.ts +4 -0
  283. package/System.Text.d.ts +4 -0
  284. package/System.Threading/bindings.json +19 -19
  285. package/System.Threading/internal/index.d.ts +97 -97
  286. package/System.Threading.Channels/internal/index.d.ts +23 -23
  287. package/System.Threading.Channels.d.ts +8 -4
  288. package/System.Threading.Tasks/bindings.json +138 -38
  289. package/System.Threading.Tasks/internal/index.d.ts +229 -227
  290. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +95 -95
  291. package/System.Threading.Tasks.Dataflow.d.ts +18 -14
  292. package/System.Threading.Tasks.Sources/bindings.json +9 -9
  293. package/System.Threading.Tasks.Sources/internal/index.d.ts +9 -9
  294. package/System.Threading.Tasks.Sources.d.ts +6 -2
  295. package/System.Threading.Tasks.d.ts +12 -8
  296. package/System.Threading.d.ts +4 -0
  297. package/System.Timers/internal/index.d.ts +2 -2
  298. package/System.Timers.d.ts +4 -0
  299. package/System.Transactions/internal/index.d.ts +6 -6
  300. package/System.Transactions.d.ts +4 -0
  301. package/System.Web/internal/index.d.ts +2 -2
  302. package/System.Web.d.ts +4 -0
  303. package/System.Windows.Input/internal/index.d.ts +3 -3
  304. package/System.Windows.Input.d.ts +4 -0
  305. package/System.Windows.Markup/internal/index.d.ts +1 -1
  306. package/System.Windows.Markup.d.ts +4 -0
  307. package/System.Xml/bindings.json +27 -27
  308. package/System.Xml/internal/index.d.ts +29 -29
  309. package/System.Xml.Linq/bindings.json +6 -6
  310. package/System.Xml.Linq/internal/index.d.ts +49 -49
  311. package/System.Xml.Linq.d.ts +4 -0
  312. package/System.Xml.Resolvers/internal/index.d.ts +3 -3
  313. package/System.Xml.Resolvers.d.ts +4 -0
  314. package/System.Xml.Schema/bindings.json +24 -24
  315. package/System.Xml.Schema/internal/index.d.ts +24 -24
  316. package/System.Xml.Schema.d.ts +4 -0
  317. package/System.Xml.Serialization/bindings.json +57 -57
  318. package/System.Xml.Serialization/internal/index.d.ts +49 -49
  319. package/System.Xml.Serialization.d.ts +4 -0
  320. package/System.Xml.XPath/bindings.json +1 -1
  321. package/System.Xml.XPath/internal/index.d.ts +18 -18
  322. package/System.Xml.XPath.d.ts +4 -0
  323. package/System.Xml.Xsl/bindings.json +1 -1
  324. package/System.Xml.Xsl/internal/index.d.ts +12 -12
  325. package/System.Xml.Xsl.Runtime/bindings.json +70 -70
  326. package/System.Xml.Xsl.Runtime/internal/index.d.ts +21 -21
  327. package/System.Xml.Xsl.Runtime.d.ts +4 -0
  328. package/System.Xml.Xsl.d.ts +4 -0
  329. package/System.Xml.d.ts +4 -0
  330. package/System.d.ts +126 -122
  331. package/__internal/extensions/index.d.ts +1288 -1293
  332. package/package.json +2 -2
@@ -3,7 +3,7 @@
3
3
  // Assembly: System.Private.CoreLib, System.Threading, System.Threading.AccessControl
4
4
 
5
5
  // Core type aliases from @tsonic/core
6
- import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
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
8
 
9
9
  // Import types from other namespaces
@@ -72,31 +72,31 @@ export enum ThreadState {
72
72
  }
73
73
 
74
74
 
75
- export type ContextCallback = (state: JsValue | null) => void;
75
+ export type ContextCallback = (state: unknown | null) => void;
76
76
 
77
77
 
78
78
  export type IOCompletionCallback = (errorCode: uint, numBytes: uint, pOVERLAP: ptr<NativeOverlapped>) => void;
79
79
 
80
80
 
81
- export type ParameterizedThreadStart = (obj: JsValue | null) => void;
81
+ export type ParameterizedThreadStart = (obj: unknown | null) => void;
82
82
 
83
83
 
84
- export type SendOrPostCallback = (state: JsValue | null) => void;
84
+ export type SendOrPostCallback = (state: unknown | null) => void;
85
85
 
86
86
 
87
- export type ThreadExceptionEventHandler = (sender: JsValue, e: ThreadExceptionEventArgs) => void;
87
+ export type ThreadExceptionEventHandler = (sender: unknown, e: ThreadExceptionEventArgs) => void;
88
88
 
89
89
 
90
90
  export type ThreadStart = () => void;
91
91
 
92
92
 
93
- export type TimerCallback = (state: JsValue | null) => void;
93
+ export type TimerCallback = (state: unknown | null) => void;
94
94
 
95
95
 
96
- export type WaitCallback = (state: JsValue | null) => void;
96
+ export type WaitCallback = (state: unknown | null) => void;
97
97
 
98
98
 
99
- export type WaitOrTimerCallback = (state: JsValue | null, timedOut: boolean) => void;
99
+ export type WaitOrTimerCallback = (state: unknown | null, timedOut: boolean) => void;
100
100
 
101
101
 
102
102
  export interface IThreadPoolWorkItem$instance {
@@ -128,7 +128,7 @@ export interface AsyncFlowControl$instance extends System_Internal.IDisposable$i
128
128
  readonly __tsonic_iface_System_IEquatable_1: never;
129
129
 
130
130
  Dispose(): void;
131
- Equals(obj: JsValue | null): boolean;
131
+ Equals(obj: unknown | null): boolean;
132
132
  Equals(obj: AsyncFlowControl): boolean;
133
133
  GetHashCode(): int;
134
134
  Undo(): void;
@@ -151,7 +151,7 @@ export interface __AsyncFlowControl$views {
151
151
  export type AsyncFlowControl = AsyncFlowControl$instance & __AsyncFlowControl$views;
152
152
 
153
153
 
154
- export interface AsyncLocalValueChangedArgs_1$instance<T> {
154
+ export interface AsyncLocalValueChangedArgs_1$instance<T extends unknown> {
155
155
  readonly __tsonic_type_System_Threading_AsyncLocalValueChangedArgs_1: never;
156
156
 
157
157
  readonly CurrentValue: T | null;
@@ -161,11 +161,11 @@ export interface AsyncLocalValueChangedArgs_1$instance<T> {
161
161
 
162
162
 
163
163
  export const AsyncLocalValueChangedArgs_1: {
164
- new<T>(): AsyncLocalValueChangedArgs_1<T>;
164
+ new<T extends unknown>(): AsyncLocalValueChangedArgs_1<T>;
165
165
  };
166
166
 
167
167
 
168
- export type AsyncLocalValueChangedArgs_1<T> = AsyncLocalValueChangedArgs_1$instance<T>;
168
+ export type AsyncLocalValueChangedArgs_1<T extends unknown> = AsyncLocalValueChangedArgs_1$instance<T>;
169
169
 
170
170
  export interface CancellationToken$instance {
171
171
  readonly __tsonic_type_System_Threading_CancellationToken: never;
@@ -176,16 +176,16 @@ export interface CancellationToken$instance {
176
176
  readonly IsCancellationRequested: boolean;
177
177
  readonly WaitHandle: WaitHandle;
178
178
  Equals(other: CancellationToken): boolean;
179
- Equals(other: JsValue | null): boolean;
179
+ Equals(other: unknown | null): boolean;
180
180
  GetHashCode(): int;
181
181
  Register(callback: Action): CancellationTokenRegistration;
182
182
  Register(callback: Action, useSynchronizationContext: boolean): CancellationTokenRegistration;
183
- Register(callback: Action_1<JsValue | null>, state: JsValue | null): CancellationTokenRegistration;
184
- Register(callback: Action_2<JsValue | null, CancellationToken>, state: JsValue | null): CancellationTokenRegistration;
185
- Register(callback: Action_1<JsValue | null>, state: JsValue | null, 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;
186
186
  ThrowIfCancellationRequested(): void;
187
- UnsafeRegister(callback: Action_1<JsValue | null>, state: JsValue | null): CancellationTokenRegistration;
188
- UnsafeRegister(callback: Action_2<JsValue | null, CancellationToken>, state: JsValue | null): CancellationTokenRegistration;
187
+ UnsafeRegister(callback: Action_1<unknown | null>, state: unknown | null): CancellationTokenRegistration;
188
+ UnsafeRegister(callback: Action_2<unknown | null, CancellationToken>, state: unknown | null): CancellationTokenRegistration;
189
189
  }
190
190
 
191
191
 
@@ -215,7 +215,7 @@ export interface CancellationTokenRegistration$instance extends System_Internal.
215
215
  readonly Token: CancellationToken;
216
216
  Dispose(): void;
217
217
  DisposeAsync(): ValueTask;
218
- Equals(obj: JsValue | null): boolean;
218
+ Equals(obj: unknown | null): boolean;
219
219
  Equals(other: CancellationTokenRegistration): boolean;
220
220
  GetHashCode(): int;
221
221
  Unregister(): boolean;
@@ -244,7 +244,7 @@ export interface LockCookie$instance {
244
244
 
245
245
  readonly __tsonic_iface_System_IEquatable_1: never;
246
246
 
247
- Equals(obj: JsValue | null): boolean;
247
+ Equals(obj: unknown | null): boolean;
248
248
  Equals(obj: LockCookie): boolean;
249
249
  GetHashCode(): int;
250
250
  }
@@ -368,7 +368,7 @@ export interface __AbandonedMutexException$views {
368
368
  export type AbandonedMutexException = AbandonedMutexException$instance & __AbandonedMutexException$views;
369
369
 
370
370
 
371
- export interface AsyncLocal_1$instance<T> {
371
+ export interface AsyncLocal_1$instance<T extends unknown> {
372
372
  readonly __tsonic_type_System_Threading_AsyncLocal_1: never;
373
373
 
374
374
  readonly __tsonic_iface_System_Threading_IAsyncLocal: never;
@@ -378,12 +378,12 @@ export interface AsyncLocal_1$instance<T> {
378
378
 
379
379
 
380
380
  export const AsyncLocal_1: {
381
- new<T>(): AsyncLocal_1<T>;
382
- new<T>(valueChangedHandler: Action_1<AsyncLocalValueChangedArgs_1<T>> | null): 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>;
383
383
  };
384
384
 
385
385
 
386
- export type AsyncLocal_1<T> = AsyncLocal_1$instance<T>;
386
+ export type AsyncLocal_1<T extends unknown> = AsyncLocal_1$instance<T>;
387
387
 
388
388
  export interface AutoResetEvent$instance extends EventWaitHandle$instance {
389
389
  readonly __tsonic_type_System_Threading_AutoResetEvent: never;
@@ -514,7 +514,7 @@ export interface CompressedStack$instance extends System_Runtime_Serialization_I
514
514
  export const CompressedStack: {
515
515
  Capture(): CompressedStack;
516
516
  GetCompressedStack(): CompressedStack;
517
- Run(compressedStack: CompressedStack, callback: ContextCallback, state: JsValue | null): void;
517
+ Run(compressedStack: CompressedStack, callback: ContextCallback, state: unknown | null): void;
518
518
  };
519
519
 
520
520
 
@@ -612,7 +612,7 @@ export const ExecutionContext: {
612
612
  IsFlowSuppressed(): boolean;
613
613
  Restore(executionContext: ExecutionContext): void;
614
614
  RestoreFlow(): void;
615
- Run(executionContext: ExecutionContext, callback: ContextCallback, state: JsValue | null): void;
615
+ Run(executionContext: ExecutionContext, callback: ContextCallback, state: unknown | null): void;
616
616
  SuppressFlow(): AsyncFlowControl;
617
617
  };
618
618
 
@@ -638,7 +638,7 @@ export interface HostExecutionContext$instance {
638
638
 
639
639
  export const HostExecutionContext: {
640
640
  new(): HostExecutionContext;
641
- new(state: JsValue | null): HostExecutionContext;
641
+ new(state: unknown | null): HostExecutionContext;
642
642
  };
643
643
 
644
644
 
@@ -653,8 +653,8 @@ export interface HostExecutionContextManager$instance {
653
653
  readonly __tsonic_type_System_Threading_HostExecutionContextManager: never;
654
654
 
655
655
  Capture(): HostExecutionContext | null;
656
- Revert(previousState: JsValue): void;
657
- SetHostExecutionContext(hostExecutionContext: HostExecutionContext): JsValue;
656
+ Revert(previousState: unknown): void;
657
+ SetHostExecutionContext(hostExecutionContext: HostExecutionContext): unknown;
658
658
  }
659
659
 
660
660
 
@@ -816,9 +816,9 @@ export interface Overlapped$instance {
816
816
  OffsetHigh: int;
817
817
  OffsetLow: int;
818
818
  Pack(iocb: IOCompletionCallback | null): ptr<NativeOverlapped>;
819
- Pack(iocb: IOCompletionCallback | null, userData: JsValue | null): ptr<NativeOverlapped>;
819
+ Pack(iocb: IOCompletionCallback | null, userData: unknown | null): ptr<NativeOverlapped>;
820
820
  UnsafePack(iocb: IOCompletionCallback | null): ptr<NativeOverlapped>;
821
- UnsafePack(iocb: IOCompletionCallback | null, userData: JsValue | null): ptr<NativeOverlapped>;
821
+ UnsafePack(iocb: IOCompletionCallback | null, userData: unknown | null): ptr<NativeOverlapped>;
822
822
  }
823
823
 
824
824
 
@@ -868,8 +868,8 @@ export interface PreAllocatedOverlapped$instance extends System_Internal.IDispos
868
868
 
869
869
 
870
870
  export const PreAllocatedOverlapped: {
871
- new(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): PreAllocatedOverlapped;
872
- UnsafeCreate(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): PreAllocatedOverlapped;
871
+ new(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): PreAllocatedOverlapped;
872
+ UnsafeCreate(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): PreAllocatedOverlapped;
873
873
  };
874
874
 
875
875
 
@@ -1064,8 +1064,8 @@ export interface SynchronizationContext$instance {
1064
1064
  IsWaitNotificationRequired(): boolean;
1065
1065
  OperationCompleted(): void;
1066
1066
  OperationStarted(): void;
1067
- Post(d: SendOrPostCallback, state: JsValue | null): void;
1068
- Send(d: SendOrPostCallback, state: JsValue | null): void;
1067
+ Post(d: SendOrPostCallback, state: unknown | null): void;
1068
+ Send(d: SendOrPostCallback, state: unknown | null): void;
1069
1069
  Wait(waitHandles: nint[], waitAll: boolean, millisecondsTimeout: int): int;
1070
1070
  }
1071
1071
 
@@ -1118,7 +1118,7 @@ export interface Thread$instance extends CriticalFinalizerObject {
1118
1118
  Priority: ThreadPriority;
1119
1119
  readonly ThreadState: ThreadState;
1120
1120
  Abort(): void;
1121
- Abort(stateInfo: JsValue | null): void;
1121
+ Abort(stateInfo: unknown | null): void;
1122
1122
  DisableComObjectEagerCleanup(): void;
1123
1123
  Finalize(): void;
1124
1124
  GetApartmentState(): ApartmentState;
@@ -1131,11 +1131,11 @@ export interface Thread$instance extends CriticalFinalizerObject {
1131
1131
  Resume(): void;
1132
1132
  SetApartmentState(state: ApartmentState): void;
1133
1133
  SetCompressedStack(stack: CompressedStack): void;
1134
- Start(parameter: JsValue | null): void;
1134
+ Start(parameter: unknown | null): void;
1135
1135
  Start(): void;
1136
1136
  Suspend(): void;
1137
1137
  TrySetApartmentState(state: ApartmentState): boolean;
1138
- UnsafeStart(parameter: JsValue | null): void;
1138
+ UnsafeStart(parameter: unknown | null): void;
1139
1139
  UnsafeStart(): void;
1140
1140
  }
1141
1141
 
@@ -1156,13 +1156,13 @@ export const Thread: {
1156
1156
  EndThreadAffinity(): void;
1157
1157
  FreeNamedDataSlot(name: string): void;
1158
1158
  GetCurrentProcessorId(): int;
1159
- GetData(slot: LocalDataStoreSlot): JsValue | null;
1159
+ GetData(slot: LocalDataStoreSlot): unknown | null;
1160
1160
  GetDomain(): AppDomain;
1161
1161
  GetDomainID(): int;
1162
1162
  GetNamedDataSlot(name: string): LocalDataStoreSlot;
1163
1163
  MemoryBarrier(): void;
1164
1164
  ResetAbort(): void;
1165
- SetData(slot: LocalDataStoreSlot, data: JsValue | null): void;
1165
+ SetData(slot: LocalDataStoreSlot, data: unknown | null): void;
1166
1166
  Sleep(millisecondsTimeout: int): void;
1167
1167
  Sleep(timeout: TimeSpan): void;
1168
1168
  SpinWait(iterations: int): void;
@@ -1172,7 +1172,7 @@ export const Thread: {
1172
1172
  VolatileRead(address: int): int;
1173
1173
  VolatileRead(address: long): long;
1174
1174
  VolatileRead(address: nint): nint;
1175
- VolatileRead(address: JsValue | null): JsValue | null;
1175
+ VolatileRead(address: unknown | null): unknown | null;
1176
1176
  VolatileRead(address: sbyte): sbyte;
1177
1177
  VolatileRead(address: float): float;
1178
1178
  VolatileRead(address: ushort): ushort;
@@ -1185,7 +1185,7 @@ export const Thread: {
1185
1185
  VolatileWrite(address: int, value: int): void;
1186
1186
  VolatileWrite(address: long, value: long): void;
1187
1187
  VolatileWrite(address: nint, value: nint): void;
1188
- VolatileWrite(address: JsValue | null, value: JsValue | null): void;
1188
+ VolatileWrite(address: unknown | null, value: unknown | null): void;
1189
1189
  VolatileWrite(address: sbyte, value: sbyte): void;
1190
1190
  VolatileWrite(address: float, value: float): void;
1191
1191
  VolatileWrite(address: ushort, value: ushort): void;
@@ -1203,7 +1203,7 @@ export interface ThreadAbortException$instance extends SystemException, System_R
1203
1203
 
1204
1204
  readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
1205
1205
 
1206
- readonly ExceptionState: JsValue | null;
1206
+ readonly ExceptionState: unknown | null;
1207
1207
  }
1208
1208
 
1209
1209
 
@@ -1254,7 +1254,7 @@ export interface __ThreadInterruptedException$views {
1254
1254
  export type ThreadInterruptedException = ThreadInterruptedException$instance & __ThreadInterruptedException$views;
1255
1255
 
1256
1256
 
1257
- export interface ThreadLocal_1$instance<T> {
1257
+ export interface ThreadLocal_1$instance<T extends unknown> {
1258
1258
  readonly __tsonic_type_System_Threading_ThreadLocal_1: never;
1259
1259
 
1260
1260
  readonly __tsonic_iface_System_IDisposable: never;
@@ -1270,18 +1270,18 @@ export interface ThreadLocal_1$instance<T> {
1270
1270
 
1271
1271
 
1272
1272
  export const ThreadLocal_1: {
1273
- new<T>(): ThreadLocal_1<T>;
1274
- new<T>(trackAllValues: boolean): ThreadLocal_1<T>;
1275
- new<T>(valueFactory: Func_1<T>): ThreadLocal_1<T>;
1276
- 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>;
1277
1277
  };
1278
1278
 
1279
1279
 
1280
- export interface __ThreadLocal_1$views<T> {
1280
+ export interface __ThreadLocal_1$views<T extends unknown> {
1281
1281
  As_IDisposable(): System_Internal.IDisposable$instance;
1282
1282
  }
1283
1283
 
1284
- 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>;
1285
1285
 
1286
1286
 
1287
1287
  export interface ThreadPoolBoundHandle$instance extends System_Internal.IDisposable$instance {
@@ -1290,17 +1290,17 @@ export interface ThreadPoolBoundHandle$instance extends System_Internal.IDisposa
1290
1290
  readonly __tsonic_iface_System_IDisposable: never;
1291
1291
 
1292
1292
  readonly Handle: SafeHandle;
1293
- AllocateNativeOverlapped(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): ptr<NativeOverlapped>;
1293
+ AllocateNativeOverlapped(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): ptr<NativeOverlapped>;
1294
1294
  AllocateNativeOverlapped(preAllocated: PreAllocatedOverlapped): ptr<NativeOverlapped>;
1295
1295
  Dispose(): void;
1296
1296
  FreeNativeOverlapped(overlapped: ptr<NativeOverlapped>): void;
1297
- UnsafeAllocateNativeOverlapped(callback: IOCompletionCallback, state: JsValue | null, pinData: JsValue | null): ptr<NativeOverlapped>;
1297
+ UnsafeAllocateNativeOverlapped(callback: IOCompletionCallback, state: unknown | null, pinData: unknown | null): ptr<NativeOverlapped>;
1298
1298
  }
1299
1299
 
1300
1300
 
1301
1301
  export const ThreadPoolBoundHandle: {
1302
1302
  BindHandle(handle: SafeHandle): ThreadPoolBoundHandle;
1303
- GetNativeOverlappedState(overlapped: ptr<NativeOverlapped>): JsValue | null;
1303
+ GetNativeOverlappedState(overlapped: ptr<NativeOverlapped>): unknown | null;
1304
1304
  };
1305
1305
 
1306
1306
 
@@ -1370,10 +1370,10 @@ export interface Timer$instance extends MarshalByRefObject {
1370
1370
 
1371
1371
 
1372
1372
  export const Timer: {
1373
- new(callback: TimerCallback, state: JsValue | null, dueTime: int, period: int): Timer;
1374
- new(callback: TimerCallback, state: JsValue | null, dueTime: TimeSpan, period: TimeSpan): Timer;
1375
- new(callback: TimerCallback, state: JsValue | null, dueTime: uint, period: uint): Timer;
1376
- new(callback: TimerCallback, state: JsValue | null, 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;
1377
1377
  new(callback: TimerCallback): Timer;
1378
1378
  readonly ActiveCount: long;
1379
1379
  };
@@ -1478,14 +1478,14 @@ export abstract class Interlocked$instance {
1478
1478
  static CompareExchange(location1: int, value: int, comparand: int): int;
1479
1479
  static CompareExchange(location1: long, value: long, comparand: long): long;
1480
1480
  static CompareExchange(location1: nint, value: nint, comparand: nint): nint;
1481
- static CompareExchange(location1: JsValue | null, value: JsValue | null, comparand: JsValue | null): JsValue | null;
1481
+ static CompareExchange(location1: unknown | null, value: unknown | null, comparand: unknown | null): unknown | null;
1482
1482
  static CompareExchange(location1: sbyte, value: sbyte, comparand: sbyte): sbyte;
1483
1483
  static CompareExchange(location1: float, value: float, comparand: float): float;
1484
1484
  static CompareExchange(location1: ushort, value: ushort, comparand: ushort): ushort;
1485
1485
  static CompareExchange(location1: uint, value: uint, comparand: uint): uint;
1486
1486
  static CompareExchange(location1: ulong, value: ulong, comparand: ulong): ulong;
1487
1487
  static CompareExchange(location1: nuint, value: nuint, comparand: nuint): nuint;
1488
- static CompareExchange<T>(location1: T, value: T, comparand: T): T;
1488
+ static CompareExchange<T extends unknown>(location1: T, value: T, comparand: T): T;
1489
1489
  static Decrement(location: int): int;
1490
1490
  static Decrement(location: long): long;
1491
1491
  static Decrement(location: uint): uint;
@@ -1496,14 +1496,14 @@ export abstract class Interlocked$instance {
1496
1496
  static Exchange(location1: int, value: int): int;
1497
1497
  static Exchange(location1: long, value: long): long;
1498
1498
  static Exchange(location1: nint, value: nint): nint;
1499
- static Exchange(location1: JsValue | null, value: JsValue | null): JsValue | null;
1499
+ static Exchange(location1: unknown | null, value: unknown | null): unknown | null;
1500
1500
  static Exchange(location1: sbyte, value: sbyte): sbyte;
1501
1501
  static Exchange(location1: float, value: float): float;
1502
1502
  static Exchange(location1: ushort, value: ushort): ushort;
1503
1503
  static Exchange(location1: uint, value: uint): uint;
1504
1504
  static Exchange(location1: ulong, value: ulong): ulong;
1505
1505
  static Exchange(location1: nuint, value: nuint): nuint;
1506
- static Exchange<T>(location1: T, value: T): T;
1506
+ static Exchange<T extends unknown>(location1: T, value: T): T;
1507
1507
  static Increment(location: int): int;
1508
1508
  static Increment(location: long): long;
1509
1509
  static Increment(location: uint): uint;
@@ -1522,11 +1522,11 @@ export abstract class Interlocked$instance {
1522
1522
  export type Interlocked = Interlocked$instance;
1523
1523
 
1524
1524
  export abstract class LazyInitializer$instance {
1525
- static EnsureInitialized<T>(target: T | null, valueFactory: Func_1<T>): T;
1526
- static EnsureInitialized<T>(target: T, initialized: boolean, syncLock: JsValue | null, valueFactory: Func_1<T>): T;
1527
- static EnsureInitialized<T>(target: T, initialized: boolean, syncLock: JsValue | null): T;
1528
- static EnsureInitialized<T>(target: T | null, syncLock: JsValue | null, valueFactory: Func_1<T>): T;
1529
- static EnsureInitialized<T>(target: T | null): 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;
1530
1530
  }
1531
1531
 
1532
1532
 
@@ -1534,23 +1534,23 @@ export type LazyInitializer = LazyInitializer$instance;
1534
1534
 
1535
1535
  export abstract class Monitor$instance {
1536
1536
  static readonly LockContentionCount: long;
1537
- static Enter(obj: JsValue, lockTaken: boolean): void;
1538
- static Enter(obj: JsValue): void;
1539
- static Exit(obj: JsValue): void;
1540
- static IsEntered(obj: JsValue): boolean;
1541
- static Pulse(obj: JsValue): void;
1542
- static PulseAll(obj: JsValue): void;
1543
- static TryEnter(obj: JsValue, lockTaken: boolean): void;
1544
- static TryEnter(obj: JsValue, millisecondsTimeout: int, lockTaken: boolean): void;
1545
- static TryEnter(obj: JsValue, millisecondsTimeout: int): boolean;
1546
- static TryEnter(obj: JsValue, timeout: TimeSpan, lockTaken: boolean): void;
1547
- static TryEnter(obj: JsValue, timeout: TimeSpan): boolean;
1548
- static TryEnter(obj: JsValue): boolean;
1549
- static Wait(obj: JsValue, millisecondsTimeout: int, exitContext: boolean): boolean;
1550
- static Wait(obj: JsValue, millisecondsTimeout: int): boolean;
1551
- static Wait(obj: JsValue, timeout: TimeSpan, exitContext: boolean): boolean;
1552
- static Wait(obj: JsValue, timeout: TimeSpan): boolean;
1553
- static Wait(obj: JsValue): boolean;
1537
+ static Enter(obj: unknown, lockTaken: boolean): void;
1538
+ static Enter(obj: unknown): void;
1539
+ static Exit(obj: unknown): void;
1540
+ static IsEntered(obj: unknown): boolean;
1541
+ static Pulse(obj: unknown): void;
1542
+ static PulseAll(obj: unknown): void;
1543
+ static TryEnter(obj: unknown, lockTaken: boolean): void;
1544
+ static TryEnter(obj: unknown, millisecondsTimeout: int, lockTaken: boolean): void;
1545
+ static TryEnter(obj: unknown, millisecondsTimeout: int): boolean;
1546
+ static TryEnter(obj: unknown, timeout: TimeSpan, lockTaken: boolean): void;
1547
+ static TryEnter(obj: unknown, timeout: TimeSpan): boolean;
1548
+ static TryEnter(obj: unknown): boolean;
1549
+ static Wait(obj: unknown, millisecondsTimeout: int, exitContext: boolean): boolean;
1550
+ static Wait(obj: unknown, millisecondsTimeout: int): boolean;
1551
+ static Wait(obj: unknown, timeout: TimeSpan, exitContext: boolean): boolean;
1552
+ static Wait(obj: unknown, timeout: TimeSpan): boolean;
1553
+ static Wait(obj: unknown): boolean;
1554
1554
  }
1555
1555
 
1556
1556
 
@@ -1595,23 +1595,23 @@ export abstract class ThreadPool$instance {
1595
1595
  static GetAvailableThreads(workerThreads: int, completionPortThreads: int): void;
1596
1596
  static GetMaxThreads(workerThreads: int, completionPortThreads: int): void;
1597
1597
  static GetMinThreads(workerThreads: int, completionPortThreads: int): void;
1598
- static QueueUserWorkItem<TState>(callBack: Action_1<TState>, state: TState, preferLocal: boolean): boolean;
1599
- static QueueUserWorkItem(callBack: WaitCallback, state: JsValue | null): 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;
1600
1600
  static QueueUserWorkItem(callBack: WaitCallback): boolean;
1601
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1602
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1603
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1604
- static RegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, 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;
1605
1605
  static SetMaxThreads(workerThreads: int, completionPortThreads: int): boolean;
1606
1606
  static SetMinThreads(workerThreads: int, completionPortThreads: int): boolean;
1607
1607
  static UnsafeQueueNativeOverlapped(overlapped: ptr<NativeOverlapped>): boolean;
1608
- 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;
1609
1609
  static UnsafeQueueUserWorkItem(callBack: IThreadPoolWorkItem, preferLocal: boolean): boolean;
1610
- static UnsafeQueueUserWorkItem(callBack: WaitCallback, state: JsValue | null): boolean;
1611
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: int, executeOnlyOnce: boolean): RegisteredWaitHandle;
1612
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, millisecondsTimeOutInterval: long, executeOnlyOnce: boolean): RegisteredWaitHandle;
1613
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, timeout: TimeSpan, executeOnlyOnce: boolean): RegisteredWaitHandle;
1614
- static UnsafeRegisterWaitForSingleObject(waitObject: WaitHandle, callBack: WaitOrTimerCallback, state: JsValue | null, 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;
1615
1615
  }
1616
1616
 
1617
1617
 
@@ -1639,7 +1639,7 @@ export abstract class Volatile$instance {
1639
1639
  static Read(location: uint): uint;
1640
1640
  static Read(location: ulong): ulong;
1641
1641
  static Read(location: nuint): nuint;
1642
- static Read<T>(location: T): T;
1642
+ static Read<T extends (object | null)>(location: T): T;
1643
1643
  static ReadBarrier(): void;
1644
1644
  static Write(location: boolean, value: boolean): void;
1645
1645
  static Write(location: byte, value: byte): void;
@@ -1654,7 +1654,7 @@ export abstract class Volatile$instance {
1654
1654
  static Write(location: uint, value: uint): void;
1655
1655
  static Write(location: ulong, value: ulong): void;
1656
1656
  static Write(location: nuint, value: nuint): void;
1657
- static Write<T>(location: T, value: T): void;
1657
+ static Write<T extends (object | null)>(location: T, value: T): void;
1658
1658
  static WriteBarrier(): void;
1659
1659
  }
1660
1660
 
@@ -3,7 +3,7 @@
3
3
  // Assembly: System.Threading.Channels
4
4
 
5
5
  // Core type aliases from @tsonic/core
6
- import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
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
8
 
9
9
  // Import types from other namespaces
@@ -40,19 +40,19 @@ export const BoundedChannelOptions: {
40
40
 
41
41
  export type BoundedChannelOptions = BoundedChannelOptions$instance;
42
42
 
43
- export interface Channel_1$instance<T> extends Channel_2<T, T> {
43
+ export interface Channel_1$instance<T extends unknown> extends Channel_2<T, T> {
44
44
  readonly __tsonic_type_System_Threading_Channels_Channel_1: never;
45
45
 
46
46
  }
47
47
 
48
48
 
49
- export const Channel_1: (abstract new<T>() => Channel_1<T>) & {
49
+ export const Channel_1: (abstract new<T extends unknown>() => Channel_1<T>) & {
50
50
  };
51
51
 
52
52
 
53
- export type Channel_1<T> = Channel_1$instance<T>;
53
+ export type Channel_1<T extends unknown> = Channel_1$instance<T>;
54
54
 
55
- export interface Channel_2$instance<TWrite, TRead> {
55
+ export interface Channel_2$instance<TWrite extends unknown, TRead extends unknown> {
56
56
  readonly __tsonic_type_System_Threading_Channels_Channel_2: never;
57
57
 
58
58
  Reader: ChannelReader_1<TRead>;
@@ -60,11 +60,11 @@ export interface Channel_2$instance<TWrite, TRead> {
60
60
  }
61
61
 
62
62
 
63
- export const Channel_2: (abstract new<TWrite, TRead>() => Channel_2<TWrite, TRead>) & {
63
+ export const Channel_2: (abstract new<TWrite extends unknown, TRead extends unknown>() => Channel_2<TWrite, TRead>) & {
64
64
  };
65
65
 
66
66
 
67
- export type Channel_2<TWrite, TRead> = Channel_2$instance<TWrite, TRead>;
67
+ export type Channel_2<TWrite extends unknown, TRead extends unknown> = Channel_2$instance<TWrite, TRead>;
68
68
 
69
69
  export interface ChannelClosedException$instance extends InvalidOperationException, System_Runtime_Serialization_Internal.ISerializable$instance {
70
70
  readonly __tsonic_type_System_Threading_Channels_ChannelClosedException: never;
@@ -104,7 +104,7 @@ export const ChannelOptions: (abstract new() => ChannelOptions) & {
104
104
 
105
105
  export type ChannelOptions = ChannelOptions$instance;
106
106
 
107
- export interface ChannelReader_1$instance<T> {
107
+ export interface ChannelReader_1$instance<T extends unknown> {
108
108
  readonly __tsonic_type_System_Threading_Channels_ChannelReader_1: never;
109
109
 
110
110
  readonly CanCount: boolean;
@@ -119,13 +119,13 @@ export interface ChannelReader_1$instance<T> {
119
119
  }
120
120
 
121
121
 
122
- export const ChannelReader_1: (abstract new<T>() => ChannelReader_1<T>) & {
122
+ export const ChannelReader_1: (abstract new<T extends unknown>() => ChannelReader_1<T>) & {
123
123
  };
124
124
 
125
125
 
126
- export type ChannelReader_1<T> = ChannelReader_1$instance<T>;
126
+ export type ChannelReader_1<T extends unknown> = ChannelReader_1$instance<T>;
127
127
 
128
- export interface ChannelWriter_1$instance<T> {
128
+ export interface ChannelWriter_1$instance<T extends unknown> {
129
129
  readonly __tsonic_type_System_Threading_Channels_ChannelWriter_1: never;
130
130
 
131
131
  Complete(error?: Exception | null): void;
@@ -136,11 +136,11 @@ export interface ChannelWriter_1$instance<T> {
136
136
  }
137
137
 
138
138
 
139
- export const ChannelWriter_1: (abstract new<T>() => ChannelWriter_1<T>) & {
139
+ export const ChannelWriter_1: (abstract new<T extends unknown>() => ChannelWriter_1<T>) & {
140
140
  };
141
141
 
142
142
 
143
- export type ChannelWriter_1<T> = ChannelWriter_1$instance<T>;
143
+ export type ChannelWriter_1<T extends unknown> = ChannelWriter_1$instance<T>;
144
144
 
145
145
  export interface UnboundedChannelOptions$instance extends ChannelOptions {
146
146
  readonly __tsonic_type_System_Threading_Channels_UnboundedChannelOptions: never;
@@ -155,7 +155,7 @@ export const UnboundedChannelOptions: {
155
155
 
156
156
  export type UnboundedChannelOptions = UnboundedChannelOptions$instance;
157
157
 
158
- export interface UnboundedPrioritizedChannelOptions_1$instance<T> extends ChannelOptions {
158
+ export interface UnboundedPrioritizedChannelOptions_1$instance<T extends unknown> extends ChannelOptions {
159
159
  readonly __tsonic_type_System_Threading_Channels_UnboundedPrioritizedChannelOptions_1: never;
160
160
 
161
161
  get Comparer(): IComparer_1<T> | null;
@@ -164,20 +164,20 @@ export interface UnboundedPrioritizedChannelOptions_1$instance<T> extends Channe
164
164
 
165
165
 
166
166
  export const UnboundedPrioritizedChannelOptions_1: {
167
- new<T>(): UnboundedPrioritizedChannelOptions_1<T>;
167
+ new<T extends unknown>(): UnboundedPrioritizedChannelOptions_1<T>;
168
168
  };
169
169
 
170
170
 
171
- export type UnboundedPrioritizedChannelOptions_1<T> = UnboundedPrioritizedChannelOptions_1$instance<T>;
171
+ export type UnboundedPrioritizedChannelOptions_1<T extends unknown> = UnboundedPrioritizedChannelOptions_1$instance<T>;
172
172
 
173
173
  export abstract class Channel$instance {
174
- static CreateBounded<T>(capacity: int): Channel_1<T>;
175
- static CreateBounded<T>(options: BoundedChannelOptions, itemDropped: Action_1<T> | null): Channel_1<T>;
176
- static CreateBounded<T>(options: BoundedChannelOptions): Channel_1<T>;
177
- static CreateUnbounded<T>(): Channel_1<T>;
178
- static CreateUnbounded<T>(options: UnboundedChannelOptions): Channel_1<T>;
179
- static CreateUnboundedPrioritized<T>(): Channel_1<T>;
180
- static CreateUnboundedPrioritized<T>(options: UnboundedPrioritizedChannelOptions_1<T>): Channel_1<T>;
174
+ static CreateBounded<T extends unknown>(capacity: int): Channel_1<T>;
175
+ static CreateBounded<T extends unknown>(options: BoundedChannelOptions, itemDropped: Action_1<T> | null): Channel_1<T>;
176
+ static CreateBounded<T extends unknown>(options: BoundedChannelOptions): Channel_1<T>;
177
+ static CreateUnbounded<T extends unknown>(): Channel_1<T>;
178
+ static CreateUnbounded<T extends unknown>(options: UnboundedChannelOptions): Channel_1<T>;
179
+ static CreateUnboundedPrioritized<T extends unknown>(): Channel_1<T>;
180
+ static CreateUnboundedPrioritized<T extends unknown>(options: UnboundedPrioritizedChannelOptions_1<T>): Channel_1<T>;
181
181
  }
182
182
 
183
183
 
@@ -5,6 +5,10 @@
5
5
  // Import internal declarations
6
6
  import * as Internal from './System.Threading.Channels/internal/index.js';
7
7
 
8
+ // Core type aliases from @tsonic/core
9
+ 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';
10
+
11
+
8
12
  // Cross-namespace type imports for constraints
9
13
  import type { IAsyncEnumerable_1, IComparer_1 } from './System.Collections.Generic/internal/index.js';
10
14
  import type { IDictionary } from './System.Collections/internal/index.js';
@@ -32,10 +36,10 @@ declare const __unspecified: unique symbol;
32
36
  export type __ = typeof __unspecified;
33
37
 
34
38
  export type Channel<
35
- T1 = __,
36
- T2 = __,
39
+ T1 extends unknown | __ = __,
40
+ T2 extends unknown | __ = __,
37
41
  > =
38
42
  [T1] extends [__] ? Internal.Channel :
39
- [T2] extends [__] ? Internal.Channel_1<T1> :
40
- Internal.Channel_2<T1, T2>;
43
+ [T2] extends [__] ? [T1] extends [unknown] ? Internal.Channel_1<T1> : never :
44
+ [T1] extends [unknown] ? [T2] extends [unknown] ? Internal.Channel_2<T1, T2> : never : never;
41
45