@tsonic/dotnet 0.7.8 → 0.7.9

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 (263) hide show
  1. package/Internal/internal/index.d.ts +2 -2
  2. package/Internal.js +9 -0
  3. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +2 -2
  4. package/Microsoft.CSharp.RuntimeBinder.js +9 -0
  5. package/Microsoft.VisualBasic/internal/index.d.ts +4 -4
  6. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +4 -4
  7. package/Microsoft.VisualBasic.CompilerServices.js +9 -0
  8. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +2 -2
  9. package/Microsoft.VisualBasic.FileIO.js +9 -0
  10. package/Microsoft.VisualBasic.js +9 -0
  11. package/Microsoft.Win32/internal/index.d.ts +2 -2
  12. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +2 -2
  13. package/Microsoft.Win32.SafeHandles.js +9 -0
  14. package/Microsoft.Win32.js +9 -0
  15. package/System/internal/index.d.ts +4 -4
  16. package/System.Buffers/internal/index.d.ts +4 -4
  17. package/System.Buffers.Binary/internal/index.d.ts +4 -4
  18. package/System.Buffers.Binary.js +9 -0
  19. package/System.Buffers.Text/internal/index.d.ts +4 -4
  20. package/System.Buffers.Text.js +9 -0
  21. package/System.Buffers.js +9 -0
  22. package/System.CodeDom.Compiler/internal/index.d.ts +2 -2
  23. package/System.CodeDom.Compiler.js +9 -0
  24. package/System.Collections/internal/index.d.ts +4 -4
  25. package/System.Collections.Concurrent/internal/index.d.ts +4 -4
  26. package/System.Collections.Concurrent.js +9 -0
  27. package/System.Collections.Frozen/internal/index.d.ts +4 -4
  28. package/System.Collections.Frozen.js +9 -0
  29. package/System.Collections.Generic/internal/index.d.ts +4 -4
  30. package/System.Collections.Generic.js +9 -0
  31. package/System.Collections.Immutable/internal/index.d.ts +4 -4
  32. package/System.Collections.Immutable.js +9 -0
  33. package/System.Collections.ObjectModel/internal/index.d.ts +4 -4
  34. package/System.Collections.ObjectModel.js +9 -0
  35. package/System.Collections.Specialized/internal/index.d.ts +2 -2
  36. package/System.Collections.Specialized.js +9 -0
  37. package/System.Collections.js +9 -0
  38. package/System.ComponentModel/internal/index.d.ts +4 -4
  39. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +2 -2
  40. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +2 -2
  41. package/System.ComponentModel.DataAnnotations.Schema.js +9 -0
  42. package/System.ComponentModel.DataAnnotations.js +9 -0
  43. package/System.ComponentModel.Design/internal/index.d.ts +2 -2
  44. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +2 -2
  45. package/System.ComponentModel.Design.Serialization.js +9 -0
  46. package/System.ComponentModel.Design.js +9 -0
  47. package/System.ComponentModel.js +9 -0
  48. package/System.Configuration.Assemblies/internal/index.d.ts +2 -2
  49. package/System.Configuration.Assemblies.js +9 -0
  50. package/System.Data/internal/index.d.ts +2 -2
  51. package/System.Data.Common/internal/index.d.ts +4 -4
  52. package/System.Data.Common.js +9 -0
  53. package/System.Data.SqlTypes/internal/index.d.ts +2 -2
  54. package/System.Data.SqlTypes.js +9 -0
  55. package/System.Data.js +9 -0
  56. package/System.Diagnostics/internal/index.d.ts +4 -4
  57. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +2 -2
  58. package/System.Diagnostics.CodeAnalysis.js +9 -0
  59. package/System.Diagnostics.Contracts/internal/index.d.ts +4 -4
  60. package/System.Diagnostics.Contracts.js +9 -0
  61. package/System.Diagnostics.Metrics/internal/index.d.ts +4 -4
  62. package/System.Diagnostics.Metrics.js +9 -0
  63. package/System.Diagnostics.SymbolStore/internal/index.d.ts +2 -2
  64. package/System.Diagnostics.SymbolStore.js +9 -0
  65. package/System.Diagnostics.Tracing/internal/index.d.ts +4 -4
  66. package/System.Diagnostics.Tracing.js +9 -0
  67. package/System.Diagnostics.js +9 -0
  68. package/System.Drawing/internal/index.d.ts +2 -2
  69. package/System.Drawing.js +9 -0
  70. package/System.Dynamic/internal/index.d.ts +4 -4
  71. package/System.Dynamic.js +9 -0
  72. package/System.Formats.Asn1/internal/index.d.ts +4 -4
  73. package/System.Formats.Asn1.js +9 -0
  74. package/System.Formats.Tar/internal/index.d.ts +2 -2
  75. package/System.Formats.Tar.js +9 -0
  76. package/System.Globalization/internal/index.d.ts +4 -4
  77. package/System.Globalization.js +9 -0
  78. package/System.IO/internal/index.d.ts +4 -4
  79. package/System.IO.Compression/internal/index.d.ts +4 -4
  80. package/System.IO.Compression.js +9 -0
  81. package/System.IO.Enumeration/internal/index.d.ts +4 -4
  82. package/System.IO.Enumeration.js +9 -0
  83. package/System.IO.IsolatedStorage/internal/index.d.ts +2 -2
  84. package/System.IO.IsolatedStorage.js +9 -0
  85. package/System.IO.MemoryMappedFiles/internal/index.d.ts +2 -2
  86. package/System.IO.MemoryMappedFiles.js +9 -0
  87. package/System.IO.Pipelines/internal/index.d.ts +4 -4
  88. package/System.IO.Pipelines.js +9 -0
  89. package/System.IO.Pipes/internal/index.d.ts +2 -2
  90. package/System.IO.Pipes.js +9 -0
  91. package/System.IO.js +9 -0
  92. package/System.Linq/internal/index.d.ts +4 -4
  93. package/System.Linq.Expressions/internal/index.d.ts +4 -4
  94. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +2 -2
  95. package/System.Linq.Expressions.Interpreter.js +9 -0
  96. package/System.Linq.Expressions.js +9 -0
  97. package/System.Linq.js +9 -0
  98. package/System.Net/internal/index.d.ts +4 -4
  99. package/System.Net.Cache/internal/index.d.ts +2 -2
  100. package/System.Net.Cache.js +9 -0
  101. package/System.Net.Http/internal/index.d.ts +4 -4
  102. package/System.Net.Http.Headers/internal/index.d.ts +4 -4
  103. package/System.Net.Http.Headers.js +9 -0
  104. package/System.Net.Http.Json/internal/index.d.ts +2 -2
  105. package/System.Net.Http.Json.js +9 -0
  106. package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
  107. package/System.Net.Http.Metrics.js +9 -0
  108. package/System.Net.Http.js +9 -0
  109. package/System.Net.Mail/internal/index.d.ts +4 -4
  110. package/System.Net.Mail.js +9 -0
  111. package/System.Net.Mime/internal/index.d.ts +2 -2
  112. package/System.Net.Mime.js +9 -0
  113. package/System.Net.NetworkInformation/internal/index.d.ts +4 -4
  114. package/System.Net.NetworkInformation.js +9 -0
  115. package/System.Net.Quic/internal/index.d.ts +2 -2
  116. package/System.Net.Quic.js +9 -0
  117. package/System.Net.Security/internal/index.d.ts +4 -4
  118. package/System.Net.Security.js +9 -0
  119. package/System.Net.ServerSentEvents/internal/index.d.ts +2 -2
  120. package/System.Net.ServerSentEvents.js +9 -0
  121. package/System.Net.Sockets/internal/index.d.ts +4 -4
  122. package/System.Net.Sockets.js +9 -0
  123. package/System.Net.WebSockets/internal/index.d.ts +2 -2
  124. package/System.Net.WebSockets.js +9 -0
  125. package/System.Net.js +9 -0
  126. package/System.Numerics/internal/index.d.ts +4 -4
  127. package/System.Numerics.js +9 -0
  128. package/System.Reflection/internal/index.d.ts +4 -4
  129. package/System.Reflection.Emit/internal/index.d.ts +4 -4
  130. package/System.Reflection.Emit.js +9 -0
  131. package/System.Reflection.Metadata/internal/index.d.ts +4 -4
  132. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +4 -4
  133. package/System.Reflection.Metadata.Ecma335.js +9 -0
  134. package/System.Reflection.Metadata.js +9 -0
  135. package/System.Reflection.PortableExecutable/internal/index.d.ts +4 -4
  136. package/System.Reflection.PortableExecutable.js +9 -0
  137. package/System.Reflection.js +9 -0
  138. package/System.Resources/internal/index.d.ts +4 -4
  139. package/System.Resources.js +9 -0
  140. package/System.Runtime/internal/index.d.ts +2 -2
  141. package/System.Runtime.CompilerServices/internal/index.d.ts +4 -4
  142. package/System.Runtime.CompilerServices.js +9 -0
  143. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +2 -2
  144. package/System.Runtime.ConstrainedExecution.js +9 -0
  145. package/System.Runtime.ExceptionServices/internal/index.d.ts +2 -2
  146. package/System.Runtime.ExceptionServices.js +9 -0
  147. package/System.Runtime.InteropServices/internal/index.d.ts +4 -4
  148. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +4 -4
  149. package/System.Runtime.InteropServices.ComTypes.js +9 -0
  150. package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -4
  151. package/System.Runtime.InteropServices.Java.js +9 -0
  152. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +4 -4
  153. package/System.Runtime.InteropServices.JavaScript.js +9 -0
  154. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +4 -4
  155. package/System.Runtime.InteropServices.Marshalling.js +9 -0
  156. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +4 -4
  157. package/System.Runtime.InteropServices.ObjectiveC.js +9 -0
  158. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
  159. package/System.Runtime.InteropServices.Swift.js +9 -0
  160. package/System.Runtime.InteropServices.js +9 -0
  161. package/System.Runtime.Intrinsics/internal/index.d.ts +4 -4
  162. package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +4 -4
  163. package/System.Runtime.Intrinsics.Arm.js +9 -0
  164. package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +4 -4
  165. package/System.Runtime.Intrinsics.Wasm.js +9 -0
  166. package/System.Runtime.Intrinsics.X86/internal/index.d.ts +4 -4
  167. package/System.Runtime.Intrinsics.X86.js +9 -0
  168. package/System.Runtime.Intrinsics.js +9 -0
  169. package/System.Runtime.Loader/internal/index.d.ts +2 -2
  170. package/System.Runtime.Loader.js +9 -0
  171. package/System.Runtime.Remoting/internal/index.d.ts +2 -2
  172. package/System.Runtime.Remoting.js +9 -0
  173. package/System.Runtime.Serialization/internal/index.d.ts +4 -4
  174. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +4 -4
  175. package/System.Runtime.Serialization.DataContracts.js +9 -0
  176. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
  177. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +2 -2
  178. package/System.Runtime.Serialization.Formatters.Binary.js +9 -0
  179. package/System.Runtime.Serialization.Formatters.js +9 -0
  180. package/System.Runtime.Serialization.Json/internal/index.d.ts +2 -2
  181. package/System.Runtime.Serialization.Json.js +9 -0
  182. package/System.Runtime.Serialization.js +9 -0
  183. package/System.Runtime.Versioning/internal/index.d.ts +2 -2
  184. package/System.Runtime.Versioning.js +9 -0
  185. package/System.Runtime.js +9 -0
  186. package/System.Security/internal/index.d.ts +4 -4
  187. package/System.Security.AccessControl/internal/index.d.ts +4 -4
  188. package/System.Security.AccessControl.js +9 -0
  189. package/System.Security.Authentication/internal/index.d.ts +2 -2
  190. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +2 -2
  191. package/System.Security.Authentication.ExtendedProtection.js +9 -0
  192. package/System.Security.Authentication.js +9 -0
  193. package/System.Security.Claims/internal/index.d.ts +2 -2
  194. package/System.Security.Claims.js +9 -0
  195. package/System.Security.Cryptography/internal/index.d.ts +4 -4
  196. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +4 -4
  197. package/System.Security.Cryptography.X509Certificates.js +9 -0
  198. package/System.Security.Cryptography.js +9 -0
  199. package/System.Security.Permissions/internal/index.d.ts +2 -2
  200. package/System.Security.Permissions.js +9 -0
  201. package/System.Security.Policy/internal/index.d.ts +2 -2
  202. package/System.Security.Policy.js +9 -0
  203. package/System.Security.Principal/internal/index.d.ts +2 -2
  204. package/System.Security.Principal.js +9 -0
  205. package/System.Security.js +9 -0
  206. package/System.Text/internal/index.d.ts +4 -4
  207. package/System.Text.Encodings.Web/internal/index.d.ts +4 -4
  208. package/System.Text.Encodings.Web.js +9 -0
  209. package/System.Text.Json/internal/index.d.ts +4 -4
  210. package/System.Text.Json.Nodes/internal/index.d.ts +4 -4
  211. package/System.Text.Json.Nodes.js +9 -0
  212. package/System.Text.Json.Schema/internal/index.d.ts +2 -2
  213. package/System.Text.Json.Schema.js +9 -0
  214. package/System.Text.Json.Serialization/internal/index.d.ts +4 -4
  215. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +2 -2
  216. package/System.Text.Json.Serialization.Metadata.js +9 -0
  217. package/System.Text.Json.Serialization.js +9 -0
  218. package/System.Text.Json.js +9 -0
  219. package/System.Text.RegularExpressions/internal/index.d.ts +4 -4
  220. package/System.Text.RegularExpressions.js +9 -0
  221. package/System.Text.Unicode/internal/index.d.ts +4 -4
  222. package/System.Text.Unicode.js +9 -0
  223. package/System.Text.js +9 -0
  224. package/System.Threading/internal/index.d.ts +4 -4
  225. package/System.Threading.Channels/internal/index.d.ts +4 -4
  226. package/System.Threading.Channels.js +9 -0
  227. package/System.Threading.Tasks/internal/index.d.ts +2 -2
  228. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +4 -4
  229. package/System.Threading.Tasks.Dataflow.js +9 -0
  230. package/System.Threading.Tasks.Sources/internal/index.d.ts +2 -2
  231. package/System.Threading.Tasks.Sources.js +9 -0
  232. package/System.Threading.Tasks.js +9 -0
  233. package/System.Threading.js +9 -0
  234. package/System.Timers/internal/index.d.ts +2 -2
  235. package/System.Timers.js +9 -0
  236. package/System.Transactions/internal/index.d.ts +2 -2
  237. package/System.Transactions.js +9 -0
  238. package/System.Web/internal/index.d.ts +2 -2
  239. package/System.Web.js +9 -0
  240. package/System.Windows.Input/internal/index.d.ts +2 -2
  241. package/System.Windows.Input.js +9 -0
  242. package/System.Windows.Markup/internal/index.d.ts +2 -2
  243. package/System.Windows.Markup.js +9 -0
  244. package/System.Xml/internal/index.d.ts +4 -4
  245. package/System.Xml.Linq/internal/index.d.ts +2 -2
  246. package/System.Xml.Linq.js +9 -0
  247. package/System.Xml.Resolvers/internal/index.d.ts +2 -2
  248. package/System.Xml.Resolvers.js +9 -0
  249. package/System.Xml.Schema/internal/index.d.ts +2 -2
  250. package/System.Xml.Schema.js +9 -0
  251. package/System.Xml.Serialization/internal/index.d.ts +2 -2
  252. package/System.Xml.Serialization.js +9 -0
  253. package/System.Xml.XPath/internal/index.d.ts +2 -2
  254. package/System.Xml.XPath.js +9 -0
  255. package/System.Xml.Xsl/internal/index.d.ts +2 -2
  256. package/System.Xml.Xsl.Runtime/internal/index.d.ts +4 -4
  257. package/System.Xml.Xsl.Runtime.js +9 -0
  258. package/System.Xml.Xsl.js +9 -0
  259. package/System.Xml.js +9 -0
  260. package/System.js +9 -0
  261. package/__build/scripts/generate.sh +81 -0
  262. package/__internal/extensions/index.d.ts +3 -3
  263. package/package.json +2 -10
@@ -2,8 +2,8 @@
2
2
  // Namespace: System.Timers
3
3
  // Assembly: System.ComponentModel.TypeConverter
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
8
  // Import types from other namespaces
9
9
  import * as System_ComponentModel_Internal from "../../System.ComponentModel/internal/index.js";
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Timers
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Timers in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -2,8 +2,8 @@
2
2
  // Namespace: System.Transactions
3
3
  // Assembly: System.Transactions.Local
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
8
  // Import types from other namespaces
9
9
  import type { IDictionary } from "../../System.Collections/internal/index.js";
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Transactions
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Transactions in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -2,8 +2,8 @@
2
2
  // Namespace: System.Web
3
3
  // Assembly: System.Web.HttpUtility
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
8
  // Import types from other namespaces
9
9
  import type { NameValueCollection } from "../../System.Collections.Specialized/internal/index.js";
package/System.Web.js ADDED
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Web
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Web in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -2,8 +2,8 @@
2
2
  // Namespace: System.Windows.Input
3
3
  // Assembly: System.ObjectModel
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
8
  // Import types from other namespaces
9
9
  import * as System_Internal from "../../System/internal/index.js";
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Windows.Input
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Windows.Input in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -2,8 +2,8 @@
2
2
  // Namespace: System.Windows.Markup
3
3
  // Assembly: System.ObjectModel
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
8
  // Import types from other namespaces
9
9
  import * as System_Internal from "../../System/internal/index.js";
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Windows.Markup
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Windows.Markup in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -2,11 +2,11 @@
2
2
  // Namespace: System.Xml
3
3
  // Assembly: System.Data.Common, System.Private.DataContractSerialization, System.Private.Xml
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
- // Import support types from @tsonic/types
9
- import type { ptr } from "@tsonic/types";
8
+ // Import support types from @tsonic/core
9
+ import type { ptr } from "@tsonic/core/types.js";
10
10
 
11
11
  // Import types from other namespaces
12
12
  import type { IDictionary_2 } from "../../System.Collections.Generic/internal/index.js";
@@ -2,8 +2,8 @@
2
2
  // Namespace: System.Xml.Linq
3
3
  // Assembly: System.Private.Xml.Linq
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
8
  // Import types from other namespaces
9
9
  import * as System_Collections_Generic_Internal from "../../System.Collections.Generic/internal/index.js";
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Xml.Linq
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Xml.Linq in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -2,8 +2,8 @@
2
2
  // Namespace: System.Xml.Resolvers
3
3
  // Assembly: System.Private.Xml
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
8
  // Import types from other namespaces
9
9
  import type { IEnumerable_1, IEqualityComparer_1 } from "../../System.Collections.Generic/internal/index.js";
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Xml.Resolvers
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Xml.Resolvers in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -2,8 +2,8 @@
2
2
  // Namespace: System.Xml.Schema
3
3
  // Assembly: System.Private.Xml, System.Private.Xml.Linq
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
8
  // Import types from other namespaces
9
9
  import * as System_Collections_Internal from "../../System.Collections/internal/index.js";
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Xml.Schema
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Xml.Schema in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -2,8 +2,8 @@
2
2
  // Namespace: System.Xml.Serialization
3
3
  // Assembly: System.Private.Xml
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
8
  // Import types from other namespaces
9
9
  import * as System_Collections_Generic_Internal from "../../System.Collections.Generic/internal/index.js";
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Xml.Serialization
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Xml.Serialization in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -2,8 +2,8 @@
2
2
  // Namespace: System.Xml.XPath
3
3
  // Assembly: System.Private.Xml, System.Private.Xml.Linq, System.Xml.XPath.XDocument
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
8
  // Import types from other namespaces
9
9
  import type { IDictionary_2, IEnumerable_1 } from "../../System.Collections.Generic/internal/index.js";
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Xml.XPath
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Xml.XPath in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -2,8 +2,8 @@
2
2
  // Namespace: System.Xml.Xsl
3
3
  // Assembly: System.Private.Xml
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
8
  // Import types from other namespaces
9
9
  import type { IDictionary_2 } from "../../System.Collections.Generic/internal/index.js";
@@ -2,11 +2,11 @@
2
2
  // Namespace: System.Xml.Xsl.Runtime
3
3
  // Assembly: System.Private.Xml
4
4
 
5
- // Branded primitive types are sourced from @tsonic/types
6
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
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';
7
7
 
8
- // Import support types from @tsonic/types
9
- import type { ptr } from "@tsonic/types";
8
+ // Import support types from @tsonic/core
9
+ import type { ptr } from "@tsonic/core/types.js";
10
10
 
11
11
  // Import types from other namespaces
12
12
  import * as System_Collections_Generic_Internal from "../../System.Collections.Generic/internal/index.js";
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Xml.Xsl.Runtime
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Xml.Xsl.Runtime in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Xml.Xsl
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Xml.Xsl in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
package/System.Xml.js ADDED
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System.Xml
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System.Xml in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
package/System.js ADDED
@@ -0,0 +1,9 @@
1
+ // Generated by tsbindgen - Architecture
2
+ // Namespace: System
3
+ // Module Stub - Do Not Execute
4
+
5
+ throw new Error(
6
+ 'Cannot import CLR namespace System in JavaScript runtime. ' +
7
+ 'This module provides TypeScript type definitions only. ' +
8
+ 'Actual implementation requires .NET runtime via Tsonic compiler.'
9
+ );
@@ -0,0 +1,81 @@
1
+ #!/bin/bash
2
+ # Generate TypeScript declarations for .NET BCL
3
+ #
4
+ # This script regenerates all TypeScript type declarations from .NET assemblies
5
+ # using tsbindgen.
6
+ #
7
+ # Prerequisites:
8
+ # - .NET 10 SDK installed
9
+ # - tsbindgen repository cloned at ../tsbindgen (sibling directory)
10
+ #
11
+ # Usage:
12
+ # ./__build/scripts/generate.sh
13
+
14
+ set -e
15
+
16
+ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
17
+ PROJECT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
18
+ TSBINDGEN_DIR="$PROJECT_DIR/../tsbindgen"
19
+
20
+ # .NET runtime path
21
+ DOTNET_VERSION="${DOTNET_VERSION:-10.0.0-rc.1.25451.107}"
22
+ DOTNET_HOME="${DOTNET_HOME:-$HOME/dotnet}"
23
+ DOTNET_RUNTIME_PATH="$DOTNET_HOME/shared/Microsoft.NETCore.App/$DOTNET_VERSION"
24
+
25
+ echo "================================================================"
26
+ echo "Generating .NET BCL TypeScript Declarations"
27
+ echo "================================================================"
28
+ echo ""
29
+ echo "Configuration:"
30
+ echo " .NET Runtime: $DOTNET_RUNTIME_PATH"
31
+ echo " tsbindgen: $TSBINDGEN_DIR"
32
+ echo " Output: $PROJECT_DIR"
33
+ echo ""
34
+
35
+ # Verify prerequisites
36
+ if [ ! -d "$DOTNET_RUNTIME_PATH" ]; then
37
+ echo "ERROR: .NET runtime not found at $DOTNET_RUNTIME_PATH"
38
+ echo "Set DOTNET_HOME or DOTNET_VERSION environment variables"
39
+ exit 1
40
+ fi
41
+
42
+ if [ ! -d "$TSBINDGEN_DIR" ]; then
43
+ echo "ERROR: tsbindgen not found at $TSBINDGEN_DIR"
44
+ echo "Clone it: git clone https://github.com/tsoniclang/tsbindgen ../tsbindgen"
45
+ exit 1
46
+ fi
47
+
48
+ # Clean output directory (keep config files)
49
+ echo "[1/3] Cleaning output directory..."
50
+ cd "$PROJECT_DIR"
51
+
52
+ # Remove all namespace directories (but keep config files, __build, node_modules, .git)
53
+ find . -maxdepth 1 -type d \
54
+ ! -name '.' \
55
+ ! -name '.git' \
56
+ ! -name '.tests' \
57
+ ! -name 'node_modules' \
58
+ ! -name '__build' \
59
+ -exec rm -rf {} \; 2>/dev/null || true
60
+
61
+ # Also remove internal/ and Internal/ at root level
62
+ rm -rf internal Internal 2>/dev/null || true
63
+
64
+ echo " Done"
65
+
66
+ # Build tsbindgen
67
+ echo "[2/3] Building tsbindgen..."
68
+ cd "$TSBINDGEN_DIR"
69
+ dotnet build src/tsbindgen/tsbindgen.csproj -c Release --verbosity quiet
70
+ echo " Done"
71
+
72
+ # Generate types with JavaScript-style naming (lowerFirst for PascalCase members)
73
+ echo "[3/3] Generating TypeScript declarations..."
74
+ dotnet run --project src/tsbindgen/tsbindgen.csproj --no-build -c Release -- \
75
+ generate -d "$DOTNET_RUNTIME_PATH" -o "$PROJECT_DIR" \
76
+ --naming js
77
+
78
+ echo ""
79
+ echo "================================================================"
80
+ echo "Generation Complete"
81
+ echo "================================================================"
@@ -53,14 +53,14 @@ import * as System_Xml_Linq from "../../System.Xml.Linq/internal/index.js";
53
53
  import * as System_Xml_Schema from "../../System.Xml.Schema/internal/index.js";
54
54
  import * as System_Xml_XPath from "../../System.Xml.XPath/internal/index.js";
55
55
 
56
- // Import branded primitive types
57
- import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
56
+ // Import primitive type aliases
57
+ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
58
58
 
59
59
  // Import CLR type aliases for generic type arguments
60
60
  import * as System_Internal from "../../System/internal/index.js";
61
61
 
62
62
  // Import unsafe type markers
63
- import type { ptr } from '@tsonic/types';
63
+ import type { ptr } from '@tsonic/core/types.js';
64
64
 
65
65
  export interface __Ext_String {
66
66
  AsSpan(): System.ReadOnlySpan_1<System_Internal.Char>;
package/package.json CHANGED
@@ -1,13 +1,8 @@
1
1
  {
2
2
  "name": "@tsonic/dotnet",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "TypeScript type definitions for .NET 10 BCL (Base Class Library)",
5
5
  "type": "module",
6
- "files": [
7
- "**/*.d.ts",
8
- "**/*.json",
9
- "!node_modules"
10
- ],
11
6
  "keywords": [
12
7
  "dotnet",
13
8
  "typescript",
@@ -22,10 +17,7 @@
22
17
  "type": "git",
23
18
  "url": "https://github.com/tsoniclang/dotnet.git"
24
19
  },
25
- "dependencies": {
26
- "@tsonic/types": "^0.3.1"
27
- },
28
20
  "peerDependencies": {
29
- "@tsonic/types": "^0.3.1"
21
+ "@tsonic/core": "^0.1.1"
30
22
  }
31
23
  }