@tsonic/dotnet 0.8.4 → 0.8.8

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.
@@ -30,6 +30,9 @@ export { JsonParameterInfo as JsonParameterInfo } from './System.Text.Json.Seria
30
30
  export { JsonPropertyInfo as JsonPropertyInfo } from './System.Text.Json.Serialization.Metadata/internal/index.js';
31
31
  export { JsonPropertyInfoValues_1 as JsonPropertyInfoValues } from './System.Text.Json.Serialization.Metadata/internal/index.js';
32
32
 
33
+ // Multi-arity family value exports (arity-0 constructors/static namespaces)
34
+ export const JsonTypeInfo: typeof Internal.JsonTypeInfo;
35
+
33
36
  // Multi-arity family sentinel (detects unspecified type parameters)
34
37
  declare const __unspecified: unique symbol;
35
38
  export type __ = typeof __unspecified;
@@ -46,6 +46,11 @@ export { JsonConverterFactory as JsonConverterFactory } from './System.Text.Json
46
46
  export { JsonStringEnumMemberNameAttribute as JsonStringEnumMemberNameAttribute } from './System.Text.Json.Serialization/internal/index.js';
47
47
  export { ReferenceResolver as ReferenceResolver } from './System.Text.Json.Serialization/internal/index.js';
48
48
 
49
+ // Multi-arity family value exports (arity-0 constructors/static namespaces)
50
+ export const JsonConverter: typeof Internal.JsonConverter;
51
+ export const JsonStringEnumConverter: typeof Internal.JsonStringEnumConverter;
52
+ export const ReferenceHandler: typeof Internal.ReferenceHandler;
53
+
49
54
  // Multi-arity family sentinel (detects unspecified type parameters)
50
55
  declare const __unspecified: unique symbol;
51
56
  export type __ = typeof __unspecified;
@@ -24,6 +24,9 @@ export { ChannelReader_1 as ChannelReader } from './System.Threading.Channels/in
24
24
  export { ChannelWriter_1 as ChannelWriter } from './System.Threading.Channels/internal/index.js';
25
25
  export { UnboundedPrioritizedChannelOptions_1 as UnboundedPrioritizedChannelOptions } from './System.Threading.Channels/internal/index.js';
26
26
 
27
+ // Multi-arity family value exports (arity-0 constructors/static namespaces)
28
+ export const Channel: typeof Internal.Channel$instance;
29
+
27
30
  // Multi-arity family sentinel (detects unspecified type parameters)
28
31
  declare const __unspecified: unique symbol;
29
32
  export type __ = typeof __unspecified;
@@ -32,6 +32,8 @@ export { TransformBlock_2 as TransformBlock } from './System.Threading.Tasks.Dat
32
32
  export { TransformManyBlock_2 as TransformManyBlock } from './System.Threading.Tasks.Dataflow/internal/index.js';
33
33
  export { WriteOnceBlock_1 as WriteOnceBlock } from './System.Threading.Tasks.Dataflow/internal/index.js';
34
34
 
35
+ // Multi-arity family value exports (arity-0 constructors/static namespaces)
36
+
35
37
  // Multi-arity family sentinel (detects unspecified type parameters)
36
38
  declare const __unspecified: unique symbol;
37
39
  export type __ = typeof __unspecified;
@@ -13,6 +13,8 @@ export { ValueTaskSourceOnCompletedFlags as ValueTaskSourceOnCompletedFlags } fr
13
13
  export { ValueTaskSourceStatus as ValueTaskSourceStatus } from './System.Threading.Tasks.Sources/internal/index.js';
14
14
  export { ManualResetValueTaskSourceCore_1 as ManualResetValueTaskSourceCore } from './System.Threading.Tasks.Sources/internal/index.js';
15
15
 
16
+ // Multi-arity family value exports (arity-0 constructors/static namespaces)
17
+
16
18
  // Multi-arity family sentinel (detects unspecified type parameters)
17
19
  declare const __unspecified: unique symbol;
18
20
  export type __ = typeof __unspecified;
@@ -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;
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;
@@ -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" \
@@ -2227,7 +2227,7 @@ export type ExtensionMethods_System<TShape> =
2227
2227
  (TShape extends System.ReadOnlyMemory_1<infer T0 extends System.IEquatable_1<T0>> ? __Ext_System_ReadOnlyMemory_1<T0> : {}) &
2228
2228
  (TShape extends System.ReadOnlySpan_1<infer T0 extends System.IEquatable_1<T0>> ? __Ext_System_ReadOnlySpan_1<T0> : {}) &
2229
2229
  (TShape extends System.Span_1<infer T0 extends System.IEquatable_1<T0>> ? __Ext_System_Span_1<T0> : {}) &
2230
- (TShape extends System.String ? __Ext_System_String : {}) &
2230
+ (TShape extends string ? __Ext_System_String : {}) &
2231
2231
  (TShape extends System.Tuple_1<infer T0> ? __Ext_System_Tuple_1<T0> : {}) &
2232
2232
  (TShape extends System.Tuple_2<infer T0, infer T1> ? __Ext_System_Tuple_2<T0, T1> : {}) &
2233
2233
  (TShape extends System.Tuple_3<infer T0, infer T1, infer T2> ? __Ext_System_Tuple_3<T0, T1, T2> : {}) &
@@ -2382,6 +2382,7 @@ export type ExtensionMethods_System_IO_Pipes<TShape> =
2382
2382
  );
2383
2383
 
2384
2384
  // Generic helper type for extension methods in namespace: System.Linq
2385
+ type __TsonicPreferExt<A, B> = Omit<A, keyof B> & B;
2385
2386
  export type ExtensionMethods_System_Linq<TShape> =
2386
2387
  TShape extends null | undefined ? TShape
2387
2388
  : TShape extends void ? void
@@ -2389,14 +2390,14 @@ export type ExtensionMethods_System_Linq<TShape> =
2389
2390
  (TShape extends System_Collections.IEnumerable ? __Ext_System_Linq_IEnumerable : {}) &
2390
2391
  (TShape extends System_Collections_Concurrent.Partitioner_1<infer T0> ? __Ext_System_Linq_Partitioner_1<T0> : {}) &
2391
2392
  (TShape extends System_Collections_Generic.IAsyncEnumerable_1<infer T0> ? __Ext_System_Linq_IAsyncEnumerable_1<T0> : {}) &
2392
- (TShape extends System_Collections_Generic.IEnumerable_1<infer T0> ? __Ext_System_Linq_IEnumerable_1<T0> : {}) &
2393
+ (TShape extends System_Collections_Generic.IEnumerable_1<infer T0> ? (TShape extends System_Linq.IQueryable ? {} : __Ext_System_Linq_IEnumerable_1<T0>) : {}) &
2393
2394
  (TShape extends System_Collections_Immutable.ImmutableArray_1<infer T0> ? __Ext_System_Linq_ImmutableArray_1<T0> : {}) &
2394
2395
  (TShape extends System_Collections_Immutable.ImmutableArray_1_Builder<infer T0> ? __Ext_System_Linq_ImmutableArray_1_Builder<T0> : {}) &
2395
2396
  (TShape extends System_Linq.IOrderedAsyncEnumerable_1<infer T0> ? __Ext_System_Linq_IOrderedAsyncEnumerable_1<T0> : {}) &
2396
2397
  (TShape extends System_Linq.IOrderedEnumerable_1<infer T0> ? __Ext_System_Linq_IOrderedEnumerable_1<T0> : {}) &
2397
2398
  (TShape extends System_Linq.IOrderedQueryable_1<infer T0> ? __Ext_System_Linq_IOrderedQueryable_1<T0> : {}) &
2398
2399
  (TShape extends System_Linq.IQueryable ? __Ext_System_Linq_IQueryable : {}) &
2399
- (TShape extends System_Linq.IQueryable_1<infer T0> ? __Ext_System_Linq_IQueryable_1<T0> : {}) &
2400
+ (TShape extends System_Linq.IQueryable_1<infer T0> ? __TsonicPreferExt<__Ext_System_Linq_IEnumerable_1<T0>, __Ext_System_Linq_IQueryable_1<T0>> : {}) &
2400
2401
  (TShape extends System_Linq.OrderedParallelQuery_1<infer T0> ? __Ext_System_Linq_OrderedParallelQuery_1<T0> : {}) &
2401
2402
  (TShape extends System_Linq.ParallelQuery ? __Ext_System_Linq_ParallelQuery : {}) &
2402
2403
  (TShape extends System_Linq.ParallelQuery_1<infer T0> ? __Ext_System_Linq_ParallelQuery_1<T0> : {}) &
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsonic/dotnet",
3
- "version": "0.8.4",
3
+ "version": "0.8.8",
4
4
  "description": "TypeScript type definitions for .NET 10 BCL (Base Class Library)",
5
5
  "type": "module",
6
6
  "keywords": [