@tsonic/dotnet 0.7.8 → 0.8.0
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.
- package/Internal/internal/index.d.ts +2 -2
- package/Internal.js +9 -0
- package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +2 -2
- package/Microsoft.CSharp.RuntimeBinder.js +9 -0
- package/Microsoft.VisualBasic/internal/index.d.ts +4 -4
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +4 -4
- package/Microsoft.VisualBasic.CompilerServices.js +9 -0
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +2 -2
- package/Microsoft.VisualBasic.FileIO.js +9 -0
- package/Microsoft.VisualBasic.js +9 -0
- package/Microsoft.Win32/internal/index.d.ts +2 -2
- package/Microsoft.Win32.SafeHandles/internal/index.d.ts +2 -2
- package/Microsoft.Win32.SafeHandles.js +9 -0
- package/Microsoft.Win32.js +9 -0
- package/System/internal/index.d.ts +4 -4
- package/System.Buffers/internal/index.d.ts +4 -4
- package/System.Buffers.Binary/internal/index.d.ts +4 -4
- package/System.Buffers.Binary.js +9 -0
- package/System.Buffers.Text/internal/index.d.ts +4 -4
- package/System.Buffers.Text.js +9 -0
- package/System.Buffers.js +9 -0
- package/System.CodeDom.Compiler/internal/index.d.ts +2 -2
- package/System.CodeDom.Compiler.js +9 -0
- package/System.Collections/internal/index.d.ts +4 -4
- package/System.Collections.Concurrent/internal/index.d.ts +4 -4
- package/System.Collections.Concurrent.js +9 -0
- package/System.Collections.Frozen/internal/index.d.ts +4 -4
- package/System.Collections.Frozen.js +9 -0
- package/System.Collections.Generic/internal/index.d.ts +4 -4
- package/System.Collections.Generic.js +9 -0
- package/System.Collections.Immutable/internal/index.d.ts +4 -4
- package/System.Collections.Immutable.js +9 -0
- package/System.Collections.ObjectModel/internal/index.d.ts +4 -4
- package/System.Collections.ObjectModel.js +9 -0
- package/System.Collections.Specialized/internal/index.d.ts +2 -2
- package/System.Collections.Specialized.js +9 -0
- package/System.Collections.js +9 -0
- package/System.ComponentModel/internal/index.d.ts +4 -4
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +2 -2
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +2 -2
- package/System.ComponentModel.DataAnnotations.Schema.js +9 -0
- package/System.ComponentModel.DataAnnotations.js +9 -0
- package/System.ComponentModel.Design/internal/index.d.ts +2 -2
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +2 -2
- package/System.ComponentModel.Design.Serialization.js +9 -0
- package/System.ComponentModel.Design.js +9 -0
- package/System.ComponentModel.js +9 -0
- package/System.Configuration.Assemblies/internal/index.d.ts +2 -2
- package/System.Configuration.Assemblies.js +9 -0
- package/System.Data/internal/index.d.ts +2 -2
- package/System.Data.Common/internal/index.d.ts +4 -4
- package/System.Data.Common.js +9 -0
- package/System.Data.SqlTypes/internal/index.d.ts +2 -2
- package/System.Data.SqlTypes.js +9 -0
- package/System.Data.js +9 -0
- package/System.Diagnostics/internal/index.d.ts +4 -4
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +2 -2
- package/System.Diagnostics.CodeAnalysis.js +9 -0
- package/System.Diagnostics.Contracts/internal/index.d.ts +4 -4
- package/System.Diagnostics.Contracts.js +9 -0
- package/System.Diagnostics.Metrics/internal/index.d.ts +4 -4
- package/System.Diagnostics.Metrics.js +9 -0
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +2 -2
- package/System.Diagnostics.SymbolStore.js +9 -0
- package/System.Diagnostics.Tracing/internal/index.d.ts +4 -4
- package/System.Diagnostics.Tracing.js +9 -0
- package/System.Diagnostics.js +9 -0
- package/System.Drawing/internal/index.d.ts +2 -2
- package/System.Drawing.js +9 -0
- package/System.Dynamic/internal/index.d.ts +4 -4
- package/System.Dynamic.js +9 -0
- package/System.Formats.Asn1/internal/index.d.ts +4 -4
- package/System.Formats.Asn1.js +9 -0
- package/System.Formats.Tar/internal/index.d.ts +2 -2
- package/System.Formats.Tar.js +9 -0
- package/System.Globalization/internal/index.d.ts +4 -4
- package/System.Globalization.js +9 -0
- package/System.IO/internal/index.d.ts +4 -4
- package/System.IO.Compression/internal/index.d.ts +4 -4
- package/System.IO.Compression.js +9 -0
- package/System.IO.Enumeration/internal/index.d.ts +4 -4
- package/System.IO.Enumeration.js +9 -0
- package/System.IO.IsolatedStorage/internal/index.d.ts +2 -2
- package/System.IO.IsolatedStorage.js +9 -0
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +2 -2
- package/System.IO.MemoryMappedFiles.js +9 -0
- package/System.IO.Pipelines/internal/index.d.ts +4 -4
- package/System.IO.Pipelines.js +9 -0
- package/System.IO.Pipes/internal/index.d.ts +2 -2
- package/System.IO.Pipes.js +9 -0
- package/System.IO.js +9 -0
- package/System.Linq/internal/index.d.ts +4 -4
- package/System.Linq.Expressions/internal/index.d.ts +4 -4
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +2 -2
- package/System.Linq.Expressions.Interpreter.js +9 -0
- package/System.Linq.Expressions.js +9 -0
- package/System.Linq.js +9 -0
- package/System.Net/internal/index.d.ts +4 -4
- package/System.Net.Cache/internal/index.d.ts +2 -2
- package/System.Net.Cache.js +9 -0
- package/System.Net.Http/internal/index.d.ts +4 -4
- package/System.Net.Http.Headers/internal/index.d.ts +4 -4
- package/System.Net.Http.Headers.js +9 -0
- package/System.Net.Http.Json/internal/index.d.ts +2 -2
- package/System.Net.Http.Json.js +9 -0
- package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
- package/System.Net.Http.Metrics.js +9 -0
- package/System.Net.Http.js +9 -0
- package/System.Net.Mail/internal/index.d.ts +4 -4
- package/System.Net.Mail.js +9 -0
- package/System.Net.Mime/internal/index.d.ts +2 -2
- package/System.Net.Mime.js +9 -0
- package/System.Net.NetworkInformation/internal/index.d.ts +4 -4
- package/System.Net.NetworkInformation.js +9 -0
- package/System.Net.Quic/internal/index.d.ts +2 -2
- package/System.Net.Quic.js +9 -0
- package/System.Net.Security/internal/index.d.ts +4 -4
- package/System.Net.Security.js +9 -0
- package/System.Net.ServerSentEvents/internal/index.d.ts +2 -2
- package/System.Net.ServerSentEvents.js +9 -0
- package/System.Net.Sockets/internal/index.d.ts +4 -4
- package/System.Net.Sockets.js +9 -0
- package/System.Net.WebSockets/internal/index.d.ts +2 -2
- package/System.Net.WebSockets.js +9 -0
- package/System.Net.js +9 -0
- package/System.Numerics/internal/index.d.ts +4 -4
- package/System.Numerics.js +9 -0
- package/System.Reflection/internal/index.d.ts +4 -4
- package/System.Reflection.Emit/internal/index.d.ts +4 -4
- package/System.Reflection.Emit.js +9 -0
- package/System.Reflection.Metadata/internal/index.d.ts +4 -4
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +4 -4
- package/System.Reflection.Metadata.Ecma335.js +9 -0
- package/System.Reflection.Metadata.js +9 -0
- package/System.Reflection.PortableExecutable/internal/index.d.ts +4 -4
- package/System.Reflection.PortableExecutable.js +9 -0
- package/System.Reflection.js +9 -0
- package/System.Resources/internal/index.d.ts +4 -4
- package/System.Resources.js +9 -0
- package/System.Runtime/internal/index.d.ts +2 -2
- package/System.Runtime.CompilerServices/internal/index.d.ts +4 -4
- package/System.Runtime.CompilerServices.js +9 -0
- package/System.Runtime.ConstrainedExecution/internal/index.d.ts +2 -2
- package/System.Runtime.ConstrainedExecution.js +9 -0
- package/System.Runtime.ExceptionServices/internal/index.d.ts +2 -2
- package/System.Runtime.ExceptionServices.js +9 -0
- package/System.Runtime.InteropServices/internal/index.d.ts +4 -4
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +4 -4
- package/System.Runtime.InteropServices.ComTypes.js +9 -0
- package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -4
- package/System.Runtime.InteropServices.Java.js +9 -0
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +4 -4
- package/System.Runtime.InteropServices.JavaScript.js +9 -0
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +4 -4
- package/System.Runtime.InteropServices.Marshalling.js +9 -0
- package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +4 -4
- package/System.Runtime.InteropServices.ObjectiveC.js +9 -0
- package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
- package/System.Runtime.InteropServices.Swift.js +9 -0
- package/System.Runtime.InteropServices.js +9 -0
- package/System.Runtime.Intrinsics/internal/index.d.ts +4 -4
- package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +4 -4
- package/System.Runtime.Intrinsics.Arm.js +9 -0
- package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +4 -4
- package/System.Runtime.Intrinsics.Wasm.js +9 -0
- package/System.Runtime.Intrinsics.X86/internal/index.d.ts +4 -4
- package/System.Runtime.Intrinsics.X86.js +9 -0
- package/System.Runtime.Intrinsics.js +9 -0
- package/System.Runtime.Loader/internal/index.d.ts +2 -2
- package/System.Runtime.Loader.js +9 -0
- package/System.Runtime.Remoting/internal/index.d.ts +2 -2
- package/System.Runtime.Remoting.js +9 -0
- package/System.Runtime.Serialization/internal/index.d.ts +4 -4
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +4 -4
- package/System.Runtime.Serialization.DataContracts.js +9 -0
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization.Formatters.Binary.js +9 -0
- package/System.Runtime.Serialization.Formatters.js +9 -0
- package/System.Runtime.Serialization.Json/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization.Json.js +9 -0
- package/System.Runtime.Serialization.js +9 -0
- package/System.Runtime.Versioning/internal/index.d.ts +2 -2
- package/System.Runtime.Versioning.js +9 -0
- package/System.Runtime.js +9 -0
- package/System.Security/internal/index.d.ts +4 -4
- package/System.Security.AccessControl/internal/index.d.ts +4 -4
- package/System.Security.AccessControl.js +9 -0
- package/System.Security.Authentication/internal/index.d.ts +2 -2
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +2 -2
- package/System.Security.Authentication.ExtendedProtection.js +9 -0
- package/System.Security.Authentication.js +9 -0
- package/System.Security.Claims/internal/index.d.ts +2 -2
- package/System.Security.Claims.js +9 -0
- package/System.Security.Cryptography/internal/index.d.ts +4 -4
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +4 -4
- package/System.Security.Cryptography.X509Certificates.js +9 -0
- package/System.Security.Cryptography.js +9 -0
- package/System.Security.Permissions/internal/index.d.ts +2 -2
- package/System.Security.Permissions.js +9 -0
- package/System.Security.Policy/internal/index.d.ts +2 -2
- package/System.Security.Policy.js +9 -0
- package/System.Security.Principal/internal/index.d.ts +2 -2
- package/System.Security.Principal.js +9 -0
- package/System.Security.js +9 -0
- package/System.Text/internal/index.d.ts +4 -4
- package/System.Text.Encodings.Web/internal/index.d.ts +4 -4
- package/System.Text.Encodings.Web.js +9 -0
- package/System.Text.Json/internal/index.d.ts +4 -4
- package/System.Text.Json.Nodes/internal/index.d.ts +4 -4
- package/System.Text.Json.Nodes.js +9 -0
- package/System.Text.Json.Schema/internal/index.d.ts +2 -2
- package/System.Text.Json.Schema.js +9 -0
- package/System.Text.Json.Serialization/internal/index.d.ts +4 -4
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +2 -2
- package/System.Text.Json.Serialization.Metadata.js +9 -0
- package/System.Text.Json.Serialization.js +9 -0
- package/System.Text.Json.js +9 -0
- package/System.Text.RegularExpressions/internal/index.d.ts +4 -4
- package/System.Text.RegularExpressions.js +9 -0
- package/System.Text.Unicode/internal/index.d.ts +4 -4
- package/System.Text.Unicode.js +9 -0
- package/System.Text.js +9 -0
- package/System.Threading/internal/index.d.ts +4 -4
- package/System.Threading.Channels/internal/index.d.ts +4 -4
- package/System.Threading.Channels.js +9 -0
- package/System.Threading.Tasks/internal/index.d.ts +2 -2
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +4 -4
- package/System.Threading.Tasks.Dataflow.js +9 -0
- package/System.Threading.Tasks.Sources/internal/index.d.ts +2 -2
- package/System.Threading.Tasks.Sources.js +9 -0
- package/System.Threading.Tasks.js +9 -0
- package/System.Threading.js +9 -0
- package/System.Timers/internal/index.d.ts +2 -2
- package/System.Timers.js +9 -0
- package/System.Transactions/internal/index.d.ts +2 -2
- package/System.Transactions.js +9 -0
- package/System.Web/internal/index.d.ts +2 -2
- package/System.Web.js +9 -0
- package/System.Windows.Input/internal/index.d.ts +2 -2
- package/System.Windows.Input.js +9 -0
- package/System.Windows.Markup/internal/index.d.ts +2 -2
- package/System.Windows.Markup.js +9 -0
- package/System.Xml/internal/index.d.ts +4 -4
- package/System.Xml.Linq/internal/index.d.ts +2 -2
- package/System.Xml.Linq.js +9 -0
- package/System.Xml.Resolvers/internal/index.d.ts +2 -2
- package/System.Xml.Resolvers.js +9 -0
- package/System.Xml.Schema/internal/index.d.ts +2 -2
- package/System.Xml.Schema.js +9 -0
- package/System.Xml.Serialization/internal/index.d.ts +2 -2
- package/System.Xml.Serialization.js +9 -0
- package/System.Xml.XPath/internal/index.d.ts +2 -2
- package/System.Xml.XPath.js +9 -0
- package/System.Xml.Xsl/internal/index.d.ts +2 -2
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +4 -4
- package/System.Xml.Xsl.Runtime.js +9 -0
- package/System.Xml.Xsl.js +9 -0
- package/System.Xml.js +9 -0
- package/System.js +9 -0
- package/__build/scripts/generate.sh +81 -0
- package/__internal/extensions/index.d.ts +3 -3
- package/package.json +2 -10
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// Namespace: System.Timers
|
|
3
3
|
// Assembly: System.ComponentModel.TypeConverter
|
|
4
4
|
|
|
5
|
-
//
|
|
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";
|
package/System.Timers.js
ADDED
|
@@ -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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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/
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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/
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.8.0",
|
|
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/
|
|
21
|
+
"@tsonic/core": "*"
|
|
30
22
|
}
|
|
31
23
|
}
|