@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.
Files changed (52) hide show
  1. package/README.md +27 -26
  2. package/System.Buffers.d.ts +6 -0
  3. package/System.Collections.Concurrent.d.ts +3 -0
  4. package/System.Collections.Frozen.d.ts +3 -0
  5. package/System.Collections.Generic.d.ts +3 -0
  6. package/System.Collections.Immutable.d.ts +3 -0
  7. package/System.Collections.ObjectModel.d.ts +3 -0
  8. package/System.Data.Common.d.ts +3 -0
  9. package/System.Data.d.ts +7 -0
  10. package/System.Diagnostics.Metrics.d.ts +6 -0
  11. package/System.Diagnostics.d.ts +3 -0
  12. package/System.Globalization.d.ts +3 -0
  13. package/System.IO.Compression.d.ts +3 -0
  14. package/System.IO.Pipelines.d.ts +3 -0
  15. package/System.IO.Pipes.d.ts +3 -0
  16. package/System.IO.d.ts +3 -0
  17. package/System.Linq.Expressions/internal/index.d.ts +1 -1
  18. package/System.Linq.Expressions.d.ts +3 -0
  19. package/System.Linq.d.ts +8 -0
  20. package/System.Net.Http.Json.d.ts +3 -0
  21. package/System.Net.ServerSentEvents.d.ts +3 -0
  22. package/System.Net.Sockets.d.ts +3 -0
  23. package/System.Numerics.d.ts +6 -0
  24. package/System.Reflection.Metadata.Ecma335.d.ts +3 -0
  25. package/System.Reflection.Metadata.d.ts +3 -0
  26. package/System.Reflection.d.ts +3 -0
  27. package/System.Runtime.CompilerServices.d.ts +8 -0
  28. package/System.Runtime.InteropServices.JavaScript.d.ts +3 -0
  29. package/System.Runtime.InteropServices.Swift.d.ts +3 -0
  30. package/System.Runtime.InteropServices.d.ts +6 -0
  31. package/System.Runtime.Intrinsics.d.ts +9 -0
  32. package/System.Runtime.Serialization.Json.d.ts +3 -0
  33. package/System.Runtime.Serialization.d.ts +3 -0
  34. package/System.Security.AccessControl.d.ts +5 -0
  35. package/System.Security.Cryptography.X509Certificates.d.ts +3 -0
  36. package/System.Text.Json.Schema.d.ts +3 -0
  37. package/System.Text.Json.Serialization.Metadata.d.ts +6 -0
  38. package/System.Text.Json.Serialization.d.ts +5 -0
  39. package/System.Text.Json.d.ts +3 -0
  40. package/System.Text.d.ts +3 -0
  41. package/System.Threading.Channels.d.ts +3 -0
  42. package/System.Threading.Tasks.Dataflow.d.ts +5 -0
  43. package/System.Threading.Tasks.Sources.d.ts +2 -0
  44. package/System.Threading.Tasks.d.ts +9 -0
  45. package/System.Threading.d.ts +3 -0
  46. package/System.Xml.Linq.d.ts +3 -0
  47. package/System.Xml.Schema.d.ts +3 -0
  48. package/System.Xml.XPath.d.ts +3 -0
  49. package/System.d.ts +9 -0
  50. package/__build/scripts/generate.sh +6 -5
  51. package/__internal/extensions/index.d.ts +2517 -2196
  52. 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
+
@@ -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
+
@@ -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
+
@@ -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
+
@@ -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.0-rc.1.25451.107}"
22
- DOTNET_HOME="${DOTNET_HOME:-$HOME/dotnet}"
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
- # Also remove internal/ and Internal/ at root level
62
- rm -rf internal Internal 2>/dev/null || true
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" \