@tsonic/dotnet 0.8.3 → 0.8.7
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/README.md +27 -26
- package/System.Buffers.d.ts +6 -0
- package/System.Collections.Concurrent.d.ts +3 -0
- package/System.Collections.Frozen.d.ts +3 -0
- package/System.Collections.Generic.d.ts +3 -0
- package/System.Collections.Immutable.d.ts +3 -0
- package/System.Collections.ObjectModel.d.ts +3 -0
- package/System.Data.Common.d.ts +3 -0
- package/System.Data.d.ts +7 -0
- package/System.Diagnostics.Metrics.d.ts +6 -0
- package/System.Diagnostics.d.ts +3 -0
- package/System.Globalization.d.ts +3 -0
- package/System.IO.Compression.d.ts +3 -0
- package/System.IO.Pipelines.d.ts +3 -0
- package/System.IO.Pipes.d.ts +3 -0
- package/System.IO.d.ts +3 -0
- package/System.Linq.Expressions/internal/index.d.ts +1 -1
- package/System.Linq.Expressions.d.ts +3 -0
- package/System.Linq.d.ts +8 -0
- package/System.Net.Http.Json.d.ts +3 -0
- package/System.Net.ServerSentEvents.d.ts +3 -0
- package/System.Net.Sockets.d.ts +3 -0
- package/System.Numerics.d.ts +6 -0
- package/System.Reflection.Metadata.Ecma335.d.ts +3 -0
- package/System.Reflection.Metadata.d.ts +3 -0
- package/System.Reflection.d.ts +3 -0
- package/System.Runtime.CompilerServices.d.ts +8 -0
- package/System.Runtime.InteropServices.JavaScript.d.ts +3 -0
- package/System.Runtime.InteropServices.Swift.d.ts +3 -0
- package/System.Runtime.InteropServices.d.ts +6 -0
- package/System.Runtime.Intrinsics.d.ts +9 -0
- package/System.Runtime.Serialization.Json.d.ts +3 -0
- package/System.Runtime.Serialization.d.ts +3 -0
- package/System.Security.AccessControl.d.ts +5 -0
- package/System.Security.Cryptography.X509Certificates.d.ts +3 -0
- package/System.Text.Json.Schema.d.ts +3 -0
- package/System.Text.Json.Serialization.Metadata.d.ts +6 -0
- package/System.Text.Json.Serialization.d.ts +5 -0
- package/System.Text.Json.d.ts +3 -0
- package/System.Text.d.ts +3 -0
- package/System.Threading.Channels.d.ts +3 -0
- package/System.Threading.Tasks.Dataflow.d.ts +5 -0
- package/System.Threading.Tasks.Sources.d.ts +2 -0
- package/System.Threading.Tasks.d.ts +9 -0
- package/System.Threading.d.ts +3 -0
- package/System.Xml.Linq.d.ts +3 -0
- package/System.Xml.Schema.d.ts +3 -0
- package/System.Xml.XPath.d.ts +3 -0
- package/System.d.ts +9 -0
- package/__build/scripts/generate.sh +6 -5
- package/__internal/extensions/index.d.ts +2517 -2196
- package/package.json +2 -2
|
@@ -35,6 +35,12 @@ export { Parallel$instance as Parallel } from './System.Threading.Tasks/internal
|
|
|
35
35
|
export { ParallelLoopState as ParallelLoopState } from './System.Threading.Tasks/internal/index.js';
|
|
36
36
|
export { ParallelLoopResult as ParallelLoopResult } from './System.Threading.Tasks/internal/index.js';
|
|
37
37
|
|
|
38
|
+
// Multi-arity family value exports (arity-0 constructors/static namespaces)
|
|
39
|
+
export const Task: typeof Internal.Task;
|
|
40
|
+
export const TaskCompletionSource: typeof Internal.TaskCompletionSource;
|
|
41
|
+
export const TaskFactory: typeof Internal.TaskFactory;
|
|
42
|
+
export const ValueTask: typeof Internal.ValueTask;
|
|
43
|
+
|
|
38
44
|
// Multi-arity family sentinel (detects unspecified type parameters)
|
|
39
45
|
declare const __unspecified: unique symbol;
|
|
40
46
|
export type __ = typeof __unspecified;
|
|
@@ -63,3 +69,6 @@ export type ValueTask<
|
|
|
63
69
|
[T1] extends [__] ? Internal.ValueTask :
|
|
64
70
|
Internal.ValueTask_1<T1>;
|
|
65
71
|
|
|
72
|
+
// Extension methods (C# using semantics)
|
|
73
|
+
export type { ExtensionMethods_System_Threading_Tasks as ExtensionMethods } from './__internal/extensions/index.js';
|
|
74
|
+
|
package/System.Threading.d.ts
CHANGED
|
@@ -97,3 +97,6 @@ export { EventWaitHandleAcl$instance as EventWaitHandleAcl } from './System.Thre
|
|
|
97
97
|
export { MutexAcl$instance as MutexAcl } from './System.Threading/internal/index.js';
|
|
98
98
|
export { SemaphoreAcl$instance as SemaphoreAcl } from './System.Threading/internal/index.js';
|
|
99
99
|
export { ThreadingAclExtensions$instance as ThreadingAclExtensions } from './System.Threading/internal/index.js';
|
|
100
|
+
// Extension methods (C# using semantics)
|
|
101
|
+
export type { ExtensionMethods_System_Threading as ExtensionMethods } from './__internal/extensions/index.js';
|
|
102
|
+
|
package/System.Xml.Linq.d.ts
CHANGED
|
@@ -41,3 +41,6 @@ export { XObjectChangeEventArgs as XObjectChangeEventArgs } from './System.Xml.L
|
|
|
41
41
|
export { XProcessingInstruction as XProcessingInstruction } from './System.Xml.Linq/internal/index.js';
|
|
42
42
|
export { XStreamingElement as XStreamingElement } from './System.Xml.Linq/internal/index.js';
|
|
43
43
|
export { XText as XText } from './System.Xml.Linq/internal/index.js';
|
|
44
|
+
// Extension methods (C# using semantics)
|
|
45
|
+
export type { ExtensionMethods_System_Xml_Linq as ExtensionMethods } from './__internal/extensions/index.js';
|
|
46
|
+
|
package/System.Xml.Schema.d.ts
CHANGED
|
@@ -106,3 +106,6 @@ export { XmlSchemaInference as XmlSchemaInference } from './System.Xml.Schema/in
|
|
|
106
106
|
export { XmlSchemaInference_InferenceOption as XmlSchemaInference_InferenceOption } from './System.Xml.Schema/internal/index.js';
|
|
107
107
|
export { XmlSchemaInferenceException as XmlSchemaInferenceException } from './System.Xml.Schema/internal/index.js';
|
|
108
108
|
export { Extensions$instance as Extensions } from './System.Xml.Schema/internal/index.js';
|
|
109
|
+
// Extension methods (C# using semantics)
|
|
110
|
+
export type { ExtensionMethods_System_Xml_Schema as ExtensionMethods } from './__internal/extensions/index.js';
|
|
111
|
+
|
package/System.Xml.XPath.d.ts
CHANGED
|
@@ -32,3 +32,6 @@ export { XPathNodeIterator as XPathNodeIterator } from './System.Xml.XPath/inter
|
|
|
32
32
|
export { XPathNodeType as XPathNodeType } from './System.Xml.XPath/internal/index.js';
|
|
33
33
|
export { Extensions$instance as Extensions } from './System.Xml.XPath/internal/index.js';
|
|
34
34
|
export { XDocumentExtensions$instance as XDocumentExtensions } from './System.Xml.XPath/internal/index.js';
|
|
35
|
+
// Extension methods (C# using semantics)
|
|
36
|
+
export type { ExtensionMethods_System_Xml_XPath as ExtensionMethods } from './__internal/extensions/index.js';
|
|
37
|
+
|
package/System.d.ts
CHANGED
|
@@ -258,6 +258,12 @@ export { NetTcpStyleUriParser as NetTcpStyleUriParser } from './System/internal/
|
|
|
258
258
|
export { UriPartial as UriPartial } from './System/internal/index.js';
|
|
259
259
|
export { UriParser as UriParser } from './System/internal/index.js';
|
|
260
260
|
|
|
261
|
+
// Multi-arity family value exports (arity-0 constructors/static namespaces)
|
|
262
|
+
export const Nullable: typeof Internal.Nullable$instance;
|
|
263
|
+
export const Tuple: typeof Internal.Tuple$instance;
|
|
264
|
+
export const ValueTuple: typeof Internal.ValueTuple;
|
|
265
|
+
export const WeakReference: typeof Internal.WeakReference;
|
|
266
|
+
|
|
261
267
|
// Multi-arity family sentinel (detects unspecified type parameters)
|
|
262
268
|
declare const __unspecified: unique symbol;
|
|
263
269
|
export type __ = typeof __unspecified;
|
|
@@ -429,3 +435,6 @@ export type { Decimal$instance } from './System/internal/index.js';
|
|
|
429
435
|
export type { Char$instance } from './System/internal/index.js';
|
|
430
436
|
export type { Boolean$instance } from './System/internal/index.js';
|
|
431
437
|
export type { String$instance } from './System/internal/index.js';
|
|
438
|
+
// Extension methods (C# using semantics)
|
|
439
|
+
export type { ExtensionMethods_System as ExtensionMethods } from './__internal/extensions/index.js';
|
|
440
|
+
|
|
@@ -18,8 +18,8 @@ PROJECT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
|
18
18
|
TSBINDGEN_DIR="$PROJECT_DIR/../tsbindgen"
|
|
19
19
|
|
|
20
20
|
# .NET runtime path
|
|
21
|
-
DOTNET_VERSION="${DOTNET_VERSION:-10.0.
|
|
22
|
-
DOTNET_HOME="${DOTNET_HOME:-$HOME
|
|
21
|
+
DOTNET_VERSION="${DOTNET_VERSION:-10.0.1}"
|
|
22
|
+
DOTNET_HOME="${DOTNET_HOME:-$HOME/.dotnet}"
|
|
23
23
|
DOTNET_RUNTIME_PATH="$DOTNET_HOME/shared/Microsoft.NETCore.App/$DOTNET_VERSION"
|
|
24
24
|
|
|
25
25
|
echo "================================================================"
|
|
@@ -58,8 +58,9 @@ find . -maxdepth 1 -type d \
|
|
|
58
58
|
! -name '__build' \
|
|
59
59
|
-exec rm -rf {} \; 2>/dev/null || true
|
|
60
60
|
|
|
61
|
-
#
|
|
62
|
-
rm -
|
|
61
|
+
# Remove generated files at root
|
|
62
|
+
rm -f *.d.ts *.js families.json 2>/dev/null || true
|
|
63
|
+
rm -rf __internal Internal internal 2>/dev/null || true
|
|
63
64
|
|
|
64
65
|
echo " Done"
|
|
65
66
|
|
|
@@ -69,7 +70,7 @@ cd "$TSBINDGEN_DIR"
|
|
|
69
70
|
dotnet build src/tsbindgen/tsbindgen.csproj -c Release --verbosity quiet
|
|
70
71
|
echo " Done"
|
|
71
72
|
|
|
72
|
-
# Generate types with JavaScript-style naming (lowerFirst for PascalCase members)
|
|
73
|
+
# Generate types with JavaScript-style naming (lowerFirst for PascalCase members).
|
|
73
74
|
echo "[3/3] Generating TypeScript declarations..."
|
|
74
75
|
dotnet run --project src/tsbindgen/tsbindgen.csproj --no-build -c Release -- \
|
|
75
76
|
generate -d "$DOTNET_RUNTIME_PATH" -o "$PROJECT_DIR" \
|