@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.Collections.Immutable
3
3
  // Assembly: System.Collections.Immutable
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 * as System_Collections_Generic_Internal from "../../System.Collections.Generic/internal/index.js";
@@ -16,7 +14,7 @@ import type { ICollection, IComparer, IDictionary, IDictionaryEnumerator, IEnume
16
14
  import * as System_Internal from "../../System/internal/index.js";
17
15
  import type { Action_1, Array as ClrArray, Boolean as ClrBoolean, Comparison_1, Func_2, Func_3, IDisposable, IEquatable_1, Int32, Object as ClrObject, Predicate_1, Range, ReadOnlyMemory_1, ReadOnlySpan_1, Span_1, String as ClrString, Type, ValueType, Void } from "../../System/internal/index.js";
18
16
 
19
- export interface IImmutableDictionary_2$instance<TKey, TValue> extends IReadOnlyDictionary_2<TKey, TValue>, IEnumerable_1<KeyValuePair_2<TKey, TValue>>, IEnumerable, IReadOnlyCollection_1<KeyValuePair_2<TKey, TValue>> {
17
+ export interface IImmutableDictionary_2$instance<TKey extends unknown, TValue extends unknown> extends IReadOnlyDictionary_2<TKey, TValue>, IEnumerable_1<KeyValuePair_2<TKey, TValue>>, IEnumerable, IReadOnlyCollection_1<KeyValuePair_2<TKey, TValue>> {
20
18
  readonly __tsonic_iface_System_Collections_Immutable_IImmutableDictionary_2: never;
21
19
 
22
20
  readonly Item: TValue;
@@ -37,9 +35,9 @@ export interface IImmutableDictionary_2$instance<TKey, TValue> extends IReadOnly
37
35
  }
38
36
 
39
37
 
40
- export type IImmutableDictionary_2<TKey, TValue> = IImmutableDictionary_2$instance<TKey, TValue>;
38
+ export type IImmutableDictionary_2<TKey extends unknown, TValue extends unknown> = IImmutableDictionary_2$instance<TKey, TValue>;
41
39
 
42
- export interface IImmutableList_1$instance<T> extends IReadOnlyList_1<T>, IEnumerable_1<T>, IEnumerable, IReadOnlyCollection_1<T> {
40
+ export interface IImmutableList_1$instance<T extends unknown> extends IReadOnlyList_1<T>, IEnumerable_1<T>, IEnumerable, IReadOnlyCollection_1<T> {
43
41
  readonly __tsonic_iface_System_Collections_Immutable_IImmutableList_1: never;
44
42
 
45
43
  readonly Count: int;
@@ -48,22 +46,22 @@ export interface IImmutableList_1$instance<T> extends IReadOnlyList_1<T>, IEnume
48
46
  Clear(): IImmutableList_1<T>;
49
47
  GetEnumerator(): IEnumerator_1<T>;
50
48
  GetEnumerator(): IEnumerator;
51
- IndexOf(item: T, index: int, count: int, equalityComparer: IEqualityComparer_1<T>): int;
49
+ IndexOf(item: T, index: int, count: int, equalityComparer: IEqualityComparer_1<T> | null): int;
52
50
  Insert(index: int, element: T): IImmutableList_1<T>;
53
51
  InsertRange(index: int, items: IEnumerable_1<T>): IImmutableList_1<T>;
54
- Remove(value: T, equalityComparer: IEqualityComparer_1<T>): IImmutableList_1<T>;
52
+ Remove(value: T, equalityComparer: IEqualityComparer_1<T> | null): IImmutableList_1<T>;
55
53
  RemoveAll(match: Predicate_1<T>): IImmutableList_1<T>;
56
54
  RemoveAt(index: int): IImmutableList_1<T>;
57
- RemoveRange(items: IEnumerable_1<T>, equalityComparer: IEqualityComparer_1<T>): IImmutableList_1<T>;
55
+ RemoveRange(items: IEnumerable_1<T>, equalityComparer: IEqualityComparer_1<T> | null): IImmutableList_1<T>;
58
56
  RemoveRange(index: int, count: int): IImmutableList_1<T>;
59
- Replace(oldValue: T, newValue: T, equalityComparer: IEqualityComparer_1<T>): IImmutableList_1<T>;
57
+ Replace(oldValue: T, newValue: T, equalityComparer: IEqualityComparer_1<T> | null): IImmutableList_1<T>;
60
58
  GetEnumerator2(): IEnumerator;
61
59
  }
62
60
 
63
61
 
64
- export type IImmutableList_1<T> = IImmutableList_1$instance<T> & { readonly [index: number]: T; };
62
+ export type IImmutableList_1<T extends unknown> = IImmutableList_1$instance<T> & { readonly [index: number]: T; };
65
63
 
66
- export interface IImmutableQueue_1$instance<T> extends IEnumerable_1<T>, IEnumerable {
64
+ export interface IImmutableQueue_1$instance<T extends unknown> extends IEnumerable_1<T>, IEnumerable {
67
65
  readonly __tsonic_iface_System_Collections_Immutable_IImmutableQueue_1: never;
68
66
 
69
67
  readonly IsEmpty: boolean;
@@ -76,9 +74,9 @@ export interface IImmutableQueue_1$instance<T> extends IEnumerable_1<T>, IEnumer
76
74
  }
77
75
 
78
76
 
79
- export type IImmutableQueue_1<T> = IImmutableQueue_1$instance<T>;
77
+ export type IImmutableQueue_1<T extends unknown> = IImmutableQueue_1$instance<T>;
80
78
 
81
- export interface IImmutableSet_1$instance<T> extends IReadOnlyCollection_1<T>, IEnumerable_1<T>, IEnumerable {
79
+ export interface IImmutableSet_1$instance<T extends unknown> extends IReadOnlyCollection_1<T>, IEnumerable_1<T>, IEnumerable {
82
80
  readonly __tsonic_iface_System_Collections_Immutable_IImmutableSet_1: never;
83
81
 
84
82
  readonly Count: int;
@@ -94,9 +92,9 @@ export interface IImmutableSet_1$instance<T> extends IReadOnlyCollection_1<T>, I
94
92
  }
95
93
 
96
94
 
97
- export type IImmutableSet_1<T> = IImmutableSet_1$instance<T>;
95
+ export type IImmutableSet_1<T extends unknown> = IImmutableSet_1$instance<T>;
98
96
 
99
- export interface IImmutableStack_1$instance<T> extends IEnumerable_1<T>, IEnumerable {
97
+ export interface IImmutableStack_1$instance<T extends unknown> extends IEnumerable_1<T>, IEnumerable {
100
98
  readonly __tsonic_iface_System_Collections_Immutable_IImmutableStack_1: never;
101
99
 
102
100
  readonly IsEmpty: boolean;
@@ -109,9 +107,9 @@ export interface IImmutableStack_1$instance<T> extends IEnumerable_1<T>, IEnumer
109
107
  }
110
108
 
111
109
 
112
- export type IImmutableStack_1<T> = IImmutableStack_1$instance<T>;
110
+ export type IImmutableStack_1<T extends unknown> = IImmutableStack_1$instance<T>;
113
111
 
114
- export interface ImmutableArray_1$instance<T> {
112
+ export interface ImmutableArray_1$instance<T extends unknown> {
115
113
  readonly __tsonic_type_System_Collections_Immutable_ImmutableArray_1: never;
116
114
 
117
115
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -134,33 +132,33 @@ export interface ImmutableArray_1$instance<T> {
134
132
  Add(item: T): ImmutableArray_1<T>;
135
133
  AddRange(items: IEnumerable_1<T>): ImmutableArray_1<T>;
136
134
  AddRange(items: T[], length: int): ImmutableArray_1<T>;
137
- AddRange<TDerived extends T>(items: TDerived[]): ImmutableArray_1<T>;
135
+ AddRange<TDerived extends unknown & T>(items: TDerived[]): ImmutableArray_1<T>;
138
136
  AddRange(items: ImmutableArray_1<T>, length: int): ImmutableArray_1<T>;
139
- AddRange<TDerived extends T>(items: ImmutableArray_1<TDerived>): ImmutableArray_1<T>;
137
+ AddRange<TDerived extends unknown & T>(items: ImmutableArray_1<TDerived>): ImmutableArray_1<T>;
140
138
  AddRange(items: ReadOnlySpan_1<T>): ImmutableArray_1<T>;
141
139
  AddRange(...items: T[]): ImmutableArray_1<T>;
142
- As<TOther>(): ImmutableArray_1<TOther>;
140
+ As<TOther extends (object | null)>(): ImmutableArray_1<TOther>;
143
141
  AsMemory(): ReadOnlyMemory_1<T>;
144
142
  AsSpan(): ReadOnlySpan_1<T>;
145
143
  AsSpan(start: int, length: int): ReadOnlySpan_1<T>;
146
144
  AsSpan(range: Range): ReadOnlySpan_1<T>;
147
- CastArray<TOther>(): ImmutableArray_1<TOther>;
145
+ CastArray<TOther extends (object | null)>(): ImmutableArray_1<TOther>;
148
146
  Clear(): ImmutableArray_1<T>;
149
147
  Contains(item: T): boolean;
150
- Contains(item: T, equalityComparer: IEqualityComparer_1<T>): boolean;
148
+ Contains(item: T, equalityComparer: IEqualityComparer_1<T> | null): boolean;
151
149
  CopyTo(destination: Span_1<T>): void;
152
150
  CopyTo(destination: T[]): void;
153
151
  CopyTo(destination: T[], destinationIndex: int): void;
154
152
  CopyTo(sourceIndex: int, destination: T[], destinationIndex: int, length: int): void;
155
- Equals(obj: unknown): boolean;
153
+ Equals(obj: unknown | null): boolean;
156
154
  Equals(other: ImmutableArray_1<T>): boolean;
157
155
  GetEnumerator(): ImmutableArray_1_Enumerator<T>;
158
156
  GetHashCode(): int;
159
157
  IndexOf(item: T): int;
160
- IndexOf(item: T, startIndex: int, equalityComparer: IEqualityComparer_1<T>): int;
158
+ IndexOf(item: T, startIndex: int, equalityComparer: IEqualityComparer_1<T> | null): int;
161
159
  IndexOf(item: T, startIndex: int): int;
162
160
  IndexOf(item: T, startIndex: int, count: int): int;
163
- IndexOf(item: T, startIndex: int, count: int, equalityComparer: IEqualityComparer_1<T>): int;
161
+ IndexOf(item: T, startIndex: int, count: int, equalityComparer: IEqualityComparer_1<T> | null): int;
164
162
  Insert(index: int, item: T): ImmutableArray_1<T>;
165
163
  InsertRange(index: int, items: IEnumerable_1<T>): ImmutableArray_1<T>;
166
164
  InsertRange(index: int, items: ImmutableArray_1<T>): ImmutableArray_1<T>;
@@ -170,39 +168,39 @@ export interface ImmutableArray_1$instance<T> {
170
168
  LastIndexOf(item: T): int;
171
169
  LastIndexOf(item: T, startIndex: int): int;
172
170
  LastIndexOf(item: T, startIndex: int, count: int): int;
173
- LastIndexOf(item: T, startIndex: int, count: int, equalityComparer: IEqualityComparer_1<T>): int;
174
- OfType<TResult>(): IEnumerable_1<TResult>;
171
+ LastIndexOf(item: T, startIndex: int, count: int, equalityComparer: IEqualityComparer_1<T> | null): int;
172
+ OfType<TResult extends unknown>(): IEnumerable_1<TResult>;
175
173
  Remove(item: T): ImmutableArray_1<T>;
176
- Remove(item: T, equalityComparer: IEqualityComparer_1<T>): ImmutableArray_1<T>;
174
+ Remove(item: T, equalityComparer: IEqualityComparer_1<T> | null): ImmutableArray_1<T>;
177
175
  RemoveAll(match: Predicate_1<T>): ImmutableArray_1<T>;
178
176
  RemoveAt(index: int): ImmutableArray_1<T>;
179
177
  RemoveRange(index: int, length: int): ImmutableArray_1<T>;
180
178
  RemoveRange(items: IEnumerable_1<T>): ImmutableArray_1<T>;
181
- RemoveRange(items: IEnumerable_1<T>, equalityComparer: IEqualityComparer_1<T>): ImmutableArray_1<T>;
179
+ RemoveRange(items: IEnumerable_1<T>, equalityComparer: IEqualityComparer_1<T> | null): ImmutableArray_1<T>;
182
180
  RemoveRange(items: ImmutableArray_1<T>): ImmutableArray_1<T>;
183
- RemoveRange(items: ImmutableArray_1<T>, equalityComparer: IEqualityComparer_1<T>): ImmutableArray_1<T>;
184
- RemoveRange(items: ReadOnlySpan_1<T>, equalityComparer?: IEqualityComparer_1<T>): ImmutableArray_1<T>;
185
- RemoveRange(items: T[], equalityComparer?: IEqualityComparer_1<T>): ImmutableArray_1<T>;
181
+ RemoveRange(items: ImmutableArray_1<T>, equalityComparer: IEqualityComparer_1<T> | null): ImmutableArray_1<T>;
182
+ RemoveRange(items: ReadOnlySpan_1<T>, equalityComparer?: IEqualityComparer_1<T> | null): ImmutableArray_1<T>;
183
+ RemoveRange(items: T[], equalityComparer?: IEqualityComparer_1<T> | null): ImmutableArray_1<T>;
186
184
  Replace(oldValue: T, newValue: T): ImmutableArray_1<T>;
187
- Replace(oldValue: T, newValue: T, equalityComparer: IEqualityComparer_1<T>): ImmutableArray_1<T>;
185
+ Replace(oldValue: T, newValue: T, equalityComparer: IEqualityComparer_1<T> | null): ImmutableArray_1<T>;
188
186
  SetItem(index: int, item: T): ImmutableArray_1<T>;
189
187
  Slice(start: int, length: int): ImmutableArray_1<T>;
190
188
  Sort(): ImmutableArray_1<T>;
191
189
  Sort(comparison: Comparison_1<T>): ImmutableArray_1<T>;
192
- Sort(comparer: IComparer_1<T>): ImmutableArray_1<T>;
193
- Sort(index: int, count: int, comparer: IComparer_1<T>): ImmutableArray_1<T>;
190
+ Sort(comparer: IComparer_1<T> | null): ImmutableArray_1<T>;
191
+ Sort(index: int, count: int, comparer: IComparer_1<T> | null): ImmutableArray_1<T>;
194
192
  ToBuilder(): ImmutableArray_1_Builder<T>;
195
193
  }
196
194
 
197
195
 
198
196
  export const ImmutableArray_1: {
199
- new<T>(): ImmutableArray_1<T>;
200
- readonly Empty: unknown;
201
- CastUp<T, TDerived extends T>(items: ImmutableArray_1<TDerived>): ImmutableArray_1<T>;
197
+ new<T extends unknown>(): ImmutableArray_1<T>;
198
+ readonly Empty: <T extends unknown>() => ImmutableArray_1<T>;
199
+ CastUp<T extends unknown, TDerived extends (object | null) & T>(items: ImmutableArray_1<TDerived>): ImmutableArray_1<T>;
202
200
  };
203
201
 
204
202
 
205
- export interface __ImmutableArray_1$views<T> {
203
+ export interface __ImmutableArray_1$views<T extends unknown> {
206
204
  As_IImmutableList_1(): IImmutableList_1$instance<T>;
207
205
  As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<T>;
208
206
  As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<T>;
@@ -219,10 +217,10 @@ export interface __ImmutableArray_1$views<T> {
219
217
  Equals(other: ImmutableArray_1<T>): boolean;
220
218
  }
221
219
 
222
- export type ImmutableArray_1<T> = ImmutableArray_1$instance<T> & __ImmutableArray_1$views<T> & { readonly [index: number]: T; };
220
+ export type ImmutableArray_1<T extends unknown> = ImmutableArray_1$instance<T> & __ImmutableArray_1$views<T> & { readonly [index: number]: T; };
223
221
 
224
222
 
225
- export interface ImmutableArray_1_Enumerator$instance<T> {
223
+ export interface ImmutableArray_1_Enumerator$instance<T extends unknown> {
226
224
  readonly __tsonic_type_System_Collections_Immutable_ImmutableArray_1_Enumerator: never;
227
225
 
228
226
  readonly Current: T;
@@ -231,178 +229,13 @@ export interface ImmutableArray_1_Enumerator$instance<T> {
231
229
 
232
230
 
233
231
  export const ImmutableArray_1_Enumerator: {
234
- new<T>(): ImmutableArray_1_Enumerator<T>;
232
+ new<T extends unknown>(): ImmutableArray_1_Enumerator<T>;
235
233
  };
236
234
 
237
235
 
238
- export type ImmutableArray_1_Enumerator<T> = ImmutableArray_1_Enumerator$instance<T>;
236
+ export type ImmutableArray_1_Enumerator<T extends unknown> = ImmutableArray_1_Enumerator$instance<T>;
239
237
 
240
- export interface ImmutableDictionary_2_Enumerator$instance<TKey, TValue> extends IDisposable {
241
- readonly __tsonic_type_System_Collections_Immutable_ImmutableDictionary_2_Enumerator: never;
242
-
243
- readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
244
- readonly __tsonic_iface_System_Collections_IEnumerator: never;
245
- readonly __tsonic_iface_System_IDisposable: never;
246
-
247
- readonly Current: KeyValuePair_2<TKey, TValue>;
248
- Dispose(): void;
249
- MoveNext(): boolean;
250
- Reset(): void;
251
- }
252
-
253
-
254
- export const ImmutableDictionary_2_Enumerator: {
255
- new<TKey, TValue>(): ImmutableDictionary_2_Enumerator<TKey, TValue>;
256
- };
257
-
258
-
259
- export interface __ImmutableDictionary_2_Enumerator$views<TKey, TValue> {
260
- As_IEnumerator_1(): System_Collections_Generic_Internal.IEnumerator_1$instance<KeyValuePair_2<TKey, TValue>>;
261
- As_IEnumerator(): System_Collections_Internal.IEnumerator$instance;
262
- }
263
-
264
- export type ImmutableDictionary_2_Enumerator<TKey, TValue> = ImmutableDictionary_2_Enumerator$instance<TKey, TValue> & __ImmutableDictionary_2_Enumerator$views<TKey, TValue>;
265
-
266
-
267
- export interface ImmutableHashSet_1_Enumerator$instance<T> extends IDisposable {
268
- readonly __tsonic_type_System_Collections_Immutable_ImmutableHashSet_1_Enumerator: never;
269
-
270
- readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
271
- readonly __tsonic_iface_System_Collections_IEnumerator: never;
272
- readonly __tsonic_iface_System_IDisposable: never;
273
-
274
- readonly Current: T;
275
- Dispose(): void;
276
- MoveNext(): boolean;
277
- Reset(): void;
278
- }
279
-
280
-
281
- export const ImmutableHashSet_1_Enumerator: {
282
- new<T>(): ImmutableHashSet_1_Enumerator<T>;
283
- };
284
-
285
-
286
- export interface __ImmutableHashSet_1_Enumerator$views<T> {
287
- As_IEnumerator_1(): System_Collections_Generic_Internal.IEnumerator_1$instance<T>;
288
- As_IEnumerator(): System_Collections_Internal.IEnumerator$instance;
289
- }
290
-
291
- export type ImmutableHashSet_1_Enumerator<T> = ImmutableHashSet_1_Enumerator$instance<T> & __ImmutableHashSet_1_Enumerator$views<T>;
292
-
293
-
294
- export interface ImmutableList_1_Enumerator$instance<T> extends IDisposable {
295
- readonly __tsonic_type_System_Collections_Immutable_ImmutableList_1_Enumerator: never;
296
-
297
- readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
298
- readonly __tsonic_iface_System_Collections_IEnumerator: never;
299
- readonly __tsonic_iface_System_IDisposable: never;
300
-
301
- readonly Current: T;
302
- Dispose(): void;
303
- MoveNext(): boolean;
304
- Reset(): void;
305
- }
306
-
307
-
308
- export const ImmutableList_1_Enumerator: {
309
- new<T>(): ImmutableList_1_Enumerator<T>;
310
- };
311
-
312
-
313
- export interface __ImmutableList_1_Enumerator$views<T> {
314
- As_IEnumerator_1(): System_Collections_Generic_Internal.IEnumerator_1$instance<T>;
315
- As_IEnumerator(): System_Collections_Internal.IEnumerator$instance;
316
- }
317
-
318
- export type ImmutableList_1_Enumerator<T> = ImmutableList_1_Enumerator$instance<T> & __ImmutableList_1_Enumerator$views<T>;
319
-
320
-
321
- export interface ImmutableQueue_1_Enumerator$instance<T> {
322
- readonly __tsonic_type_System_Collections_Immutable_ImmutableQueue_1_Enumerator: never;
323
-
324
- readonly Current: T;
325
- MoveNext(): boolean;
326
- }
327
-
328
-
329
- export const ImmutableQueue_1_Enumerator: {
330
- new<T>(): ImmutableQueue_1_Enumerator<T>;
331
- };
332
-
333
-
334
- export type ImmutableQueue_1_Enumerator<T> = ImmutableQueue_1_Enumerator$instance<T>;
335
-
336
- export interface ImmutableSortedDictionary_2_Enumerator$instance<TKey, TValue> extends IDisposable {
337
- readonly __tsonic_type_System_Collections_Immutable_ImmutableSortedDictionary_2_Enumerator: never;
338
-
339
- readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
340
- readonly __tsonic_iface_System_Collections_IEnumerator: never;
341
- readonly __tsonic_iface_System_IDisposable: never;
342
-
343
- readonly Current: KeyValuePair_2<TKey, TValue>;
344
- Dispose(): void;
345
- MoveNext(): boolean;
346
- Reset(): void;
347
- }
348
-
349
-
350
- export const ImmutableSortedDictionary_2_Enumerator: {
351
- new<TKey, TValue>(): ImmutableSortedDictionary_2_Enumerator<TKey, TValue>;
352
- };
353
-
354
-
355
- export interface __ImmutableSortedDictionary_2_Enumerator$views<TKey, TValue> {
356
- As_IEnumerator_1(): System_Collections_Generic_Internal.IEnumerator_1$instance<KeyValuePair_2<TKey, TValue>>;
357
- As_IEnumerator(): System_Collections_Internal.IEnumerator$instance;
358
- }
359
-
360
- export type ImmutableSortedDictionary_2_Enumerator<TKey, TValue> = ImmutableSortedDictionary_2_Enumerator$instance<TKey, TValue> & __ImmutableSortedDictionary_2_Enumerator$views<TKey, TValue>;
361
-
362
-
363
- export interface ImmutableSortedSet_1_Enumerator$instance<T> extends IDisposable {
364
- readonly __tsonic_type_System_Collections_Immutable_ImmutableSortedSet_1_Enumerator: never;
365
-
366
- readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
367
- readonly __tsonic_iface_System_Collections_IEnumerator: never;
368
- readonly __tsonic_iface_System_IDisposable: never;
369
-
370
- readonly Current: T;
371
- Dispose(): void;
372
- MoveNext(): boolean;
373
- Reset(): void;
374
- }
375
-
376
-
377
- export const ImmutableSortedSet_1_Enumerator: {
378
- new<T>(): ImmutableSortedSet_1_Enumerator<T>;
379
- };
380
-
381
-
382
- export interface __ImmutableSortedSet_1_Enumerator$views<T> {
383
- As_IEnumerator_1(): System_Collections_Generic_Internal.IEnumerator_1$instance<T>;
384
- As_IEnumerator(): System_Collections_Internal.IEnumerator$instance;
385
- }
386
-
387
- export type ImmutableSortedSet_1_Enumerator<T> = ImmutableSortedSet_1_Enumerator$instance<T> & __ImmutableSortedSet_1_Enumerator$views<T>;
388
-
389
-
390
- export interface ImmutableStack_1_Enumerator$instance<T> {
391
- readonly __tsonic_type_System_Collections_Immutable_ImmutableStack_1_Enumerator: never;
392
-
393
- readonly Current: T;
394
- MoveNext(): boolean;
395
- }
396
-
397
-
398
- export const ImmutableStack_1_Enumerator: {
399
- new<T>(): ImmutableStack_1_Enumerator<T>;
400
- };
401
-
402
-
403
- export type ImmutableStack_1_Enumerator<T> = ImmutableStack_1_Enumerator$instance<T>;
404
-
405
- export interface ImmutableArray_1_Builder$instance<T> {
238
+ export interface ImmutableArray_1_Builder$instance<T extends unknown> {
406
239
  readonly __tsonic_type_System_Collections_Immutable_ImmutableArray_1_Builder: never;
407
240
 
408
241
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -417,7 +250,7 @@ export interface ImmutableArray_1_Builder$instance<T> {
417
250
  Add(item: T): void;
418
251
  AddRange(items: IEnumerable_1<T>): void;
419
252
  AddRange(...items: T[]): void;
420
- AddRange<TDerived extends T>(items: TDerived[]): void;
253
+ AddRange<TDerived extends unknown>(items: TDerived[]): void;
421
254
  AddRange(items: T[], length: int): void;
422
255
  AddRange(items: ImmutableArray_1<T>): void;
423
256
  AddRange(items: ImmutableArray_1<T>, length: int): void;
@@ -434,8 +267,8 @@ export interface ImmutableArray_1_Builder$instance<T> {
434
267
  IndexOf(item: T): int;
435
268
  IndexOf(item: T, startIndex: int): int;
436
269
  IndexOf(item: T, startIndex: int, count: int): int;
437
- IndexOf(item: T, startIndex: int, count: int, equalityComparer: IEqualityComparer_1<T>): int;
438
- IndexOf(item: T, startIndex: int, equalityComparer: IEqualityComparer_1<T>): int;
270
+ IndexOf(item: T, startIndex: int, count: int, equalityComparer: IEqualityComparer_1<T> | null): int;
271
+ IndexOf(item: T, startIndex: int, equalityComparer: IEqualityComparer_1<T> | null): int;
439
272
  Insert(index: int, item: T): void;
440
273
  InsertRange(index: int, items: IEnumerable_1<T>): void;
441
274
  InsertRange(index: int, items: ImmutableArray_1<T>): void;
@@ -443,22 +276,22 @@ export interface ImmutableArray_1_Builder$instance<T> {
443
276
  LastIndexOf(item: T): int;
444
277
  LastIndexOf(item: T, startIndex: int): int;
445
278
  LastIndexOf(item: T, startIndex: int, count: int): int;
446
- LastIndexOf(item: T, startIndex: int, count: int, equalityComparer: IEqualityComparer_1<T>): int;
279
+ LastIndexOf(item: T, startIndex: int, count: int, equalityComparer: IEqualityComparer_1<T> | null): int;
447
280
  MoveToImmutable(): ImmutableArray_1<T>;
448
281
  Remove(element: T): boolean;
449
- Remove(element: T, equalityComparer: IEqualityComparer_1<T>): boolean;
282
+ Remove(element: T, equalityComparer: IEqualityComparer_1<T> | null): boolean;
450
283
  RemoveAll(match: Predicate_1<T>): void;
451
284
  RemoveAt(index: int): void;
452
285
  RemoveRange(index: int, length: int): void;
453
286
  RemoveRange(items: IEnumerable_1<T>): void;
454
- RemoveRange(items: IEnumerable_1<T>, equalityComparer: IEqualityComparer_1<T>): void;
287
+ RemoveRange(items: IEnumerable_1<T>, equalityComparer: IEqualityComparer_1<T> | null): void;
455
288
  Replace(oldValue: T, newValue: T): void;
456
- Replace(oldValue: T, newValue: T, equalityComparer: IEqualityComparer_1<T>): void;
289
+ Replace(oldValue: T, newValue: T, equalityComparer: IEqualityComparer_1<T> | null): void;
457
290
  Reverse(): void;
458
291
  Sort(): void;
459
292
  Sort(comparison: Comparison_1<T>): void;
460
- Sort(comparer: IComparer_1<T>): void;
461
- Sort(index: int, count: int, comparer: IComparer_1<T>): void;
293
+ Sort(comparer: IComparer_1<T> | null): void;
294
+ Sort(index: int, count: int, comparer: IComparer_1<T> | null): void;
462
295
  ToArray(): T[];
463
296
  ToImmutable(): ImmutableArray_1<T>;
464
297
  }
@@ -468,18 +301,9 @@ export const ImmutableArray_1_Builder: {
468
301
  };
469
302
 
470
303
 
471
- export interface __ImmutableArray_1_Builder$views<T> {
472
- As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<T>;
473
- As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<T>;
474
- As_IList_1(): System_Collections_Generic_Internal.IList_1$instance<T>;
475
- As_IReadOnlyCollection_1(): System_Collections_Generic_Internal.IReadOnlyCollection_1$instance<T>;
476
- As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
477
- }
478
-
479
- export type ImmutableArray_1_Builder<T> = ImmutableArray_1_Builder$instance<T> & __ImmutableArray_1_Builder$views<T> & { [index: number]: T; };
480
-
304
+ export type ImmutableArray_1_Builder<T extends unknown> = ImmutableArray_1_Builder$instance<T> & { [index: number]: T; };
481
305
 
482
- export interface ImmutableDictionary_2$instance<TKey, TValue> {
306
+ export interface ImmutableDictionary_2$instance<TKey extends unknown, TValue extends unknown> {
483
307
  readonly __tsonic_type_System_Collections_Immutable_ImmutableDictionary_2: never;
484
308
 
485
309
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -513,17 +337,17 @@ export interface ImmutableDictionary_2$instance<TKey, TValue> {
513
337
  ToBuilder(): ImmutableDictionary_2_Builder<TKey, TValue>;
514
338
  TryGetKey(equalKey: TKey, actualKey: TKey): boolean;
515
339
  TryGetValue(key: TKey, value: TValue): boolean;
516
- WithComparers(keyComparer: IEqualityComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>): ImmutableDictionary_2<TKey, TValue>;
517
- WithComparers(keyComparer: IEqualityComparer_1<TKey>): ImmutableDictionary_2<TKey, TValue>;
340
+ WithComparers(keyComparer: IEqualityComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null): ImmutableDictionary_2<TKey, TValue>;
341
+ WithComparers(keyComparer: IEqualityComparer_1<TKey> | null): ImmutableDictionary_2<TKey, TValue>;
518
342
  }
519
343
 
520
344
 
521
345
  export const ImmutableDictionary_2: {
522
- readonly Empty: unknown;
346
+ readonly Empty: <TKey extends unknown, TValue extends unknown>() => ImmutableDictionary_2<TKey, TValue>;
523
347
  };
524
348
 
525
349
 
526
- export interface __ImmutableDictionary_2$views<TKey, TValue> {
350
+ export interface __ImmutableDictionary_2$views<TKey extends unknown, TValue extends unknown> {
527
351
  As_IImmutableDictionary_2(): IImmutableDictionary_2$instance<TKey, TValue>;
528
352
  As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<KeyValuePair_2<TKey, TValue>>;
529
353
  As_IDictionary_2(): System_Collections_Generic_Internal.IDictionary_2$instance<TKey, TValue>;
@@ -535,10 +359,31 @@ export interface __ImmutableDictionary_2$views<TKey, TValue> {
535
359
  As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
536
360
  }
537
361
 
538
- export type ImmutableDictionary_2<TKey, TValue> = ImmutableDictionary_2$instance<TKey, TValue> & __ImmutableDictionary_2$views<TKey, TValue>;
362
+ export type ImmutableDictionary_2<TKey extends unknown, TValue extends unknown> = ImmutableDictionary_2$instance<TKey, TValue> & __ImmutableDictionary_2$views<TKey, TValue>;
363
+
364
+
365
+ export interface ImmutableDictionary_2_Enumerator$instance<TKey extends unknown, TValue extends unknown> extends IEnumerator_1<KeyValuePair_2<TKey, TValue>> {
366
+ readonly __tsonic_type_System_Collections_Immutable_ImmutableDictionary_2_Enumerator: never;
367
+
368
+ readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
369
+ readonly __tsonic_iface_System_Collections_IEnumerator: never;
370
+ readonly __tsonic_iface_System_IDisposable: never;
371
+
372
+ readonly Current: KeyValuePair_2<TKey, TValue>;
373
+ Dispose(): void;
374
+ MoveNext(): boolean;
375
+ Reset(): void;
376
+ }
377
+
378
+
379
+ export const ImmutableDictionary_2_Enumerator: {
380
+ new<TKey extends unknown, TValue extends unknown>(): ImmutableDictionary_2_Enumerator<TKey, TValue>;
381
+ };
382
+
539
383
 
384
+ export type ImmutableDictionary_2_Enumerator<TKey extends unknown, TValue extends unknown> = ImmutableDictionary_2_Enumerator$instance<TKey, TValue>;
540
385
 
541
- export interface ImmutableDictionary_2_Builder$instance<TKey, TValue> {
386
+ export interface ImmutableDictionary_2_Builder$instance<TKey extends unknown, TValue extends unknown> {
542
387
  readonly __tsonic_type_System_Collections_Immutable_ImmutableDictionary_2_Builder: never;
543
388
 
544
389
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -564,7 +409,7 @@ export interface ImmutableDictionary_2_Builder$instance<TKey, TValue> {
564
409
  ContainsKey(key: TKey): boolean;
565
410
  ContainsValue(value: TValue): boolean;
566
411
  GetEnumerator(): ImmutableDictionary_2_Enumerator<TKey, TValue>;
567
- GetValueOrDefault(key: TKey): TValue | undefined;
412
+ GetValueOrDefault(key: TKey): TValue | null;
568
413
  GetValueOrDefault(key: TKey, defaultValue: TValue): TValue;
569
414
  Remove(key: TKey): boolean;
570
415
  Remove(item: KeyValuePair_2<TKey, TValue>): boolean;
@@ -579,21 +424,9 @@ export const ImmutableDictionary_2_Builder: {
579
424
  };
580
425
 
581
426
 
582
- export interface __ImmutableDictionary_2_Builder$views<TKey, TValue> {
583
- As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<KeyValuePair_2<TKey, TValue>>;
584
- As_IDictionary_2(): System_Collections_Generic_Internal.IDictionary_2$instance<TKey, TValue>;
585
- As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<KeyValuePair_2<TKey, TValue>>;
586
- As_IReadOnlyCollection_1(): System_Collections_Generic_Internal.IReadOnlyCollection_1$instance<KeyValuePair_2<TKey, TValue>>;
587
- As_IReadOnlyDictionary_2(): System_Collections_Generic_Internal.IReadOnlyDictionary_2$instance<TKey, TValue>;
588
- As_ICollection(): System_Collections_Internal.ICollection$instance;
589
- As_IDictionary(): System_Collections_Internal.IDictionary$instance;
590
- As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
591
- }
592
-
593
- export type ImmutableDictionary_2_Builder<TKey, TValue> = ImmutableDictionary_2_Builder$instance<TKey, TValue> & __ImmutableDictionary_2_Builder$views<TKey, TValue>;
427
+ export type ImmutableDictionary_2_Builder<TKey extends unknown, TValue extends unknown> = ImmutableDictionary_2_Builder$instance<TKey, TValue>;
594
428
 
595
-
596
- export interface ImmutableHashSet_1$instance<T> {
429
+ export interface ImmutableHashSet_1$instance<T extends unknown> {
597
430
  readonly __tsonic_type_System_Collections_Immutable_ImmutableHashSet_1: never;
598
431
 
599
432
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -625,16 +458,16 @@ export interface ImmutableHashSet_1$instance<T> {
625
458
  ToBuilder(): ImmutableHashSet_1_Builder<T>;
626
459
  TryGetValue(equalValue: T, actualValue: T): boolean;
627
460
  Union(other: IEnumerable_1<T>): ImmutableHashSet_1<T>;
628
- WithComparer(equalityComparer: IEqualityComparer_1<T>): ImmutableHashSet_1<T>;
461
+ WithComparer(equalityComparer: IEqualityComparer_1<T> | null): ImmutableHashSet_1<T>;
629
462
  }
630
463
 
631
464
 
632
465
  export const ImmutableHashSet_1: {
633
- readonly Empty: unknown;
466
+ readonly Empty: <T extends unknown>() => ImmutableHashSet_1<T>;
634
467
  };
635
468
 
636
469
 
637
- export interface __ImmutableHashSet_1$views<T> {
470
+ export interface __ImmutableHashSet_1$views<T extends unknown> {
638
471
  As_IImmutableSet_1(): IImmutableSet_1$instance<T>;
639
472
  As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<T>;
640
473
  As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<T>;
@@ -645,10 +478,32 @@ export interface __ImmutableHashSet_1$views<T> {
645
478
  As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
646
479
  }
647
480
 
648
- export type ImmutableHashSet_1<T> = ImmutableHashSet_1$instance<T> & __ImmutableHashSet_1$views<T>;
481
+ export type ImmutableHashSet_1<T extends unknown> = ImmutableHashSet_1$instance<T> & __ImmutableHashSet_1$views<T>;
482
+
483
+
484
+ export interface ImmutableHashSet_1_Enumerator$instance<T extends unknown> extends IEnumerator_1<T> {
485
+ readonly __tsonic_type_System_Collections_Immutable_ImmutableHashSet_1_Enumerator: never;
486
+
487
+ readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
488
+ readonly __tsonic_iface_System_Collections_IEnumerator: never;
489
+ readonly __tsonic_iface_System_Collections_Immutable_IStrongEnumerator_1: never;
490
+ readonly __tsonic_iface_System_IDisposable: never;
491
+
492
+ readonly Current: T;
493
+ Dispose(): void;
494
+ MoveNext(): boolean;
495
+ Reset(): void;
496
+ }
497
+
498
+
499
+ export const ImmutableHashSet_1_Enumerator: {
500
+ new<T extends unknown>(): ImmutableHashSet_1_Enumerator<T>;
501
+ };
502
+
649
503
 
504
+ export type ImmutableHashSet_1_Enumerator<T extends unknown> = ImmutableHashSet_1_Enumerator$instance<T>;
650
505
 
651
- export interface ImmutableHashSet_1_Builder$instance<T> {
506
+ export interface ImmutableHashSet_1_Builder$instance<T extends unknown> {
652
507
  readonly __tsonic_type_System_Collections_Immutable_ImmutableHashSet_1_Builder: never;
653
508
 
654
509
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -683,18 +538,9 @@ export const ImmutableHashSet_1_Builder: {
683
538
  };
684
539
 
685
540
 
686
- export interface __ImmutableHashSet_1_Builder$views<T> {
687
- As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<T>;
688
- As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<T>;
689
- As_IReadOnlyCollection_1(): System_Collections_Generic_Internal.IReadOnlyCollection_1$instance<T>;
690
- As_ISet_1(): System_Collections_Generic_Internal.ISet_1$instance<T>;
691
- As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
692
- }
693
-
694
- export type ImmutableHashSet_1_Builder<T> = ImmutableHashSet_1_Builder$instance<T> & __ImmutableHashSet_1_Builder$views<T>;
541
+ export type ImmutableHashSet_1_Builder<T extends unknown> = ImmutableHashSet_1_Builder$instance<T>;
695
542
 
696
-
697
- export interface ImmutableList_1$instance<T> {
543
+ export interface ImmutableList_1$instance<T extends unknown> {
698
544
  readonly __tsonic_type_System_Collections_Immutable_ImmutableList_1: never;
699
545
 
700
546
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -712,60 +558,60 @@ export interface ImmutableList_1$instance<T> {
712
558
  Add(value: T): ImmutableList_1<T>;
713
559
  AddRange(items: IEnumerable_1<T>): ImmutableList_1<T>;
714
560
  BinarySearch(item: T): int;
715
- BinarySearch(item: T, comparer: IComparer_1<T>): int;
716
- BinarySearch(index: int, count: int, item: T, comparer: IComparer_1<T>): int;
561
+ BinarySearch(item: T, comparer: IComparer_1<T> | null): int;
562
+ BinarySearch(index: int, count: int, item: T, comparer: IComparer_1<T> | null): int;
717
563
  Clear(): ImmutableList_1<T>;
718
564
  Contains(value: T): boolean;
719
- ConvertAll<TOutput>(converter: Func_2<T, TOutput>): ImmutableList_1<TOutput>;
565
+ ConvertAll<TOutput extends unknown>(converter: Func_2<T, TOutput>): ImmutableList_1<TOutput>;
720
566
  CopyTo(array: T[]): void;
721
567
  CopyTo(array: T[], arrayIndex: int): void;
722
568
  CopyTo(index: int, array: T[], arrayIndex: int, count: int): void;
723
569
  Exists(match: Predicate_1<T>): boolean;
724
- Find(match: Predicate_1<T>): T | undefined;
570
+ Find(match: Predicate_1<T>): T | null;
725
571
  FindAll(match: Predicate_1<T>): ImmutableList_1<T>;
726
572
  FindIndex(match: Predicate_1<T>): int;
727
573
  FindIndex(startIndex: int, match: Predicate_1<T>): int;
728
574
  FindIndex(startIndex: int, count: int, match: Predicate_1<T>): int;
729
- FindLast(match: Predicate_1<T>): T | undefined;
575
+ FindLast(match: Predicate_1<T>): T | null;
730
576
  FindLastIndex(match: Predicate_1<T>): int;
731
577
  FindLastIndex(startIndex: int, match: Predicate_1<T>): int;
732
578
  FindLastIndex(startIndex: int, count: int, match: Predicate_1<T>): int;
733
579
  ForEach(action: Action_1<T>): void;
734
580
  GetEnumerator(): ImmutableList_1_Enumerator<T>;
735
581
  GetRange(index: int, count: int): ImmutableList_1<T>;
736
- IndexOf(item: T, index: int, count: int, equalityComparer: IEqualityComparer_1<T>): int;
582
+ IndexOf(item: T, index: int, count: int, equalityComparer: IEqualityComparer_1<T> | null): int;
737
583
  IndexOf(value: T): int;
738
584
  Insert(index: int, item: T): ImmutableList_1<T>;
739
585
  InsertRange(index: int, items: IEnumerable_1<T>): ImmutableList_1<T>;
740
586
  ItemRef(index: int): T;
741
- LastIndexOf(item: T, index: int, count: int, equalityComparer: IEqualityComparer_1<T>): int;
587
+ LastIndexOf(item: T, index: int, count: int, equalityComparer: IEqualityComparer_1<T> | null): int;
742
588
  Remove(value: T): ImmutableList_1<T>;
743
- Remove(value: T, equalityComparer: IEqualityComparer_1<T>): ImmutableList_1<T>;
589
+ Remove(value: T, equalityComparer: IEqualityComparer_1<T> | null): ImmutableList_1<T>;
744
590
  RemoveAll(match: Predicate_1<T>): ImmutableList_1<T>;
745
591
  RemoveAt(index: int): ImmutableList_1<T>;
746
592
  RemoveRange(index: int, count: int): ImmutableList_1<T>;
747
593
  RemoveRange(items: IEnumerable_1<T>): ImmutableList_1<T>;
748
- RemoveRange(items: IEnumerable_1<T>, equalityComparer: IEqualityComparer_1<T>): ImmutableList_1<T>;
594
+ RemoveRange(items: IEnumerable_1<T>, equalityComparer: IEqualityComparer_1<T> | null): ImmutableList_1<T>;
749
595
  Replace(oldValue: T, newValue: T): ImmutableList_1<T>;
750
- Replace(oldValue: T, newValue: T, equalityComparer: IEqualityComparer_1<T>): ImmutableList_1<T>;
596
+ Replace(oldValue: T, newValue: T, equalityComparer: IEqualityComparer_1<T> | null): ImmutableList_1<T>;
751
597
  Reverse(): ImmutableList_1<T>;
752
598
  Reverse(index: int, count: int): ImmutableList_1<T>;
753
599
  SetItem(index: int, value: T): ImmutableList_1<T>;
754
600
  Sort(): ImmutableList_1<T>;
755
601
  Sort(comparison: Comparison_1<T>): ImmutableList_1<T>;
756
- Sort(comparer: IComparer_1<T>): ImmutableList_1<T>;
757
- Sort(index: int, count: int, comparer: IComparer_1<T>): ImmutableList_1<T>;
602
+ Sort(comparer: IComparer_1<T> | null): ImmutableList_1<T>;
603
+ Sort(index: int, count: int, comparer: IComparer_1<T> | null): ImmutableList_1<T>;
758
604
  ToBuilder(): ImmutableList_1_Builder<T>;
759
605
  TrueForAll(match: Predicate_1<T>): boolean;
760
606
  }
761
607
 
762
608
 
763
609
  export const ImmutableList_1: {
764
- readonly Empty: unknown;
610
+ readonly Empty: <T extends unknown>() => ImmutableList_1<T>;
765
611
  };
766
612
 
767
613
 
768
- export interface __ImmutableList_1$views<T> {
614
+ export interface __ImmutableList_1$views<T extends unknown> {
769
615
  As_IImmutableList_1(): IImmutableList_1$instance<T>;
770
616
  As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<T>;
771
617
  As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<T>;
@@ -776,10 +622,33 @@ export interface __ImmutableList_1$views<T> {
776
622
  As_IList(): System_Collections_Internal.IList$instance;
777
623
  }
778
624
 
779
- export type ImmutableList_1<T> = ImmutableList_1$instance<T> & __ImmutableList_1$views<T> & { readonly [index: number]: T; };
625
+ export type ImmutableList_1<T extends unknown> = ImmutableList_1$instance<T> & __ImmutableList_1$views<T> & { readonly [index: number]: T; };
626
+
780
627
 
628
+ export interface ImmutableList_1_Enumerator$instance<T extends unknown> extends IEnumerator_1<T> {
629
+ readonly __tsonic_type_System_Collections_Immutable_ImmutableList_1_Enumerator: never;
630
+
631
+ readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
632
+ readonly __tsonic_iface_System_Collections_IEnumerator: never;
633
+ readonly __tsonic_iface_System_Collections_Immutable_ISecurePooledObjectUser: never;
634
+ readonly __tsonic_iface_System_Collections_Immutable_IStrongEnumerator_1: never;
635
+ readonly __tsonic_iface_System_IDisposable: never;
781
636
 
782
- export interface ImmutableList_1_Builder$instance<T> {
637
+ readonly Current: T;
638
+ Dispose(): void;
639
+ MoveNext(): boolean;
640
+ Reset(): void;
641
+ }
642
+
643
+
644
+ export const ImmutableList_1_Enumerator: {
645
+ new<T extends unknown>(): ImmutableList_1_Enumerator<T>;
646
+ };
647
+
648
+
649
+ export type ImmutableList_1_Enumerator<T extends unknown> = ImmutableList_1_Enumerator$instance<T>;
650
+
651
+ export interface ImmutableList_1_Builder$instance<T extends unknown> {
783
652
  readonly __tsonic_type_System_Collections_Immutable_ImmutableList_1_Builder: never;
784
653
 
785
654
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -795,21 +664,21 @@ export interface ImmutableList_1_Builder$instance<T> {
795
664
  Add(item: T): void;
796
665
  AddRange(items: IEnumerable_1<T>): void;
797
666
  BinarySearch(item: T): int;
798
- BinarySearch(item: T, comparer: IComparer_1<T>): int;
799
- BinarySearch(index: int, count: int, item: T, comparer: IComparer_1<T>): int;
667
+ BinarySearch(item: T, comparer: IComparer_1<T> | null): int;
668
+ BinarySearch(index: int, count: int, item: T, comparer: IComparer_1<T> | null): int;
800
669
  Clear(): void;
801
670
  Contains(item: T): boolean;
802
- ConvertAll<TOutput>(converter: Func_2<T, TOutput>): ImmutableList_1<TOutput>;
671
+ ConvertAll<TOutput extends unknown>(converter: Func_2<T, TOutput>): ImmutableList_1<TOutput>;
803
672
  CopyTo(array: T[]): void;
804
673
  CopyTo(array: T[], arrayIndex: int): void;
805
674
  CopyTo(index: int, array: T[], arrayIndex: int, count: int): void;
806
675
  Exists(match: Predicate_1<T>): boolean;
807
- Find(match: Predicate_1<T>): T | undefined;
676
+ Find(match: Predicate_1<T>): T | null;
808
677
  FindAll(match: Predicate_1<T>): ImmutableList_1<T>;
809
678
  FindIndex(match: Predicate_1<T>): int;
810
679
  FindIndex(startIndex: int, match: Predicate_1<T>): int;
811
680
  FindIndex(startIndex: int, count: int, match: Predicate_1<T>): int;
812
- FindLast(match: Predicate_1<T>): T | undefined;
681
+ FindLast(match: Predicate_1<T>): T | null;
813
682
  FindLastIndex(match: Predicate_1<T>): int;
814
683
  FindLastIndex(startIndex: int, match: Predicate_1<T>): int;
815
684
  FindLastIndex(startIndex: int, count: int, match: Predicate_1<T>): int;
@@ -819,29 +688,29 @@ export interface ImmutableList_1_Builder$instance<T> {
819
688
  IndexOf(item: T): int;
820
689
  IndexOf(item: T, index: int): int;
821
690
  IndexOf(item: T, index: int, count: int): int;
822
- IndexOf(item: T, index: int, count: int, equalityComparer: IEqualityComparer_1<T>): int;
691
+ IndexOf(item: T, index: int, count: int, equalityComparer: IEqualityComparer_1<T> | null): int;
823
692
  Insert(index: int, item: T): void;
824
693
  InsertRange(index: int, items: IEnumerable_1<T>): void;
825
694
  ItemRef(index: int): T;
826
695
  LastIndexOf(item: T): int;
827
696
  LastIndexOf(item: T, startIndex: int): int;
828
697
  LastIndexOf(item: T, startIndex: int, count: int): int;
829
- LastIndexOf(item: T, startIndex: int, count: int, equalityComparer: IEqualityComparer_1<T>): int;
698
+ LastIndexOf(item: T, startIndex: int, count: int, equalityComparer: IEqualityComparer_1<T> | null): int;
830
699
  Remove(item: T): boolean;
831
- Remove(item: T, equalityComparer: IEqualityComparer_1<T>): boolean;
700
+ Remove(item: T, equalityComparer: IEqualityComparer_1<T> | null): boolean;
832
701
  RemoveAll(match: Predicate_1<T>): int;
833
702
  RemoveAt(index: int): void;
834
703
  RemoveRange(index: int, count: int): void;
835
- RemoveRange(items: IEnumerable_1<T>, equalityComparer: IEqualityComparer_1<T>): void;
704
+ RemoveRange(items: IEnumerable_1<T>, equalityComparer: IEqualityComparer_1<T> | null): void;
836
705
  RemoveRange(items: IEnumerable_1<T>): void;
837
706
  Replace(oldValue: T, newValue: T): void;
838
- Replace(oldValue: T, newValue: T, equalityComparer: IEqualityComparer_1<T>): void;
707
+ Replace(oldValue: T, newValue: T, equalityComparer: IEqualityComparer_1<T> | null): void;
839
708
  Reverse(): void;
840
709
  Reverse(index: int, count: int): void;
841
710
  Sort(): void;
842
711
  Sort(comparison: Comparison_1<T>): void;
843
- Sort(comparer: IComparer_1<T>): void;
844
- Sort(index: int, count: int, comparer: IComparer_1<T>): void;
712
+ Sort(comparer: IComparer_1<T> | null): void;
713
+ Sort(index: int, count: int, comparer: IComparer_1<T> | null): void;
845
714
  ToImmutable(): ImmutableList_1<T>;
846
715
  TrueForAll(match: Predicate_1<T>): boolean;
847
716
  }
@@ -851,20 +720,9 @@ export const ImmutableList_1_Builder: {
851
720
  };
852
721
 
853
722
 
854
- export interface __ImmutableList_1_Builder$views<T> {
855
- As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<T>;
856
- As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<T>;
857
- As_IList_1(): System_Collections_Generic_Internal.IList_1$instance<T>;
858
- As_IReadOnlyCollection_1(): System_Collections_Generic_Internal.IReadOnlyCollection_1$instance<T>;
859
- As_ICollection(): System_Collections_Internal.ICollection$instance;
860
- As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
861
- As_IList(): System_Collections_Internal.IList$instance;
862
- }
863
-
864
- export type ImmutableList_1_Builder<T> = ImmutableList_1_Builder$instance<T> & __ImmutableList_1_Builder$views<T> & { [index: number]: T; };
865
-
723
+ export type ImmutableList_1_Builder<T extends unknown> = ImmutableList_1_Builder$instance<T> & { [index: number]: T; };
866
724
 
867
- export interface ImmutableQueue_1$instance<T> {
725
+ export interface ImmutableQueue_1$instance<T extends unknown> {
868
726
  readonly __tsonic_type_System_Collections_Immutable_ImmutableQueue_1: never;
869
727
 
870
728
  readonly __tsonic_iface_System_Collections_Generic_IEnumerable_1: never;
@@ -883,20 +741,35 @@ export interface ImmutableQueue_1$instance<T> {
883
741
 
884
742
 
885
743
  export const ImmutableQueue_1: {
886
- readonly Empty: unknown;
744
+ readonly Empty: <T extends unknown>() => ImmutableQueue_1<T>;
887
745
  };
888
746
 
889
747
 
890
- export interface __ImmutableQueue_1$views<T> {
748
+ export interface __ImmutableQueue_1$views<T extends unknown> {
891
749
  As_IImmutableQueue_1(): IImmutableQueue_1$instance<T>;
892
750
  As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<T>;
893
751
  As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
894
752
  }
895
753
 
896
- export type ImmutableQueue_1<T> = ImmutableQueue_1$instance<T> & __ImmutableQueue_1$views<T>;
754
+ export type ImmutableQueue_1<T extends unknown> = ImmutableQueue_1$instance<T> & __ImmutableQueue_1$views<T>;
755
+
756
+
757
+ export interface ImmutableQueue_1_Enumerator$instance<T extends unknown> {
758
+ readonly __tsonic_type_System_Collections_Immutable_ImmutableQueue_1_Enumerator: never;
759
+
760
+ readonly Current: T;
761
+ MoveNext(): boolean;
762
+ }
763
+
764
+
765
+ export const ImmutableQueue_1_Enumerator: {
766
+ new<T extends unknown>(): ImmutableQueue_1_Enumerator<T>;
767
+ };
768
+
897
769
 
770
+ export type ImmutableQueue_1_Enumerator<T extends unknown> = ImmutableQueue_1_Enumerator$instance<T>;
898
771
 
899
- export interface ImmutableSortedDictionary_2$instance<TKey, TValue> {
772
+ export interface ImmutableSortedDictionary_2$instance<TKey extends unknown, TValue extends unknown> {
900
773
  readonly __tsonic_type_System_Collections_Immutable_ImmutableSortedDictionary_2: never;
901
774
 
902
775
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -931,17 +804,17 @@ export interface ImmutableSortedDictionary_2$instance<TKey, TValue> {
931
804
  TryGetKey(equalKey: TKey, actualKey: TKey): boolean;
932
805
  TryGetValue(key: TKey, value: TValue): boolean;
933
806
  ValueRef(key: TKey): TValue;
934
- WithComparers(keyComparer: IComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>): ImmutableSortedDictionary_2<TKey, TValue>;
935
- WithComparers(keyComparer: IComparer_1<TKey>): ImmutableSortedDictionary_2<TKey, TValue>;
807
+ WithComparers(keyComparer: IComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null): ImmutableSortedDictionary_2<TKey, TValue>;
808
+ WithComparers(keyComparer: IComparer_1<TKey> | null): ImmutableSortedDictionary_2<TKey, TValue>;
936
809
  }
937
810
 
938
811
 
939
812
  export const ImmutableSortedDictionary_2: {
940
- readonly Empty: unknown;
813
+ readonly Empty: <TKey extends unknown, TValue extends unknown>() => ImmutableSortedDictionary_2<TKey, TValue>;
941
814
  };
942
815
 
943
816
 
944
- export interface __ImmutableSortedDictionary_2$views<TKey, TValue> {
817
+ export interface __ImmutableSortedDictionary_2$views<TKey extends unknown, TValue extends unknown> {
945
818
  As_IImmutableDictionary_2(): IImmutableDictionary_2$instance<TKey, TValue>;
946
819
  As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<KeyValuePair_2<TKey, TValue>>;
947
820
  As_IDictionary_2(): System_Collections_Generic_Internal.IDictionary_2$instance<TKey, TValue>;
@@ -953,10 +826,32 @@ export interface __ImmutableSortedDictionary_2$views<TKey, TValue> {
953
826
  As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
954
827
  }
955
828
 
956
- export type ImmutableSortedDictionary_2<TKey, TValue> = ImmutableSortedDictionary_2$instance<TKey, TValue> & __ImmutableSortedDictionary_2$views<TKey, TValue>;
829
+ export type ImmutableSortedDictionary_2<TKey extends unknown, TValue extends unknown> = ImmutableSortedDictionary_2$instance<TKey, TValue> & __ImmutableSortedDictionary_2$views<TKey, TValue>;
830
+
831
+
832
+ export interface ImmutableSortedDictionary_2_Enumerator$instance<TKey extends unknown, TValue extends unknown> extends IEnumerator_1<KeyValuePair_2<TKey, TValue>> {
833
+ readonly __tsonic_type_System_Collections_Immutable_ImmutableSortedDictionary_2_Enumerator: never;
834
+
835
+ readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
836
+ readonly __tsonic_iface_System_Collections_IEnumerator: never;
837
+ readonly __tsonic_iface_System_Collections_Immutable_ISecurePooledObjectUser: never;
838
+ readonly __tsonic_iface_System_IDisposable: never;
839
+
840
+ readonly Current: KeyValuePair_2<TKey, TValue>;
841
+ Dispose(): void;
842
+ MoveNext(): boolean;
843
+ Reset(): void;
844
+ }
845
+
846
+
847
+ export const ImmutableSortedDictionary_2_Enumerator: {
848
+ new<TKey extends unknown, TValue extends unknown>(): ImmutableSortedDictionary_2_Enumerator<TKey, TValue>;
849
+ };
850
+
957
851
 
852
+ export type ImmutableSortedDictionary_2_Enumerator<TKey extends unknown, TValue extends unknown> = ImmutableSortedDictionary_2_Enumerator$instance<TKey, TValue>;
958
853
 
959
- export interface ImmutableSortedDictionary_2_Builder$instance<TKey, TValue> {
854
+ export interface ImmutableSortedDictionary_2_Builder$instance<TKey extends unknown, TValue extends unknown> {
960
855
  readonly __tsonic_type_System_Collections_Immutable_ImmutableSortedDictionary_2_Builder: never;
961
856
 
962
857
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -982,7 +877,7 @@ export interface ImmutableSortedDictionary_2_Builder$instance<TKey, TValue> {
982
877
  ContainsKey(key: TKey): boolean;
983
878
  ContainsValue(value: TValue): boolean;
984
879
  GetEnumerator(): ImmutableSortedDictionary_2_Enumerator<TKey, TValue>;
985
- GetValueOrDefault(key: TKey): TValue | undefined;
880
+ GetValueOrDefault(key: TKey): TValue | null;
986
881
  GetValueOrDefault(key: TKey, defaultValue: TValue): TValue;
987
882
  Remove(key: TKey): boolean;
988
883
  Remove(item: KeyValuePair_2<TKey, TValue>): boolean;
@@ -998,21 +893,9 @@ export const ImmutableSortedDictionary_2_Builder: {
998
893
  };
999
894
 
1000
895
 
1001
- export interface __ImmutableSortedDictionary_2_Builder$views<TKey, TValue> {
1002
- As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<KeyValuePair_2<TKey, TValue>>;
1003
- As_IDictionary_2(): System_Collections_Generic_Internal.IDictionary_2$instance<TKey, TValue>;
1004
- As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<KeyValuePair_2<TKey, TValue>>;
1005
- As_IReadOnlyCollection_1(): System_Collections_Generic_Internal.IReadOnlyCollection_1$instance<KeyValuePair_2<TKey, TValue>>;
1006
- As_IReadOnlyDictionary_2(): System_Collections_Generic_Internal.IReadOnlyDictionary_2$instance<TKey, TValue>;
1007
- As_ICollection(): System_Collections_Internal.ICollection$instance;
1008
- As_IDictionary(): System_Collections_Internal.IDictionary$instance;
1009
- As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
1010
- }
896
+ export type ImmutableSortedDictionary_2_Builder<TKey extends unknown, TValue extends unknown> = ImmutableSortedDictionary_2_Builder$instance<TKey, TValue>;
1011
897
 
1012
- export type ImmutableSortedDictionary_2_Builder<TKey, TValue> = ImmutableSortedDictionary_2_Builder$instance<TKey, TValue> & __ImmutableSortedDictionary_2_Builder$views<TKey, TValue>;
1013
-
1014
-
1015
- export interface ImmutableSortedSet_1$instance<T> {
898
+ export interface ImmutableSortedSet_1$instance<T extends unknown> {
1016
899
  readonly __tsonic_type_System_Collections_Immutable_ImmutableSortedSet_1: never;
1017
900
 
1018
901
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -1030,8 +913,8 @@ export interface ImmutableSortedSet_1$instance<T> {
1030
913
  readonly Count: int;
1031
914
  readonly IsEmpty: boolean;
1032
915
  readonly KeyComparer: IComparer_1<T>;
1033
- readonly Max: T | undefined;
1034
- readonly Min: T | undefined;
916
+ readonly Max: T | null;
917
+ readonly Min: T | null;
1035
918
  Add(value: T): ImmutableSortedSet_1<T>;
1036
919
  Clear(): ImmutableSortedSet_1<T>;
1037
920
  Contains(value: T): boolean;
@@ -1052,16 +935,16 @@ export interface ImmutableSortedSet_1$instance<T> {
1052
935
  ToBuilder(): ImmutableSortedSet_1_Builder<T>;
1053
936
  TryGetValue(equalValue: T, actualValue: T): boolean;
1054
937
  Union(other: IEnumerable_1<T>): ImmutableSortedSet_1<T>;
1055
- WithComparer(comparer: IComparer_1<T>): ImmutableSortedSet_1<T>;
938
+ WithComparer(comparer: IComparer_1<T> | null): ImmutableSortedSet_1<T>;
1056
939
  }
1057
940
 
1058
941
 
1059
942
  export const ImmutableSortedSet_1: {
1060
- readonly Empty: unknown;
943
+ readonly Empty: <T extends unknown>() => ImmutableSortedSet_1<T>;
1061
944
  };
1062
945
 
1063
946
 
1064
- export interface __ImmutableSortedSet_1$views<T> {
947
+ export interface __ImmutableSortedSet_1$views<T extends unknown> {
1065
948
  As_IImmutableSet_1(): IImmutableSet_1$instance<T>;
1066
949
  As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<T>;
1067
950
  As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<T>;
@@ -1074,10 +957,33 @@ export interface __ImmutableSortedSet_1$views<T> {
1074
957
  As_IList(): System_Collections_Internal.IList$instance;
1075
958
  }
1076
959
 
1077
- export type ImmutableSortedSet_1<T> = ImmutableSortedSet_1$instance<T> & __ImmutableSortedSet_1$views<T> & { readonly [index: number]: T; };
960
+ export type ImmutableSortedSet_1<T extends unknown> = ImmutableSortedSet_1$instance<T> & __ImmutableSortedSet_1$views<T> & { readonly [index: number]: T; };
1078
961
 
1079
962
 
1080
- export interface ImmutableSortedSet_1_Builder$instance<T> {
963
+ export interface ImmutableSortedSet_1_Enumerator$instance<T extends unknown> extends IEnumerator_1<T> {
964
+ readonly __tsonic_type_System_Collections_Immutable_ImmutableSortedSet_1_Enumerator: never;
965
+
966
+ readonly __tsonic_iface_System_Collections_Generic_IEnumerator_1: never;
967
+ readonly __tsonic_iface_System_Collections_IEnumerator: never;
968
+ readonly __tsonic_iface_System_Collections_Immutable_ISecurePooledObjectUser: never;
969
+ readonly __tsonic_iface_System_Collections_Immutable_IStrongEnumerator_1: never;
970
+ readonly __tsonic_iface_System_IDisposable: never;
971
+
972
+ readonly Current: T;
973
+ Dispose(): void;
974
+ MoveNext(): boolean;
975
+ Reset(): void;
976
+ }
977
+
978
+
979
+ export const ImmutableSortedSet_1_Enumerator: {
980
+ new<T extends unknown>(): ImmutableSortedSet_1_Enumerator<T>;
981
+ };
982
+
983
+
984
+ export type ImmutableSortedSet_1_Enumerator<T extends unknown> = ImmutableSortedSet_1_Enumerator$instance<T>;
985
+
986
+ export interface ImmutableSortedSet_1_Builder$instance<T extends unknown> {
1081
987
  readonly __tsonic_type_System_Collections_Immutable_ImmutableSortedSet_1_Builder: never;
1082
988
 
1083
989
  readonly __tsonic_iface_System_Collections_Generic_ICollection_1: never;
@@ -1089,8 +995,8 @@ export interface ImmutableSortedSet_1_Builder$instance<T> {
1089
995
 
1090
996
  readonly Count: int;
1091
997
  KeyComparer: IComparer_1<T>;
1092
- readonly Max: T | undefined;
1093
- readonly Min: T | undefined;
998
+ readonly Max: T | null;
999
+ readonly Min: T | null;
1094
1000
  Add(item: T): boolean;
1095
1001
  Clear(): void;
1096
1002
  Contains(item: T): boolean;
@@ -1118,19 +1024,9 @@ export const ImmutableSortedSet_1_Builder: {
1118
1024
  };
1119
1025
 
1120
1026
 
1121
- export interface __ImmutableSortedSet_1_Builder$views<T> {
1122
- As_ICollection_1(): System_Collections_Generic_Internal.ICollection_1$instance<T>;
1123
- As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<T>;
1124
- As_IReadOnlyCollection_1(): System_Collections_Generic_Internal.IReadOnlyCollection_1$instance<T>;
1125
- As_ISet_1(): System_Collections_Generic_Internal.ISet_1$instance<T>;
1126
- As_ICollection(): System_Collections_Internal.ICollection$instance;
1127
- As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
1128
- }
1129
-
1130
- export type ImmutableSortedSet_1_Builder<T> = ImmutableSortedSet_1_Builder$instance<T> & __ImmutableSortedSet_1_Builder$views<T> & { readonly [index: number]: T; };
1027
+ export type ImmutableSortedSet_1_Builder<T extends unknown> = ImmutableSortedSet_1_Builder$instance<T> & { readonly [index: number]: T; };
1131
1028
 
1132
-
1133
- export interface ImmutableStack_1$instance<T> {
1029
+ export interface ImmutableStack_1$instance<T extends unknown> {
1134
1030
  readonly __tsonic_type_System_Collections_Immutable_ImmutableStack_1: never;
1135
1031
 
1136
1032
  readonly __tsonic_iface_System_Collections_Generic_IEnumerable_1: never;
@@ -1149,212 +1045,228 @@ export interface ImmutableStack_1$instance<T> {
1149
1045
 
1150
1046
 
1151
1047
  export const ImmutableStack_1: {
1152
- readonly Empty: unknown;
1048
+ readonly Empty: <T extends unknown>() => ImmutableStack_1<T>;
1153
1049
  };
1154
1050
 
1155
1051
 
1156
- export interface __ImmutableStack_1$views<T> {
1052
+ export interface __ImmutableStack_1$views<T extends unknown> {
1157
1053
  As_IImmutableStack_1(): IImmutableStack_1$instance<T>;
1158
1054
  As_IEnumerable_1(): System_Collections_Generic_Internal.IEnumerable_1$instance<T>;
1159
1055
  As_IEnumerable(): System_Collections_Internal.IEnumerable$instance;
1160
1056
  }
1161
1057
 
1162
- export type ImmutableStack_1<T> = ImmutableStack_1$instance<T> & __ImmutableStack_1$views<T>;
1058
+ export type ImmutableStack_1<T extends unknown> = ImmutableStack_1$instance<T> & __ImmutableStack_1$views<T>;
1059
+
1060
+
1061
+ export interface ImmutableStack_1_Enumerator$instance<T extends unknown> {
1062
+ readonly __tsonic_type_System_Collections_Immutable_ImmutableStack_1_Enumerator: never;
1063
+
1064
+ readonly Current: T;
1065
+ MoveNext(): boolean;
1066
+ }
1067
+
1068
+
1069
+ export const ImmutableStack_1_Enumerator: {
1070
+ new<T extends unknown>(): ImmutableStack_1_Enumerator<T>;
1071
+ };
1072
+
1163
1073
 
1074
+ export type ImmutableStack_1_Enumerator<T extends unknown> = ImmutableStack_1_Enumerator$instance<T>;
1164
1075
 
1165
1076
  export abstract class ImmutableArray$instance {
1166
- static BinarySearch<T>(array: ImmutableArray_1<T>, index: int, length: int, value: T, comparer: IComparer_1<T>): int;
1167
- static BinarySearch<T>(array: ImmutableArray_1<T>, index: int, length: int, value: T): int;
1168
- static BinarySearch<T>(array: ImmutableArray_1<T>, value: T, comparer: IComparer_1<T>): int;
1169
- static BinarySearch<T>(array: ImmutableArray_1<T>, value: T): int;
1170
- static Create<T>(): ImmutableArray_1<T>;
1171
- static Create<T>(items: ImmutableArray_1<T>, start: int, length: int): ImmutableArray_1<T>;
1172
- static Create<T>(items: ReadOnlySpan_1<T>): ImmutableArray_1<T>;
1173
- static Create<T>(items: Span_1<T>): ImmutableArray_1<T>;
1174
- static Create<T>(item1: T, item2: T, item3: T, item4: T): ImmutableArray_1<T>;
1175
- static Create<T>(item1: T, item2: T, item3: T): ImmutableArray_1<T>;
1176
- static Create<T>(item1: T, item2: T): ImmutableArray_1<T>;
1177
- static Create<T>(item: T): ImmutableArray_1<T>;
1178
- static Create<T>(items: T[], start: int, length: int): ImmutableArray_1<T>;
1179
- static Create<T>(...items: T[]): ImmutableArray_1<T>;
1180
- static CreateBuilder<T>(): ImmutableArray_1_Builder<T>;
1181
- static CreateBuilder<T>(initialCapacity: int): ImmutableArray_1_Builder<T>;
1182
- static CreateRange<T>(items: IEnumerable_1<T>): ImmutableArray_1<T>;
1183
- static CreateRange<TSource, TResult>(items: ImmutableArray_1<TSource>, selector: Func_2<TSource, TResult>): ImmutableArray_1<TResult>;
1184
- static CreateRange<TSource, TArg, TResult>(items: ImmutableArray_1<TSource>, selector: Func_3<TSource, TArg, TResult>, arg: TArg): ImmutableArray_1<TResult>;
1185
- static CreateRange<TSource, TResult>(items: ImmutableArray_1<TSource>, start: int, length: int, selector: Func_2<TSource, TResult>): ImmutableArray_1<TResult>;
1186
- static CreateRange<TSource, TArg, TResult>(items: ImmutableArray_1<TSource>, start: int, length: int, selector: Func_3<TSource, TArg, TResult>, arg: TArg): ImmutableArray_1<TResult>;
1187
- static ToImmutableArray<TSource>(builder: ImmutableArray_1_Builder<TSource>): ImmutableArray_1<TSource>;
1188
- static ToImmutableArray<TSource>(items: IEnumerable_1<TSource>): ImmutableArray_1<TSource>;
1189
- static ToImmutableArray<T>(items: ReadOnlySpan_1<T>): ImmutableArray_1<T>;
1190
- static ToImmutableArray<T>(items: Span_1<T>): ImmutableArray_1<T>;
1077
+ static BinarySearch<T extends unknown>(array: ImmutableArray_1<T>, index: int, length: int, value: T, comparer: IComparer_1<T> | null): int;
1078
+ static BinarySearch<T extends unknown>(array: ImmutableArray_1<T>, index: int, length: int, value: T): int;
1079
+ static BinarySearch<T extends unknown>(array: ImmutableArray_1<T>, value: T, comparer: IComparer_1<T> | null): int;
1080
+ static BinarySearch<T extends unknown>(array: ImmutableArray_1<T>, value: T): int;
1081
+ static Create<T extends unknown>(): ImmutableArray_1<T>;
1082
+ static Create<T extends unknown>(items: ImmutableArray_1<T>, start: int, length: int): ImmutableArray_1<T>;
1083
+ static Create<T extends unknown>(items: ReadOnlySpan_1<T>): ImmutableArray_1<T>;
1084
+ static Create<T extends unknown>(items: Span_1<T>): ImmutableArray_1<T>;
1085
+ static Create<T extends unknown>(item1: T, item2: T, item3: T, item4: T): ImmutableArray_1<T>;
1086
+ static Create<T extends unknown>(item1: T, item2: T, item3: T): ImmutableArray_1<T>;
1087
+ static Create<T extends unknown>(item1: T, item2: T): ImmutableArray_1<T>;
1088
+ static Create<T extends unknown>(item: T): ImmutableArray_1<T>;
1089
+ static Create<T extends unknown>(items: T[], start: int, length: int): ImmutableArray_1<T>;
1090
+ static Create<T extends unknown>(...items: T[]): ImmutableArray_1<T>;
1091
+ static Create<T extends unknown>(items: T[] | null): ImmutableArray_1<T>;
1092
+ static CreateBuilder<T extends unknown>(): ImmutableArray_1_Builder<T>;
1093
+ static CreateBuilder<T extends unknown>(initialCapacity: int): ImmutableArray_1_Builder<T>;
1094
+ static CreateRange<T extends unknown>(items: IEnumerable_1<T>): ImmutableArray_1<T>;
1095
+ static CreateRange<TSource extends unknown, TResult extends unknown>(items: ImmutableArray_1<TSource>, selector: Func_2<TSource, TResult>): ImmutableArray_1<TResult>;
1096
+ static CreateRange<TSource extends unknown, TArg extends unknown, TResult extends unknown>(items: ImmutableArray_1<TSource>, selector: Func_3<TSource, TArg, TResult>, arg: TArg): ImmutableArray_1<TResult>;
1097
+ static CreateRange<TSource extends unknown, TResult extends unknown>(items: ImmutableArray_1<TSource>, start: int, length: int, selector: Func_2<TSource, TResult>): ImmutableArray_1<TResult>;
1098
+ static CreateRange<TSource extends unknown, TArg extends unknown, TResult extends unknown>(items: ImmutableArray_1<TSource>, start: int, length: int, selector: Func_3<TSource, TArg, TResult>, arg: TArg): ImmutableArray_1<TResult>;
1099
+ static ToImmutableArray<TSource extends unknown>(builder: ImmutableArray_1_Builder<TSource>): ImmutableArray_1<TSource>;
1100
+ static ToImmutableArray<TSource extends unknown>(items: IEnumerable_1<TSource>): ImmutableArray_1<TSource>;
1101
+ static ToImmutableArray<T extends unknown>(items: ReadOnlySpan_1<T>): ImmutableArray_1<T>;
1102
+ static ToImmutableArray<T extends unknown>(items: Span_1<T>): ImmutableArray_1<T>;
1191
1103
  }
1192
1104
 
1193
1105
 
1194
1106
  export type ImmutableArray = ImmutableArray$instance;
1195
1107
 
1196
1108
  export abstract class ImmutableDictionary$instance {
1197
- static Contains<TKey, TValue>(map: IImmutableDictionary_2<TKey, TValue>, key: TKey, value: TValue): boolean;
1198
- static Create<TKey, TValue>(): ImmutableDictionary_2<TKey, TValue>;
1199
- static Create<TKey, TValue>(keyComparer: IEqualityComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>): ImmutableDictionary_2<TKey, TValue>;
1200
- static Create<TKey, TValue>(keyComparer: IEqualityComparer_1<TKey>): ImmutableDictionary_2<TKey, TValue>;
1201
- static CreateBuilder<TKey, TValue>(): ImmutableDictionary_2_Builder<TKey, TValue>;
1202
- static CreateBuilder<TKey, TValue>(keyComparer: IEqualityComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>): ImmutableDictionary_2_Builder<TKey, TValue>;
1203
- static CreateBuilder<TKey, TValue>(keyComparer: IEqualityComparer_1<TKey>): ImmutableDictionary_2_Builder<TKey, TValue>;
1204
- static CreateRange<TKey, TValue>(items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1205
- static CreateRange<TKey, TValue>(keyComparer: IEqualityComparer_1<TKey>, items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1206
- static CreateRange<TKey, TValue>(keyComparer: IEqualityComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>, items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1207
- static CreateRangeWithOverwrite<TKey, TValue>(keyComparer: IEqualityComparer_1<TKey>, items: ReadOnlySpan_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1208
- static CreateRangeWithOverwrite<TKey, TValue>(items: ReadOnlySpan_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1209
- static GetValueOrDefault<TKey, TValue>(dictionary: IImmutableDictionary_2<TKey, TValue>, key: TKey, defaultValue: TValue): TValue;
1210
- static GetValueOrDefault<TKey, TValue>(dictionary: IImmutableDictionary_2<TKey, TValue>, key: TKey): TValue | undefined;
1211
- static ToImmutableDictionary<TKey, TValue>(builder: ImmutableDictionary_2_Builder<TKey, TValue>): ImmutableDictionary_2<TKey, TValue>;
1212
- static ToImmutableDictionary<TSource, TKey, TValue>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>, keyComparer: IEqualityComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>): ImmutableDictionary_2<TKey, TValue>;
1213
- static ToImmutableDictionary<TSource, TKey, TValue>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>, keyComparer: IEqualityComparer_1<TKey>): ImmutableDictionary_2<TKey, TValue>;
1214
- static ToImmutableDictionary<TSource, TKey, TValue>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>): ImmutableDictionary_2<TKey, TValue>;
1215
- static ToImmutableDictionary<TSource, TKey>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, keyComparer: IEqualityComparer_1<TKey>): ImmutableDictionary_2<TKey, TSource>;
1216
- static ToImmutableDictionary<TSource, TKey>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>): ImmutableDictionary_2<TKey, TSource>;
1217
- static ToImmutableDictionary<TKey, TValue>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>, keyComparer: IEqualityComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>): ImmutableDictionary_2<TKey, TValue>;
1218
- static ToImmutableDictionary<TKey, TValue>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>, keyComparer: IEqualityComparer_1<TKey>): ImmutableDictionary_2<TKey, TValue>;
1219
- static ToImmutableDictionary<TKey, TValue>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1109
+ static Contains<TKey extends unknown, TValue extends unknown>(map: IImmutableDictionary_2<TKey, TValue>, key: TKey, value: TValue): boolean;
1110
+ static Create<TKey extends unknown, TValue extends unknown>(): ImmutableDictionary_2<TKey, TValue>;
1111
+ static Create<TKey extends unknown, TValue extends unknown>(keyComparer: IEqualityComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null): ImmutableDictionary_2<TKey, TValue>;
1112
+ static Create<TKey extends unknown, TValue extends unknown>(keyComparer: IEqualityComparer_1<TKey> | null): ImmutableDictionary_2<TKey, TValue>;
1113
+ static CreateBuilder<TKey extends unknown, TValue extends unknown>(): ImmutableDictionary_2_Builder<TKey, TValue>;
1114
+ static CreateBuilder<TKey extends unknown, TValue extends unknown>(keyComparer: IEqualityComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null): ImmutableDictionary_2_Builder<TKey, TValue>;
1115
+ static CreateBuilder<TKey extends unknown, TValue extends unknown>(keyComparer: IEqualityComparer_1<TKey> | null): ImmutableDictionary_2_Builder<TKey, TValue>;
1116
+ static CreateRange<TKey extends unknown, TValue extends unknown>(items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1117
+ static CreateRange<TKey extends unknown, TValue extends unknown>(keyComparer: IEqualityComparer_1<TKey> | null, items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1118
+ static CreateRange<TKey extends unknown, TValue extends unknown>(keyComparer: IEqualityComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null, items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1119
+ static CreateRangeWithOverwrite<TKey extends unknown, TValue extends unknown>(keyComparer: IEqualityComparer_1<TKey> | null, items: ReadOnlySpan_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1120
+ static CreateRangeWithOverwrite<TKey extends unknown, TValue extends unknown>(items: ReadOnlySpan_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1121
+ static GetValueOrDefault<TKey extends unknown, TValue extends unknown>(dictionary: IImmutableDictionary_2<TKey, TValue>, key: TKey, defaultValue: TValue): TValue;
1122
+ static GetValueOrDefault<TKey extends unknown, TValue extends unknown>(dictionary: IImmutableDictionary_2<TKey, TValue>, key: TKey): TValue | null;
1123
+ static ToImmutableDictionary<TKey extends unknown, TValue extends unknown>(builder: ImmutableDictionary_2_Builder<TKey, TValue>): ImmutableDictionary_2<TKey, TValue>;
1124
+ static ToImmutableDictionary<TSource extends unknown, TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>, keyComparer: IEqualityComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null): ImmutableDictionary_2<TKey, TValue>;
1125
+ static ToImmutableDictionary<TSource extends unknown, TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>, keyComparer: IEqualityComparer_1<TKey> | null): ImmutableDictionary_2<TKey, TValue>;
1126
+ static ToImmutableDictionary<TSource extends unknown, TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>): ImmutableDictionary_2<TKey, TValue>;
1127
+ static ToImmutableDictionary<TSource extends unknown, TKey extends unknown>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, keyComparer: IEqualityComparer_1<TKey> | null): ImmutableDictionary_2<TKey, TSource>;
1128
+ static ToImmutableDictionary<TSource extends unknown, TKey extends unknown>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>): ImmutableDictionary_2<TKey, TSource>;
1129
+ static ToImmutableDictionary<TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>, keyComparer: IEqualityComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null): ImmutableDictionary_2<TKey, TValue>;
1130
+ static ToImmutableDictionary<TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>, keyComparer: IEqualityComparer_1<TKey> | null): ImmutableDictionary_2<TKey, TValue>;
1131
+ static ToImmutableDictionary<TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableDictionary_2<TKey, TValue>;
1220
1132
  }
1221
1133
 
1222
1134
 
1223
1135
  export type ImmutableDictionary = ImmutableDictionary$instance;
1224
1136
 
1225
1137
  export abstract class ImmutableHashSet$instance {
1226
- static Create<T>(): ImmutableHashSet_1<T>;
1227
- static Create<T>(equalityComparer: IEqualityComparer_1<T>, items: ReadOnlySpan_1<T>): ImmutableHashSet_1<T>;
1228
- static Create<T>(equalityComparer: IEqualityComparer_1<T>, item: T): ImmutableHashSet_1<T>;
1229
- static Create<T>(equalityComparer: IEqualityComparer_1<T>, ...items: T[]): ImmutableHashSet_1<T>;
1230
- static Create<T>(equalityComparer: IEqualityComparer_1<T>): ImmutableHashSet_1<T>;
1231
- static Create<T>(items: ReadOnlySpan_1<T>): ImmutableHashSet_1<T>;
1232
- static Create<T>(item: T): ImmutableHashSet_1<T>;
1233
- static Create<T>(...items: T[]): ImmutableHashSet_1<T>;
1234
- static CreateBuilder<T>(): ImmutableHashSet_1_Builder<T>;
1235
- static CreateBuilder<T>(equalityComparer: IEqualityComparer_1<T>): ImmutableHashSet_1_Builder<T>;
1236
- static CreateRange<T>(items: IEnumerable_1<T>): ImmutableHashSet_1<T>;
1237
- static CreateRange<T>(equalityComparer: IEqualityComparer_1<T>, items: IEnumerable_1<T>): ImmutableHashSet_1<T>;
1238
- static ToImmutableHashSet<TSource>(builder: ImmutableHashSet_1_Builder<TSource>): ImmutableHashSet_1<TSource>;
1239
- static ToImmutableHashSet<TSource>(source: IEnumerable_1<TSource>, equalityComparer: IEqualityComparer_1<TSource>): ImmutableHashSet_1<TSource>;
1240
- static ToImmutableHashSet<TSource>(source: IEnumerable_1<TSource>): ImmutableHashSet_1<TSource>;
1138
+ static Create<T extends unknown>(): ImmutableHashSet_1<T>;
1139
+ static Create<T extends unknown>(equalityComparer: IEqualityComparer_1<T> | null, items: ReadOnlySpan_1<T>): ImmutableHashSet_1<T>;
1140
+ static Create<T extends unknown>(equalityComparer: IEqualityComparer_1<T> | null, item: T): ImmutableHashSet_1<T>;
1141
+ static Create<T extends unknown>(equalityComparer: IEqualityComparer_1<T> | null, ...items: T[]): ImmutableHashSet_1<T>;
1142
+ static Create<T extends unknown>(equalityComparer: IEqualityComparer_1<T> | null): ImmutableHashSet_1<T>;
1143
+ static Create<T extends unknown>(items: ReadOnlySpan_1<T>): ImmutableHashSet_1<T>;
1144
+ static Create<T extends unknown>(item: T): ImmutableHashSet_1<T>;
1145
+ static Create<T extends unknown>(...items: T[]): ImmutableHashSet_1<T>;
1146
+ static CreateBuilder<T extends unknown>(): ImmutableHashSet_1_Builder<T>;
1147
+ static CreateBuilder<T extends unknown>(equalityComparer: IEqualityComparer_1<T> | null): ImmutableHashSet_1_Builder<T>;
1148
+ static CreateRange<T extends unknown>(items: IEnumerable_1<T>): ImmutableHashSet_1<T>;
1149
+ static CreateRange<T extends unknown>(equalityComparer: IEqualityComparer_1<T> | null, items: IEnumerable_1<T>): ImmutableHashSet_1<T>;
1150
+ static ToImmutableHashSet<TSource extends unknown>(builder: ImmutableHashSet_1_Builder<TSource>): ImmutableHashSet_1<TSource>;
1151
+ static ToImmutableHashSet<TSource extends unknown>(source: IEnumerable_1<TSource>, equalityComparer: IEqualityComparer_1<TSource> | null): ImmutableHashSet_1<TSource>;
1152
+ static ToImmutableHashSet<TSource extends unknown>(source: IEnumerable_1<TSource>): ImmutableHashSet_1<TSource>;
1241
1153
  }
1242
1154
 
1243
1155
 
1244
1156
  export type ImmutableHashSet = ImmutableHashSet$instance;
1245
1157
 
1246
1158
  export abstract class ImmutableInterlocked$instance {
1247
- static AddOrUpdate<TKey, TValue>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, addValueFactory: Func_2<TKey, TValue>, updateValueFactory: Func_3<TKey, TValue, TValue>): TValue;
1248
- static AddOrUpdate<TKey, TValue>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, addValue: TValue, updateValueFactory: Func_3<TKey, TValue, TValue>): TValue;
1249
- static Enqueue<T>(location: ImmutableQueue_1<T>, value: T): void;
1250
- static GetOrAdd<TKey, TValue>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, valueFactory: Func_2<TKey, TValue>): TValue;
1251
- static GetOrAdd<TKey, TValue, TArg>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, valueFactory: Func_3<TKey, TArg, TValue>, factoryArgument: TArg): TValue;
1252
- static GetOrAdd<TKey, TValue>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, value: TValue): TValue;
1253
- static InterlockedCompareExchange<T>(location: ImmutableArray_1<T>, value: ImmutableArray_1<T>, comparand: ImmutableArray_1<T>): ImmutableArray_1<T>;
1254
- static InterlockedExchange<T>(location: ImmutableArray_1<T>, value: ImmutableArray_1<T>): ImmutableArray_1<T>;
1255
- static InterlockedInitialize<T>(location: ImmutableArray_1<T>, value: ImmutableArray_1<T>): boolean;
1256
- static Push<T>(location: ImmutableStack_1<T>, value: T): void;
1257
- static TryAdd<TKey, TValue>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, value: TValue): boolean;
1258
- static TryDequeue<T>(location: ImmutableQueue_1<T>, value: T): boolean;
1259
- static TryPop<T>(location: ImmutableStack_1<T>, value: T): boolean;
1260
- static TryRemove<TKey, TValue>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, value: TValue): boolean;
1261
- static TryUpdate<TKey, TValue>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, newValue: TValue, comparisonValue: TValue): boolean;
1262
- static Update<T>(location: ImmutableArray_1<T>, transformer: Func_2<ImmutableArray_1<T>, ImmutableArray_1<T>>): boolean;
1263
- static Update<T, TArg>(location: ImmutableArray_1<T>, transformer: Func_3<ImmutableArray_1<T>, TArg, ImmutableArray_1<T>>, transformerArgument: TArg): boolean;
1264
- static Update<T>(location: T, transformer: Func_2<T, T>): boolean;
1265
- static Update<T, TArg>(location: T, transformer: Func_3<T, TArg, T>, transformerArgument: TArg): boolean;
1159
+ static AddOrUpdate<TKey extends unknown, TValue extends unknown>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, addValueFactory: Func_2<TKey, TValue>, updateValueFactory: Func_3<TKey, TValue, TValue>): TValue;
1160
+ static AddOrUpdate<TKey extends unknown, TValue extends unknown>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, addValue: TValue, updateValueFactory: Func_3<TKey, TValue, TValue>): TValue;
1161
+ static Enqueue<T extends unknown>(location: ImmutableQueue_1<T>, value: T): void;
1162
+ static GetOrAdd<TKey extends unknown, TValue extends unknown>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, valueFactory: Func_2<TKey, TValue>): TValue;
1163
+ static GetOrAdd<TKey extends unknown, TValue extends unknown, TArg extends unknown>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, valueFactory: Func_3<TKey, TArg, TValue>, factoryArgument: TArg): TValue;
1164
+ static GetOrAdd<TKey extends unknown, TValue extends unknown>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, value: TValue): TValue;
1165
+ static InterlockedCompareExchange<T extends unknown>(location: ImmutableArray_1<T>, value: ImmutableArray_1<T>, comparand: ImmutableArray_1<T>): ImmutableArray_1<T>;
1166
+ static InterlockedExchange<T extends unknown>(location: ImmutableArray_1<T>, value: ImmutableArray_1<T>): ImmutableArray_1<T>;
1167
+ static InterlockedInitialize<T extends unknown>(location: ImmutableArray_1<T>, value: ImmutableArray_1<T>): boolean;
1168
+ static Push<T extends unknown>(location: ImmutableStack_1<T>, value: T): void;
1169
+ static TryAdd<TKey extends unknown, TValue extends unknown>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, value: TValue): boolean;
1170
+ static TryDequeue<T extends unknown>(location: ImmutableQueue_1<T>, value: T): boolean;
1171
+ static TryPop<T extends unknown>(location: ImmutableStack_1<T>, value: T): boolean;
1172
+ static TryRemove<TKey extends unknown, TValue extends unknown>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, value: TValue): boolean;
1173
+ static TryUpdate<TKey extends unknown, TValue extends unknown>(location: ImmutableDictionary_2<TKey, TValue>, key: TKey, newValue: TValue, comparisonValue: TValue): boolean;
1174
+ static Update<T extends unknown>(location: ImmutableArray_1<T>, transformer: Func_2<ImmutableArray_1<T>, ImmutableArray_1<T>>): boolean;
1175
+ static Update<T extends unknown, TArg extends unknown>(location: ImmutableArray_1<T>, transformer: Func_3<ImmutableArray_1<T>, TArg, ImmutableArray_1<T>>, transformerArgument: TArg): boolean;
1176
+ static Update<T extends (object | null)>(location: T, transformer: Func_2<T, T>): boolean;
1177
+ static Update<T extends (object | null), TArg extends unknown>(location: T, transformer: Func_3<T, TArg, T>, transformerArgument: TArg): boolean;
1266
1178
  }
1267
1179
 
1268
1180
 
1269
1181
  export type ImmutableInterlocked = ImmutableInterlocked$instance;
1270
1182
 
1271
1183
  export abstract class ImmutableList$instance {
1272
- static Create<T>(): ImmutableList_1<T>;
1273
- static Create<T>(items: ReadOnlySpan_1<T>): ImmutableList_1<T>;
1274
- static Create<T>(item: T): ImmutableList_1<T>;
1275
- static Create<T>(...items: T[]): ImmutableList_1<T>;
1276
- static CreateBuilder<T>(): ImmutableList_1_Builder<T>;
1277
- static CreateRange<T>(items: IEnumerable_1<T>): ImmutableList_1<T>;
1278
- static IndexOf<T>(list: IImmutableList_1<T>, item: T, equalityComparer: IEqualityComparer_1<T>): int;
1279
- static IndexOf<T>(list: IImmutableList_1<T>, item: T, startIndex: int, count: int): int;
1280
- static IndexOf<T>(list: IImmutableList_1<T>, item: T, startIndex: int): int;
1281
- static IndexOf<T>(list: IImmutableList_1<T>, item: T): int;
1282
- static LastIndexOf<T>(list: IImmutableList_1<T>, item: T, equalityComparer: IEqualityComparer_1<T>): int;
1283
- static LastIndexOf<T>(list: IImmutableList_1<T>, item: T, startIndex: int, count: int): int;
1284
- static LastIndexOf<T>(list: IImmutableList_1<T>, item: T, startIndex: int): int;
1285
- static LastIndexOf<T>(list: IImmutableList_1<T>, item: T): int;
1286
- static Remove<T>(list: IImmutableList_1<T>, value: T): IImmutableList_1<T>;
1287
- static RemoveRange<T>(list: IImmutableList_1<T>, items: IEnumerable_1<T>): IImmutableList_1<T>;
1288
- static Replace<T>(list: IImmutableList_1<T>, oldValue: T, newValue: T): IImmutableList_1<T>;
1289
- static ToImmutableList<TSource>(builder: ImmutableList_1_Builder<TSource>): ImmutableList_1<TSource>;
1290
- static ToImmutableList<TSource>(source: IEnumerable_1<TSource>): ImmutableList_1<TSource>;
1184
+ static Create<T extends unknown>(): ImmutableList_1<T>;
1185
+ static Create<T extends unknown>(items: ReadOnlySpan_1<T>): ImmutableList_1<T>;
1186
+ static Create<T extends unknown>(item: T): ImmutableList_1<T>;
1187
+ static Create<T extends unknown>(...items: T[]): ImmutableList_1<T>;
1188
+ static CreateBuilder<T extends unknown>(): ImmutableList_1_Builder<T>;
1189
+ static CreateRange<T extends unknown>(items: IEnumerable_1<T>): ImmutableList_1<T>;
1190
+ static IndexOf<T extends unknown>(list: IImmutableList_1<T>, item: T, equalityComparer: IEqualityComparer_1<T> | null): int;
1191
+ static IndexOf<T extends unknown>(list: IImmutableList_1<T>, item: T, startIndex: int, count: int): int;
1192
+ static IndexOf<T extends unknown>(list: IImmutableList_1<T>, item: T, startIndex: int): int;
1193
+ static IndexOf<T extends unknown>(list: IImmutableList_1<T>, item: T): int;
1194
+ static LastIndexOf<T extends unknown>(list: IImmutableList_1<T>, item: T, equalityComparer: IEqualityComparer_1<T> | null): int;
1195
+ static LastIndexOf<T extends unknown>(list: IImmutableList_1<T>, item: T, startIndex: int, count: int): int;
1196
+ static LastIndexOf<T extends unknown>(list: IImmutableList_1<T>, item: T, startIndex: int): int;
1197
+ static LastIndexOf<T extends unknown>(list: IImmutableList_1<T>, item: T): int;
1198
+ static Remove<T extends unknown>(list: IImmutableList_1<T>, value: T): IImmutableList_1<T>;
1199
+ static RemoveRange<T extends unknown>(list: IImmutableList_1<T>, items: IEnumerable_1<T>): IImmutableList_1<T>;
1200
+ static Replace<T extends unknown>(list: IImmutableList_1<T>, oldValue: T, newValue: T): IImmutableList_1<T>;
1201
+ static ToImmutableList<TSource extends unknown>(builder: ImmutableList_1_Builder<TSource>): ImmutableList_1<TSource>;
1202
+ static ToImmutableList<TSource extends unknown>(source: IEnumerable_1<TSource>): ImmutableList_1<TSource>;
1291
1203
  }
1292
1204
 
1293
1205
 
1294
1206
  export type ImmutableList = ImmutableList$instance;
1295
1207
 
1296
1208
  export abstract class ImmutableQueue$instance {
1297
- static Create<T>(): ImmutableQueue_1<T>;
1298
- static Create<T>(items: ReadOnlySpan_1<T>): ImmutableQueue_1<T>;
1299
- static Create<T>(item: T): ImmutableQueue_1<T>;
1300
- static Create<T>(...items: T[]): ImmutableQueue_1<T>;
1301
- static CreateRange<T>(items: IEnumerable_1<T>): ImmutableQueue_1<T>;
1302
- static Dequeue<T>(queue: IImmutableQueue_1<T>, value: T): IImmutableQueue_1<T>;
1209
+ static Create<T extends unknown>(): ImmutableQueue_1<T>;
1210
+ static Create<T extends unknown>(items: ReadOnlySpan_1<T>): ImmutableQueue_1<T>;
1211
+ static Create<T extends unknown>(item: T): ImmutableQueue_1<T>;
1212
+ static Create<T extends unknown>(...items: T[]): ImmutableQueue_1<T>;
1213
+ static CreateRange<T extends unknown>(items: IEnumerable_1<T>): ImmutableQueue_1<T>;
1214
+ static Dequeue<T extends unknown>(queue: IImmutableQueue_1<T>, value: T): IImmutableQueue_1<T>;
1303
1215
  }
1304
1216
 
1305
1217
 
1306
1218
  export type ImmutableQueue = ImmutableQueue$instance;
1307
1219
 
1308
1220
  export abstract class ImmutableSortedDictionary$instance {
1309
- static Create<TKey, TValue>(): ImmutableSortedDictionary_2<TKey, TValue>;
1310
- static Create<TKey, TValue>(keyComparer: IComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>): ImmutableSortedDictionary_2<TKey, TValue>;
1311
- static Create<TKey, TValue>(keyComparer: IComparer_1<TKey>): ImmutableSortedDictionary_2<TKey, TValue>;
1312
- static CreateBuilder<TKey, TValue>(): ImmutableSortedDictionary_2_Builder<TKey, TValue>;
1313
- static CreateBuilder<TKey, TValue>(keyComparer: IComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>): ImmutableSortedDictionary_2_Builder<TKey, TValue>;
1314
- static CreateBuilder<TKey, TValue>(keyComparer: IComparer_1<TKey>): ImmutableSortedDictionary_2_Builder<TKey, TValue>;
1315
- static CreateRange<TKey, TValue>(keyComparer: IComparer_1<TKey>, items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableSortedDictionary_2<TKey, TValue>;
1316
- static CreateRange<TKey, TValue>(keyComparer: IComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>, items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableSortedDictionary_2<TKey, TValue>;
1317
- static CreateRange<TKey, TValue>(items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableSortedDictionary_2<TKey, TValue>;
1318
- static ToImmutableSortedDictionary<TKey, TValue>(builder: ImmutableSortedDictionary_2_Builder<TKey, TValue>): ImmutableSortedDictionary_2<TKey, TValue>;
1319
- static ToImmutableSortedDictionary<TSource, TKey, TValue>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>, keyComparer: IComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>): ImmutableSortedDictionary_2<TKey, TValue>;
1320
- static ToImmutableSortedDictionary<TSource, TKey, TValue>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>, keyComparer: IComparer_1<TKey>): ImmutableSortedDictionary_2<TKey, TValue>;
1321
- static ToImmutableSortedDictionary<TSource, TKey, TValue>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>): ImmutableSortedDictionary_2<TKey, TValue>;
1322
- static ToImmutableSortedDictionary<TKey, TValue>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>, keyComparer: IComparer_1<TKey>, valueComparer: IEqualityComparer_1<TValue>): ImmutableSortedDictionary_2<TKey, TValue>;
1323
- static ToImmutableSortedDictionary<TKey, TValue>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>, keyComparer: IComparer_1<TKey>): ImmutableSortedDictionary_2<TKey, TValue>;
1324
- static ToImmutableSortedDictionary<TKey, TValue>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableSortedDictionary_2<TKey, TValue>;
1221
+ static Create<TKey extends unknown, TValue extends unknown>(): ImmutableSortedDictionary_2<TKey, TValue>;
1222
+ static Create<TKey extends unknown, TValue extends unknown>(keyComparer: IComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null): ImmutableSortedDictionary_2<TKey, TValue>;
1223
+ static Create<TKey extends unknown, TValue extends unknown>(keyComparer: IComparer_1<TKey> | null): ImmutableSortedDictionary_2<TKey, TValue>;
1224
+ static CreateBuilder<TKey extends unknown, TValue extends unknown>(): ImmutableSortedDictionary_2_Builder<TKey, TValue>;
1225
+ static CreateBuilder<TKey extends unknown, TValue extends unknown>(keyComparer: IComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null): ImmutableSortedDictionary_2_Builder<TKey, TValue>;
1226
+ static CreateBuilder<TKey extends unknown, TValue extends unknown>(keyComparer: IComparer_1<TKey> | null): ImmutableSortedDictionary_2_Builder<TKey, TValue>;
1227
+ static CreateRange<TKey extends unknown, TValue extends unknown>(keyComparer: IComparer_1<TKey> | null, items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableSortedDictionary_2<TKey, TValue>;
1228
+ static CreateRange<TKey extends unknown, TValue extends unknown>(keyComparer: IComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null, items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableSortedDictionary_2<TKey, TValue>;
1229
+ static CreateRange<TKey extends unknown, TValue extends unknown>(items: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableSortedDictionary_2<TKey, TValue>;
1230
+ static ToImmutableSortedDictionary<TKey extends unknown, TValue extends unknown>(builder: ImmutableSortedDictionary_2_Builder<TKey, TValue>): ImmutableSortedDictionary_2<TKey, TValue>;
1231
+ static ToImmutableSortedDictionary<TSource extends unknown, TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>, keyComparer: IComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null): ImmutableSortedDictionary_2<TKey, TValue>;
1232
+ static ToImmutableSortedDictionary<TSource extends unknown, TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>, keyComparer: IComparer_1<TKey> | null): ImmutableSortedDictionary_2<TKey, TValue>;
1233
+ static ToImmutableSortedDictionary<TSource extends unknown, TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<TSource>, keySelector: Func_2<TSource, TKey>, elementSelector: Func_2<TSource, TValue>): ImmutableSortedDictionary_2<TKey, TValue>;
1234
+ static ToImmutableSortedDictionary<TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>, keyComparer: IComparer_1<TKey> | null, valueComparer: IEqualityComparer_1<TValue> | null): ImmutableSortedDictionary_2<TKey, TValue>;
1235
+ static ToImmutableSortedDictionary<TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>, keyComparer: IComparer_1<TKey> | null): ImmutableSortedDictionary_2<TKey, TValue>;
1236
+ static ToImmutableSortedDictionary<TKey extends unknown, TValue extends unknown>(source: IEnumerable_1<KeyValuePair_2<TKey, TValue>>): ImmutableSortedDictionary_2<TKey, TValue>;
1325
1237
  }
1326
1238
 
1327
1239
 
1328
1240
  export type ImmutableSortedDictionary = ImmutableSortedDictionary$instance;
1329
1241
 
1330
1242
  export abstract class ImmutableSortedSet$instance {
1331
- static Create<T>(): ImmutableSortedSet_1<T>;
1332
- static Create<T>(comparer: IComparer_1<T>, items: ReadOnlySpan_1<T>): ImmutableSortedSet_1<T>;
1333
- static Create<T>(comparer: IComparer_1<T>, item: T): ImmutableSortedSet_1<T>;
1334
- static Create<T>(comparer: IComparer_1<T>, ...items: T[]): ImmutableSortedSet_1<T>;
1335
- static Create<T>(comparer: IComparer_1<T>): ImmutableSortedSet_1<T>;
1336
- static Create<T>(items: ReadOnlySpan_1<T>): ImmutableSortedSet_1<T>;
1337
- static Create<T>(item: T): ImmutableSortedSet_1<T>;
1338
- static Create<T>(...items: T[]): ImmutableSortedSet_1<T>;
1339
- static CreateBuilder<T>(): ImmutableSortedSet_1_Builder<T>;
1340
- static CreateBuilder<T>(comparer: IComparer_1<T>): ImmutableSortedSet_1_Builder<T>;
1341
- static CreateRange<T>(comparer: IComparer_1<T>, items: IEnumerable_1<T>): ImmutableSortedSet_1<T>;
1342
- static CreateRange<T>(items: IEnumerable_1<T>): ImmutableSortedSet_1<T>;
1343
- static ToImmutableSortedSet<TSource>(builder: ImmutableSortedSet_1_Builder<TSource>): ImmutableSortedSet_1<TSource>;
1344
- static ToImmutableSortedSet<TSource>(source: IEnumerable_1<TSource>, comparer: IComparer_1<TSource>): ImmutableSortedSet_1<TSource>;
1345
- static ToImmutableSortedSet<TSource>(source: IEnumerable_1<TSource>): ImmutableSortedSet_1<TSource>;
1243
+ static Create<T extends unknown>(): ImmutableSortedSet_1<T>;
1244
+ static Create<T extends unknown>(comparer: IComparer_1<T> | null, items: ReadOnlySpan_1<T>): ImmutableSortedSet_1<T>;
1245
+ static Create<T extends unknown>(comparer: IComparer_1<T> | null, item: T): ImmutableSortedSet_1<T>;
1246
+ static Create<T extends unknown>(comparer: IComparer_1<T> | null, ...items: T[]): ImmutableSortedSet_1<T>;
1247
+ static Create<T extends unknown>(comparer: IComparer_1<T> | null): ImmutableSortedSet_1<T>;
1248
+ static Create<T extends unknown>(items: ReadOnlySpan_1<T>): ImmutableSortedSet_1<T>;
1249
+ static Create<T extends unknown>(item: T): ImmutableSortedSet_1<T>;
1250
+ static Create<T extends unknown>(...items: T[]): ImmutableSortedSet_1<T>;
1251
+ static CreateBuilder<T extends unknown>(): ImmutableSortedSet_1_Builder<T>;
1252
+ static CreateBuilder<T extends unknown>(comparer: IComparer_1<T> | null): ImmutableSortedSet_1_Builder<T>;
1253
+ static CreateRange<T extends unknown>(comparer: IComparer_1<T> | null, items: IEnumerable_1<T>): ImmutableSortedSet_1<T>;
1254
+ static CreateRange<T extends unknown>(items: IEnumerable_1<T>): ImmutableSortedSet_1<T>;
1255
+ static ToImmutableSortedSet<TSource extends unknown>(builder: ImmutableSortedSet_1_Builder<TSource>): ImmutableSortedSet_1<TSource>;
1256
+ static ToImmutableSortedSet<TSource extends unknown>(source: IEnumerable_1<TSource>, comparer: IComparer_1<TSource> | null): ImmutableSortedSet_1<TSource>;
1257
+ static ToImmutableSortedSet<TSource extends unknown>(source: IEnumerable_1<TSource>): ImmutableSortedSet_1<TSource>;
1346
1258
  }
1347
1259
 
1348
1260
 
1349
1261
  export type ImmutableSortedSet = ImmutableSortedSet$instance;
1350
1262
 
1351
1263
  export abstract class ImmutableStack$instance {
1352
- static Create<T>(): ImmutableStack_1<T>;
1353
- static Create<T>(items: ReadOnlySpan_1<T>): ImmutableStack_1<T>;
1354
- static Create<T>(item: T): ImmutableStack_1<T>;
1355
- static Create<T>(...items: T[]): ImmutableStack_1<T>;
1356
- static CreateRange<T>(items: IEnumerable_1<T>): ImmutableStack_1<T>;
1357
- static Pop<T>(stack: IImmutableStack_1<T>, value: T): IImmutableStack_1<T>;
1264
+ static Create<T extends unknown>(): ImmutableStack_1<T>;
1265
+ static Create<T extends unknown>(items: ReadOnlySpan_1<T>): ImmutableStack_1<T>;
1266
+ static Create<T extends unknown>(item: T): ImmutableStack_1<T>;
1267
+ static Create<T extends unknown>(...items: T[]): ImmutableStack_1<T>;
1268
+ static CreateRange<T extends unknown>(items: IEnumerable_1<T>): ImmutableStack_1<T>;
1269
+ static Pop<T extends unknown>(stack: IImmutableStack_1<T>, value: T): IImmutableStack_1<T>;
1358
1270
  }
1359
1271
 
1360
1272