@tsonic/aspnetcore 10.0.39 → 10.0.41

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 (187) hide show
  1. package/Microsoft.AspNetCore/internal/index.d.ts +3 -2
  2. package/Microsoft.AspNetCore.Antiforgery/internal/index.d.ts +11 -10
  3. package/Microsoft.AspNetCore.Authentication/internal/index.d.ts +175 -172
  4. package/Microsoft.AspNetCore.Authentication.BearerToken/internal/index.d.ts +6 -5
  5. package/Microsoft.AspNetCore.Authentication.Cookies/internal/index.d.ts +22 -21
  6. package/Microsoft.AspNetCore.Authentication.OAuth/internal/index.d.ts +23 -22
  7. package/Microsoft.AspNetCore.Authentication.OAuth.Claims/internal/index.d.ts +5 -4
  8. package/Microsoft.AspNetCore.Authentication.d.ts +2 -0
  9. package/Microsoft.AspNetCore.Authorization/internal/index.d.ts +36 -35
  10. package/Microsoft.AspNetCore.Authorization.Infrastructure/internal/index.d.ts +5 -4
  11. package/Microsoft.AspNetCore.Authorization.Policy/internal/index.d.ts +8 -7
  12. package/Microsoft.AspNetCore.Builder/internal/index.d.ts +78 -77
  13. package/Microsoft.AspNetCore.Builder.Extensions/internal/index.d.ts +9 -8
  14. package/Microsoft.AspNetCore.Components/bindings.json +4 -1
  15. package/Microsoft.AspNetCore.Components/internal/index.d.ts +226 -228
  16. package/Microsoft.AspNetCore.Components.Authorization/internal/index.d.ts +26 -25
  17. package/Microsoft.AspNetCore.Components.CompilerServices/internal/index.d.ts +7 -6
  18. package/Microsoft.AspNetCore.Components.Endpoints/internal/index.d.ts +3 -2
  19. package/Microsoft.AspNetCore.Components.Endpoints.Infrastructure/internal/index.d.ts +3 -2
  20. package/Microsoft.AspNetCore.Components.Forms/internal/index.d.ts +73 -75
  21. package/Microsoft.AspNetCore.Components.Forms.Mapping/internal/index.d.ts +14 -13
  22. package/Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure/internal/index.d.ts +2 -4
  23. package/Microsoft.AspNetCore.Components.Infrastructure/internal/index.d.ts +3 -2
  24. package/Microsoft.AspNetCore.Components.RenderTree/internal/index.d.ts +15 -17
  25. package/Microsoft.AspNetCore.Components.Rendering/internal/index.d.ts +20 -19
  26. package/Microsoft.AspNetCore.Components.Routing/internal/index.d.ts +24 -23
  27. package/Microsoft.AspNetCore.Components.Sections/internal/index.d.ts +13 -12
  28. package/Microsoft.AspNetCore.Components.Server/internal/index.d.ts +9 -8
  29. package/Microsoft.AspNetCore.Components.Server.Circuits/internal/index.d.ts +3 -2
  30. package/Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage/internal/index.d.ts +6 -5
  31. package/Microsoft.AspNetCore.Components.Web/internal/index.d.ts +37 -36
  32. package/Microsoft.AspNetCore.Components.Web.HtmlRendering/internal/index.d.ts +3 -2
  33. package/Microsoft.AspNetCore.Components.Web.Infrastructure/internal/index.d.ts +3 -2
  34. package/Microsoft.AspNetCore.Components.Web.Internal/internal/index.d.ts +3 -5
  35. package/Microsoft.AspNetCore.Components.Web.Virtualization/internal/index.d.ts +15 -14
  36. package/Microsoft.AspNetCore.Components.d.ts +1 -1
  37. package/Microsoft.AspNetCore.Connections/internal/index.d.ts +31 -30
  38. package/Microsoft.AspNetCore.Connections.Abstractions/internal/index.d.ts +3 -2
  39. package/Microsoft.AspNetCore.Connections.Features/internal/index.d.ts +15 -14
  40. package/Microsoft.AspNetCore.CookiePolicy/internal/index.d.ts +3 -2
  41. package/Microsoft.AspNetCore.Cors/internal/index.d.ts +6 -5
  42. package/Microsoft.AspNetCore.Cors.Infrastructure/internal/index.d.ts +11 -10
  43. package/Microsoft.AspNetCore.Cryptography.KeyDerivation/internal/index.d.ts +3 -2
  44. package/Microsoft.AspNetCore.DataProtection/internal/index.d.ts +5 -7
  45. package/Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption/internal/index.d.ts +8 -7
  46. package/Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel/internal/index.d.ts +9 -8
  47. package/Microsoft.AspNetCore.DataProtection.Infrastructure/internal/index.d.ts +4 -3
  48. package/Microsoft.AspNetCore.DataProtection.Internal/internal/index.d.ts +4 -3
  49. package/Microsoft.AspNetCore.DataProtection.KeyManagement/internal/index.d.ts +16 -15
  50. package/Microsoft.AspNetCore.DataProtection.KeyManagement.Internal/internal/index.d.ts +7 -9
  51. package/Microsoft.AspNetCore.DataProtection.Repositories/internal/index.d.ts +5 -4
  52. package/Microsoft.AspNetCore.DataProtection.XmlEncryption/internal/index.d.ts +9 -8
  53. package/Microsoft.AspNetCore.Diagnostics/internal/index.d.ts +33 -32
  54. package/Microsoft.AspNetCore.Diagnostics.HealthChecks/internal/index.d.ts +5 -4
  55. package/Microsoft.AspNetCore.HostFiltering/internal/index.d.ts +3 -2
  56. package/Microsoft.AspNetCore.Hosting/internal/index.d.ts +12 -11
  57. package/Microsoft.AspNetCore.Hosting.Builder/internal/index.d.ts +3 -2
  58. package/Microsoft.AspNetCore.Hosting.Infrastructure/internal/index.d.ts +3 -2
  59. package/Microsoft.AspNetCore.Hosting.Server/internal/index.d.ts +4 -3
  60. package/Microsoft.AspNetCore.Hosting.Server.Abstractions/internal/index.d.ts +4 -3
  61. package/Microsoft.AspNetCore.Hosting.Server.Features/internal/index.d.ts +3 -2
  62. package/Microsoft.AspNetCore.Hosting.StaticWebAssets/internal/index.d.ts +3 -2
  63. package/Microsoft.AspNetCore.Html/internal/index.d.ts +13 -12
  64. package/Microsoft.AspNetCore.Http/bindings.json +470 -530
  65. package/Microsoft.AspNetCore.Http/internal/index.d.ts +313 -318
  66. package/Microsoft.AspNetCore.Http.Connections/internal/index.d.ts +22 -21
  67. package/Microsoft.AspNetCore.Http.Connections.Features/internal/index.d.ts +5 -4
  68. package/Microsoft.AspNetCore.Http.Extensions/internal/index.d.ts +3 -5
  69. package/Microsoft.AspNetCore.Http.Features/bindings.json +4 -1
  70. package/Microsoft.AspNetCore.Http.Features/internal/index.d.ts +54 -56
  71. package/Microsoft.AspNetCore.Http.Features.Authentication/internal/index.d.ts +7 -6
  72. package/Microsoft.AspNetCore.Http.Headers/internal/index.d.ts +37 -36
  73. package/Microsoft.AspNetCore.Http.HttpResults/internal/index.d.ts +63 -62
  74. package/Microsoft.AspNetCore.Http.Json/internal/index.d.ts +3 -2
  75. package/Microsoft.AspNetCore.Http.Metadata/internal/index.d.ts +12 -11
  76. package/Microsoft.AspNetCore.Http.Timeouts/internal/index.d.ts +8 -7
  77. package/Microsoft.AspNetCore.Http.d.ts +4 -4
  78. package/Microsoft.AspNetCore.HttpLogging/internal/index.d.ts +5 -4
  79. package/Microsoft.AspNetCore.HttpOverrides/internal/index.d.ts +3 -5
  80. package/Microsoft.AspNetCore.HttpsPolicy/internal/index.d.ts +3 -2
  81. package/Microsoft.AspNetCore.Identity/bindings.json +397 -17
  82. package/Microsoft.AspNetCore.Identity/internal/index.d.ts +249 -248
  83. package/Microsoft.AspNetCore.Identity.Data/internal/index.d.ts +17 -16
  84. package/Microsoft.AspNetCore.Identity.UI.Services/internal/index.d.ts +3 -2
  85. package/Microsoft.AspNetCore.Localization/internal/index.d.ts +17 -16
  86. package/Microsoft.AspNetCore.Localization.Routing/internal/index.d.ts +4 -3
  87. package/Microsoft.AspNetCore.Mvc/internal/index.d.ts +394 -393
  88. package/Microsoft.AspNetCore.Mvc.Abstractions/internal/index.d.ts +17 -16
  89. package/Microsoft.AspNetCore.Mvc.ActionConstraints/internal/index.d.ts +7 -6
  90. package/Microsoft.AspNetCore.Mvc.ApiExplorer/internal/index.d.ts +34 -33
  91. package/Microsoft.AspNetCore.Mvc.ApplicationModels/internal/index.d.ts +72 -71
  92. package/Microsoft.AspNetCore.Mvc.ApplicationParts/internal/index.d.ts +3 -2
  93. package/Microsoft.AspNetCore.Mvc.Authorization/internal/index.d.ts +6 -5
  94. package/Microsoft.AspNetCore.Mvc.Controllers/internal/index.d.ts +22 -21
  95. package/Microsoft.AspNetCore.Mvc.Core.Infrastructure/internal/index.d.ts +3 -2
  96. package/Microsoft.AspNetCore.Mvc.Cors/internal/index.d.ts +5 -4
  97. package/Microsoft.AspNetCore.Mvc.DataAnnotations/internal/index.d.ts +11 -10
  98. package/Microsoft.AspNetCore.Mvc.Diagnostics/bindings.json +99 -119
  99. package/Microsoft.AspNetCore.Mvc.Diagnostics/internal/index.d.ts +91 -91
  100. package/Microsoft.AspNetCore.Mvc.Diagnostics.d.ts +1 -1
  101. package/Microsoft.AspNetCore.Mvc.Filters/internal/index.d.ts +59 -58
  102. package/Microsoft.AspNetCore.Mvc.Formatters/internal/index.d.ts +27 -26
  103. package/Microsoft.AspNetCore.Mvc.Formatters.Xml/internal/index.d.ts +17 -16
  104. package/Microsoft.AspNetCore.Mvc.Infrastructure/bindings.json +91 -0
  105. package/Microsoft.AspNetCore.Mvc.Infrastructure/internal/index.d.ts +50 -33
  106. package/Microsoft.AspNetCore.Mvc.Infrastructure.d.ts +1 -0
  107. package/Microsoft.AspNetCore.Mvc.Localization/internal/index.d.ts +18 -17
  108. package/Microsoft.AspNetCore.Mvc.ModelBinding/bindings.json +1721 -1721
  109. package/Microsoft.AspNetCore.Mvc.ModelBinding/internal/index.d.ts +261 -263
  110. package/Microsoft.AspNetCore.Mvc.ModelBinding.Binders/internal/index.d.ts +36 -35
  111. package/Microsoft.AspNetCore.Mvc.ModelBinding.Metadata/internal/index.d.ts +108 -107
  112. package/Microsoft.AspNetCore.Mvc.ModelBinding.Validation/bindings.json +80 -0
  113. package/Microsoft.AspNetCore.Mvc.ModelBinding.Validation/internal/index.d.ts +58 -43
  114. package/Microsoft.AspNetCore.Mvc.ModelBinding.Validation.d.ts +2 -1
  115. package/Microsoft.AspNetCore.Mvc.ModelBinding.d.ts +7 -7
  116. package/Microsoft.AspNetCore.Mvc.Razor/internal/index.d.ts +37 -36
  117. package/Microsoft.AspNetCore.Mvc.Razor.Compilation/internal/index.d.ts +10 -9
  118. package/Microsoft.AspNetCore.Mvc.Razor.Infrastructure/internal/index.d.ts +3 -2
  119. package/Microsoft.AspNetCore.Mvc.Razor.Internal/internal/index.d.ts +5 -4
  120. package/Microsoft.AspNetCore.Mvc.Razor.TagHelpers/internal/index.d.ts +2 -4
  121. package/Microsoft.AspNetCore.Mvc.RazorPages/internal/index.d.ts +140 -139
  122. package/Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure/internal/index.d.ts +13 -12
  123. package/Microsoft.AspNetCore.Mvc.Rendering/internal/index.d.ts +137 -136
  124. package/Microsoft.AspNetCore.Mvc.Routing/internal/index.d.ts +45 -44
  125. package/Microsoft.AspNetCore.Mvc.TagHelpers/internal/index.d.ts +4 -6
  126. package/Microsoft.AspNetCore.Mvc.TagHelpers.Cache/internal/index.d.ts +4 -3
  127. package/Microsoft.AspNetCore.Mvc.ViewComponents/internal/index.d.ts +24 -23
  128. package/Microsoft.AspNetCore.Mvc.ViewEngines/internal/index.d.ts +9 -8
  129. package/Microsoft.AspNetCore.Mvc.ViewFeatures/bindings.json +131 -131
  130. package/Microsoft.AspNetCore.Mvc.ViewFeatures/internal/index.d.ts +181 -183
  131. package/Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers/internal/index.d.ts +4 -3
  132. package/Microsoft.AspNetCore.Mvc.ViewFeatures.Infrastructure/internal/index.d.ts +5 -4
  133. package/Microsoft.AspNetCore.Mvc.ViewFeatures.d.ts +1 -1
  134. package/Microsoft.AspNetCore.OutputCaching/internal/index.d.ts +17 -16
  135. package/Microsoft.AspNetCore.RateLimiting/internal/index.d.ts +9 -8
  136. package/Microsoft.AspNetCore.Razor.Hosting/internal/index.d.ts +4 -3
  137. package/Microsoft.AspNetCore.Razor.Runtime.TagHelpers/internal/index.d.ts +8 -7
  138. package/Microsoft.AspNetCore.Razor.TagHelpers/internal/index.d.ts +15 -17
  139. package/Microsoft.AspNetCore.RequestDecompression/internal/index.d.ts +4 -3
  140. package/Microsoft.AspNetCore.ResponseCaching/internal/index.d.ts +7 -6
  141. package/Microsoft.AspNetCore.ResponseCompression/internal/index.d.ts +5 -4
  142. package/Microsoft.AspNetCore.Rewrite/internal/index.d.ts +3 -2
  143. package/Microsoft.AspNetCore.Routing/bindings.json +185 -185
  144. package/Microsoft.AspNetCore.Routing/internal/index.d.ts +135 -137
  145. package/Microsoft.AspNetCore.Routing.Constraints/internal/index.d.ts +25 -24
  146. package/Microsoft.AspNetCore.Routing.Internal/internal/index.d.ts +3 -2
  147. package/Microsoft.AspNetCore.Routing.Matching/bindings.json +4 -1
  148. package/Microsoft.AspNetCore.Routing.Matching/internal/index.d.ts +13 -15
  149. package/Microsoft.AspNetCore.Routing.Patterns/internal/index.d.ts +32 -31
  150. package/Microsoft.AspNetCore.Routing.Template/internal/index.d.ts +16 -18
  151. package/Microsoft.AspNetCore.Routing.Tree/internal/index.d.ts +5 -4
  152. package/Microsoft.AspNetCore.Routing.d.ts +1 -1
  153. package/Microsoft.AspNetCore.Server.HttpSys/internal/index.d.ts +9 -11
  154. package/Microsoft.AspNetCore.Server.IIS/internal/index.d.ts +4 -3
  155. package/Microsoft.AspNetCore.Server.IISIntegration/internal/index.d.ts +3 -2
  156. package/Microsoft.AspNetCore.Server.Kestrel/internal/index.d.ts +3 -2
  157. package/Microsoft.AspNetCore.Server.Kestrel.Core/internal/index.d.ts +15 -14
  158. package/Microsoft.AspNetCore.Server.Kestrel.Core.Features/internal/index.d.ts +7 -6
  159. package/Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http/internal/index.d.ts +2 -4
  160. package/Microsoft.AspNetCore.Server.Kestrel.Https/internal/index.d.ts +19 -18
  161. package/Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes/internal/index.d.ts +7 -6
  162. package/Microsoft.AspNetCore.Server.Kestrel.Transport.Quic/internal/index.d.ts +3 -2
  163. package/Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets/internal/index.d.ts +3 -2
  164. package/Microsoft.AspNetCore.Session/internal/index.d.ts +3 -5
  165. package/Microsoft.AspNetCore.SignalR/bindings.json +131 -131
  166. package/Microsoft.AspNetCore.SignalR/internal/index.d.ts +104 -106
  167. package/Microsoft.AspNetCore.SignalR.Protocol/internal/index.d.ts +32 -34
  168. package/Microsoft.AspNetCore.SignalR.d.ts +1 -1
  169. package/Microsoft.AspNetCore.StaticAssets/internal/index.d.ts +3 -2
  170. package/Microsoft.AspNetCore.StaticAssets.Infrastructure/internal/index.d.ts +5 -4
  171. package/Microsoft.AspNetCore.StaticFiles/internal/index.d.ts +2 -4
  172. package/Microsoft.AspNetCore.StaticFiles.Infrastructure/internal/index.d.ts +7 -6
  173. package/Microsoft.AspNetCore.WebSockets/internal/index.d.ts +5 -4
  174. package/Microsoft.AspNetCore.WebUtilities/internal/index.d.ts +25 -24
  175. package/Microsoft.AspNetCore.WebUtilities.d.ts +1 -1
  176. package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +30 -29
  177. package/Microsoft.Extensions.Hosting/internal/index.d.ts +3 -2
  178. package/Microsoft.JSInterop/internal/index.d.ts +46 -48
  179. package/Microsoft.JSInterop.Implementation/internal/index.d.ts +8 -10
  180. package/Microsoft.JSInterop.Infrastructure/internal/index.d.ts +9 -11
  181. package/Microsoft.Net.Http.Headers/internal/index.d.ts +57 -59
  182. package/README.md +58 -15
  183. package/System.Formats.Cbor/internal/index.d.ts +4 -6
  184. package/System.Security.Claims/internal/index.d.ts +4 -3
  185. package/System.Threading.RateLimiting/internal/index.d.ts +13 -15
  186. package/__internal/extensions/index.d.ts +417 -419
  187. package/package.json +4 -4
@@ -2,11 +2,9 @@
2
2
  // Namespace: Microsoft.JSInterop.Implementation
3
3
  // Assembly: Microsoft.JSInterop
4
4
 
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';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, 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/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import * as Microsoft_JSInterop_Internal from "../../Microsoft.JSInterop/internal/index.js";
@@ -28,8 +26,8 @@ export interface JSInProcessObjectReference$instance extends JSObjectReference$i
28
26
 
29
27
  Dispose(): void;
30
28
  GetValue<TValue>(identifier: string): TValue;
31
- Invoke<TValue>(identifier: string, ...args: unknown[]): TValue;
32
- InvokeConstructor(identifier: string, args: unknown[]): IJSInProcessObjectReference;
29
+ Invoke<TValue>(identifier: string, ...args: (JsValue | null)[] | null): TValue;
30
+ InvokeConstructor(identifier: string, args: (JsValue | null)[] | null): IJSInProcessObjectReference;
33
31
  SetValue<TValue>(identifier: string, value: TValue): void;
34
32
  }
35
33
 
@@ -55,10 +53,10 @@ export interface JSObjectReference$instance extends Microsoft_JSInterop_Internal
55
53
  DisposeAsync(): ValueTask;
56
54
  GetValueAsync<TValue>(identifier: string): ValueTask_1<TValue>;
57
55
  GetValueAsync<TValue>(identifier: string, cancellationToken: CancellationToken): ValueTask_1<TValue>;
58
- InvokeAsync<TValue>(identifier: string, args: unknown[]): ValueTask_1<TValue>;
59
- InvokeAsync<TValue>(identifier: string, cancellationToken: CancellationToken, args: unknown[]): ValueTask_1<TValue>;
60
- InvokeConstructorAsync(identifier: string, args: unknown[]): ValueTask_1<IJSObjectReference>;
61
- InvokeConstructorAsync(identifier: string, cancellationToken: CancellationToken, args: unknown[]): ValueTask_1<IJSObjectReference>;
56
+ InvokeAsync<TValue>(identifier: string, args: (JsValue | null)[] | null): ValueTask_1<TValue>;
57
+ InvokeAsync<TValue>(identifier: string, cancellationToken: CancellationToken, args: (JsValue | null)[] | null): ValueTask_1<TValue>;
58
+ InvokeConstructorAsync(identifier: string, args: (JsValue | null)[] | null): ValueTask_1<IJSObjectReference>;
59
+ InvokeConstructorAsync(identifier: string, cancellationToken: CancellationToken, args: (JsValue | null)[] | null): ValueTask_1<IJSObjectReference>;
62
60
  SetValueAsync<TValue>(identifier: string, value: TValue): ValueTask;
63
61
  SetValueAsync<TValue>(identifier: string, value: TValue, cancellationToken: CancellationToken): ValueTask;
64
62
  }
@@ -2,11 +2,9 @@
2
2
  // Namespace: Microsoft.JSInterop.Infrastructure
3
3
  // Assembly: Microsoft.JSInterop
4
4
 
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';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, 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/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import type { JSCallResultType, JSRuntime } from "../../Microsoft.JSInterop/internal/index.js";
@@ -32,15 +30,15 @@ export type IJSVoidResult = IJSVoidResult$instance;
32
30
  export interface DotNetInvocationInfo$instance {
33
31
  readonly __tsonic_type_Microsoft_JSInterop_Infrastructure_DotNetInvocationInfo: never;
34
32
 
35
- readonly AssemblyName: string | undefined;
36
- readonly CallId: string | undefined;
33
+ readonly AssemblyName: string | null;
34
+ readonly CallId: string | null;
37
35
  readonly DotNetObjectId: long;
38
36
  readonly MethodIdentifier: string;
39
37
  }
40
38
 
41
39
 
42
40
  export const DotNetInvocationInfo: {
43
- new(assemblyName: string, methodIdentifier: string, dotNetObjectId: long, callId: string): DotNetInvocationInfo;
41
+ new(assemblyName: string | null, methodIdentifier: string, dotNetObjectId: long, callId: string | null): DotNetInvocationInfo;
44
42
  };
45
43
 
46
44
 
@@ -49,9 +47,9 @@ export type DotNetInvocationInfo = DotNetInvocationInfo$instance;
49
47
  export interface DotNetInvocationResult$instance {
50
48
  readonly __tsonic_type_Microsoft_JSInterop_Infrastructure_DotNetInvocationResult: never;
51
49
 
52
- readonly ErrorKind: string | undefined;
53
- readonly Exception: Exception | undefined;
54
- readonly ResultJson: string | undefined;
50
+ readonly ErrorKind: string | null;
51
+ readonly Exception: Exception | null;
52
+ readonly ResultJson: string | null;
55
53
  readonly Success: boolean;
56
54
  }
57
55
 
@@ -85,7 +83,7 @@ export type JSInvocationInfo = JSInvocationInfo$instance;
85
83
  export abstract class DotNetDispatcher$instance {
86
84
  static BeginInvokeDotNet(jsRuntime: JSRuntime, invocationInfo: DotNetInvocationInfo, argsJson: string): void;
87
85
  static EndInvokeJS(jsRuntime: JSRuntime, arguments: string): void;
88
- static Invoke(jsRuntime: JSRuntime, invocationInfo: DotNetInvocationInfo, argsJson: string): string | undefined;
86
+ static Invoke(jsRuntime: JSRuntime, invocationInfo: DotNetInvocationInfo, argsJson: string): string | null;
89
87
  static ReceiveByteArray(jsRuntime: JSRuntime, id: int, data: byte[]): void;
90
88
  }
91
89
 
@@ -2,11 +2,9 @@
2
2
  // Namespace: Microsoft.Net.Http.Headers
3
3
  // Assembly: Microsoft.Net.Http.Headers
4
4
 
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';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, 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/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import * as System_Collections_Generic_Internal from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
@@ -47,7 +45,7 @@ export interface CacheControlHeaderValue$instance {
47
45
  Public: boolean;
48
46
  get SharedMaxAge(): Nullable_1<TimeSpan>;
49
47
  set SharedMaxAge(value: Nullable_1<TimeSpan> | TimeSpan);
50
- Equals(obj: unknown): boolean;
48
+ Equals(obj: JsValue | null): boolean;
51
49
  GetHashCode(): int;
52
50
  ToString(): string;
53
51
  }
@@ -68,7 +66,7 @@ export const CacheControlHeaderValue: {
68
66
  readonly MustRevalidateString: string;
69
67
  readonly ProxyRevalidateString: string;
70
68
  Parse(input: StringSegment): CacheControlHeaderValue;
71
- TryParse(input: StringSegment, parsedValue: CacheControlHeaderValue): boolean;
69
+ TryParse(input: StringSegment, parsedValue: CacheControlHeaderValue | null): boolean;
72
70
  };
73
71
 
74
72
 
@@ -90,7 +88,7 @@ export interface ContentDispositionHeaderValue$instance {
90
88
  set ReadDate(value: Nullable_1<DateTimeOffset> | DateTimeOffset);
91
89
  get Size(): Nullable_1<System_Internal.Int64>;
92
90
  set Size(value: Nullable_1<System_Internal.Int64> | long);
93
- Equals(obj: unknown): boolean;
91
+ Equals(obj: JsValue | null): boolean;
94
92
  GetHashCode(): int;
95
93
  SetHttpFileName(fileName: StringSegment): void;
96
94
  SetMimeFileName(fileName: StringSegment): void;
@@ -101,7 +99,7 @@ export interface ContentDispositionHeaderValue$instance {
101
99
  export const ContentDispositionHeaderValue: {
102
100
  new(dispositionType: StringSegment): ContentDispositionHeaderValue;
103
101
  Parse(input: StringSegment): ContentDispositionHeaderValue;
104
- TryParse(input: StringSegment, parsedValue: ContentDispositionHeaderValue): boolean;
102
+ TryParse(input: StringSegment, parsedValue: ContentDispositionHeaderValue | null): boolean;
105
103
  };
106
104
 
107
105
 
@@ -119,7 +117,7 @@ export interface ContentRangeHeaderValue$instance {
119
117
  get To(): Nullable_1<System_Internal.Int64>;
120
118
  set To(value: Nullable_1<System_Internal.Int64> | long);
121
119
  Unit: StringSegment;
122
- Equals(obj: unknown): boolean;
120
+ Equals(obj: JsValue | null): boolean;
123
121
  GetHashCode(): int;
124
122
  ToString(): string;
125
123
  }
@@ -130,7 +128,7 @@ export const ContentRangeHeaderValue: {
130
128
  new(length: long): ContentRangeHeaderValue;
131
129
  new(from: long, to: long): ContentRangeHeaderValue;
132
130
  Parse(input: StringSegment): ContentRangeHeaderValue;
133
- TryParse(input: StringSegment, parsedValue: ContentRangeHeaderValue): boolean;
131
+ TryParse(input: StringSegment, parsedValue: ContentRangeHeaderValue | null): boolean;
134
132
  };
135
133
 
136
134
 
@@ -141,7 +139,7 @@ export interface CookieHeaderValue$instance {
141
139
 
142
140
  Name: StringSegment;
143
141
  Value: StringSegment;
144
- Equals(obj: unknown): boolean;
142
+ Equals(obj: JsValue | null): boolean;
145
143
  GetHashCode(): int;
146
144
  ToString(): string;
147
145
  }
@@ -151,11 +149,11 @@ export const CookieHeaderValue: {
151
149
  new(name: StringSegment): CookieHeaderValue;
152
150
  new(name: StringSegment, value: StringSegment): CookieHeaderValue;
153
151
  Parse(input: StringSegment): CookieHeaderValue;
154
- ParseList(inputs: IList_1<System_Internal.String>): IList_1<CookieHeaderValue>;
155
- ParseStrictList(inputs: IList_1<System_Internal.String>): IList_1<CookieHeaderValue>;
156
- TryParse(input: StringSegment, parsedValue: CookieHeaderValue): boolean;
157
- TryParseList(inputs: IList_1<System_Internal.String>, parsedValues: IList_1<CookieHeaderValue>): boolean;
158
- TryParseStrictList(inputs: IList_1<System_Internal.String>, parsedValues: IList_1<CookieHeaderValue>): boolean;
152
+ ParseList(inputs: IList_1<System_Internal.String> | null): IList_1<CookieHeaderValue>;
153
+ ParseStrictList(inputs: IList_1<System_Internal.String> | null): IList_1<CookieHeaderValue>;
154
+ TryParse(input: StringSegment, parsedValue: CookieHeaderValue | null): boolean;
155
+ TryParseList(inputs: IList_1<System_Internal.String> | null, parsedValues: IList_1<CookieHeaderValue> | null): boolean;
156
+ TryParseStrictList(inputs: IList_1<System_Internal.String> | null, parsedValues: IList_1<CookieHeaderValue> | null): boolean;
159
157
  };
160
158
 
161
159
 
@@ -166,8 +164,8 @@ export interface EntityTagHeaderValue$instance {
166
164
 
167
165
  readonly IsWeak: boolean;
168
166
  readonly Tag: StringSegment;
169
- Compare(other: EntityTagHeaderValue, useStrongComparison: boolean): boolean;
170
- Equals(obj: unknown): boolean;
167
+ Compare(other: EntityTagHeaderValue | null, useStrongComparison: boolean): boolean;
168
+ Equals(obj: JsValue | null): boolean;
171
169
  GetHashCode(): int;
172
170
  ToString(): string;
173
171
  }
@@ -178,11 +176,11 @@ export const EntityTagHeaderValue: {
178
176
  new(tag: StringSegment, isWeak: boolean): EntityTagHeaderValue;
179
177
  readonly Any: EntityTagHeaderValue;
180
178
  Parse(input: StringSegment): EntityTagHeaderValue;
181
- ParseList(inputs: IList_1<System_Internal.String>): IList_1<EntityTagHeaderValue>;
182
- ParseStrictList(inputs: IList_1<System_Internal.String>): IList_1<EntityTagHeaderValue>;
183
- TryParse(input: StringSegment, parsedValue: EntityTagHeaderValue): boolean;
184
- TryParseList(inputs: IList_1<System_Internal.String>, parsedValues: IList_1<EntityTagHeaderValue>): boolean;
185
- TryParseStrictList(inputs: IList_1<System_Internal.String>, parsedValues: IList_1<EntityTagHeaderValue>): boolean;
179
+ ParseList(inputs: IList_1<System_Internal.String> | null): IList_1<EntityTagHeaderValue>;
180
+ ParseStrictList(inputs: IList_1<System_Internal.String> | null): IList_1<EntityTagHeaderValue>;
181
+ TryParse(input: StringSegment, parsedValue: EntityTagHeaderValue | null): boolean;
182
+ TryParseList(inputs: IList_1<System_Internal.String> | null, parsedValues: IList_1<EntityTagHeaderValue> | null): boolean;
183
+ TryParseStrictList(inputs: IList_1<System_Internal.String> | null, parsedValues: IList_1<EntityTagHeaderValue> | null): boolean;
186
184
  };
187
185
 
188
186
 
@@ -193,8 +191,8 @@ export interface MediaTypeHeaderValue$instance {
193
191
 
194
192
  Boundary: StringSegment;
195
193
  Charset: StringSegment;
196
- get Encoding(): Encoding | undefined;
197
- set Encoding(value: Encoding | undefined);
194
+ get Encoding(): Encoding | null;
195
+ set Encoding(value: Encoding | null);
198
196
  readonly Facets: IEnumerable_1<StringSegment>;
199
197
  readonly IsReadOnly: boolean;
200
198
  readonly MatchesAllSubTypes: boolean;
@@ -210,7 +208,7 @@ export interface MediaTypeHeaderValue$instance {
210
208
  readonly Type: StringSegment;
211
209
  Copy(): MediaTypeHeaderValue;
212
210
  CopyAsReadOnly(): MediaTypeHeaderValue;
213
- Equals(obj: unknown): boolean;
211
+ Equals(obj: JsValue | null): boolean;
214
212
  GetHashCode(): int;
215
213
  IsSubsetOf(otherMediaType: MediaTypeHeaderValue): boolean;
216
214
  MatchesMediaType(otherMediaType: StringSegment): boolean;
@@ -222,11 +220,11 @@ export const MediaTypeHeaderValue: {
222
220
  new(mediaType: StringSegment): MediaTypeHeaderValue;
223
221
  new(mediaType: StringSegment, quality: double): MediaTypeHeaderValue;
224
222
  Parse(input: StringSegment): MediaTypeHeaderValue;
225
- ParseList(inputs: IList_1<System_Internal.String>): IList_1<MediaTypeHeaderValue>;
226
- ParseStrictList(inputs: IList_1<System_Internal.String>): IList_1<MediaTypeHeaderValue>;
227
- TryParse(input: StringSegment, parsedValue: MediaTypeHeaderValue): boolean;
228
- TryParseList(inputs: IList_1<System_Internal.String>, parsedValues: IList_1<MediaTypeHeaderValue>): boolean;
229
- TryParseStrictList(inputs: IList_1<System_Internal.String>, parsedValues: IList_1<MediaTypeHeaderValue>): boolean;
223
+ ParseList(inputs: IList_1<System_Internal.String> | null): IList_1<MediaTypeHeaderValue>;
224
+ ParseStrictList(inputs: IList_1<System_Internal.String> | null): IList_1<MediaTypeHeaderValue>;
225
+ TryParse(input: StringSegment, parsedValue: MediaTypeHeaderValue | null): boolean;
226
+ TryParseList(inputs: IList_1<System_Internal.String> | null, parsedValues: IList_1<MediaTypeHeaderValue> | null): boolean;
227
+ TryParseStrictList(inputs: IList_1<System_Internal.String> | null, parsedValues: IList_1<MediaTypeHeaderValue> | null): boolean;
230
228
  };
231
229
 
232
230
 
@@ -237,7 +235,7 @@ export interface MediaTypeHeaderValueComparer$instance {
237
235
 
238
236
  readonly __tsonic_iface_System_Collections_Generic_IComparer_1: never;
239
237
 
240
- Compare(mediaType1: MediaTypeHeaderValue, mediaType2: MediaTypeHeaderValue): int;
238
+ Compare(mediaType1: MediaTypeHeaderValue | null, mediaType2: MediaTypeHeaderValue | null): int;
241
239
  }
242
240
 
243
241
 
@@ -256,7 +254,7 @@ export interface NameValueHeaderValue$instance {
256
254
  Value: StringSegment;
257
255
  Copy(): NameValueHeaderValue;
258
256
  CopyAsReadOnly(): NameValueHeaderValue;
259
- Equals(obj: unknown): boolean;
257
+ Equals(obj: JsValue | null): boolean;
260
258
  GetHashCode(): int;
261
259
  GetUnescapedValue(): StringSegment;
262
260
  SetAndEscapeValue(value: StringSegment): void;
@@ -267,13 +265,13 @@ export interface NameValueHeaderValue$instance {
267
265
  export const NameValueHeaderValue: {
268
266
  new(name: StringSegment): NameValueHeaderValue;
269
267
  new(name: StringSegment, value: StringSegment): NameValueHeaderValue;
270
- Find(values: IList_1<NameValueHeaderValue>, name: StringSegment): NameValueHeaderValue | undefined;
268
+ Find(values: IList_1<NameValueHeaderValue> | null, name: StringSegment): NameValueHeaderValue | null;
271
269
  Parse(input: StringSegment): NameValueHeaderValue;
272
- ParseList(input: IList_1<System_Internal.String>): IList_1<NameValueHeaderValue>;
273
- ParseStrictList(input: IList_1<System_Internal.String>): IList_1<NameValueHeaderValue>;
274
- TryParse(input: StringSegment, parsedValue: NameValueHeaderValue): boolean;
275
- TryParseList(input: IList_1<System_Internal.String>, parsedValues: IList_1<NameValueHeaderValue>): boolean;
276
- TryParseStrictList(input: IList_1<System_Internal.String>, parsedValues: IList_1<NameValueHeaderValue>): boolean;
270
+ ParseList(input: IList_1<System_Internal.String> | null): IList_1<NameValueHeaderValue>;
271
+ ParseStrictList(input: IList_1<System_Internal.String> | null): IList_1<NameValueHeaderValue>;
272
+ TryParse(input: StringSegment, parsedValue: NameValueHeaderValue | null): boolean;
273
+ TryParseList(input: IList_1<System_Internal.String> | null, parsedValues: IList_1<NameValueHeaderValue> | null): boolean;
274
+ TryParseStrictList(input: IList_1<System_Internal.String> | null, parsedValues: IList_1<NameValueHeaderValue> | null): boolean;
277
275
  };
278
276
 
279
277
 
@@ -282,9 +280,9 @@ export type NameValueHeaderValue = NameValueHeaderValue$instance;
282
280
  export interface RangeConditionHeaderValue$instance {
283
281
  readonly __tsonic_type_Microsoft_Net_Http_Headers_RangeConditionHeaderValue: never;
284
282
 
285
- readonly EntityTag: EntityTagHeaderValue | undefined;
283
+ readonly EntityTag: EntityTagHeaderValue | null;
286
284
  readonly LastModified: Nullable_1<DateTimeOffset>;
287
- Equals(obj: unknown): boolean;
285
+ Equals(obj: JsValue | null): boolean;
288
286
  GetHashCode(): int;
289
287
  ToString(): string;
290
288
  }
@@ -293,9 +291,9 @@ export interface RangeConditionHeaderValue$instance {
293
291
  export const RangeConditionHeaderValue: {
294
292
  new(lastModified: DateTimeOffset): RangeConditionHeaderValue;
295
293
  new(entityTag: EntityTagHeaderValue): RangeConditionHeaderValue;
296
- new(entityTag: string): RangeConditionHeaderValue;
294
+ new(entityTag: string | null): RangeConditionHeaderValue;
297
295
  Parse(input: StringSegment): RangeConditionHeaderValue;
298
- TryParse(input: StringSegment, parsedValue: RangeConditionHeaderValue): boolean;
296
+ TryParse(input: StringSegment, parsedValue: RangeConditionHeaderValue | null): boolean;
299
297
  };
300
298
 
301
299
 
@@ -306,7 +304,7 @@ export interface RangeHeaderValue$instance {
306
304
 
307
305
  readonly Ranges: ICollection_1<RangeItemHeaderValue>;
308
306
  Unit: StringSegment;
309
- Equals(obj: unknown): boolean;
307
+ Equals(obj: JsValue | null): boolean;
310
308
  GetHashCode(): int;
311
309
  ToString(): string;
312
310
  }
@@ -316,7 +314,7 @@ export const RangeHeaderValue: {
316
314
  new(): RangeHeaderValue;
317
315
  new(from: Nullable_1<System_Internal.Int64>, to: Nullable_1<System_Internal.Int64>): RangeHeaderValue;
318
316
  Parse(input: StringSegment): RangeHeaderValue;
319
- TryParse(input: StringSegment, parsedValue: RangeHeaderValue): boolean;
317
+ TryParse(input: StringSegment, parsedValue: RangeHeaderValue | null): boolean;
320
318
  };
321
319
 
322
320
 
@@ -327,7 +325,7 @@ export interface RangeItemHeaderValue$instance {
327
325
 
328
326
  readonly From: Nullable_1<System_Internal.Int64>;
329
327
  readonly To: Nullable_1<System_Internal.Int64>;
330
- Equals(obj: unknown): boolean;
328
+ Equals(obj: JsValue | null): boolean;
331
329
  GetHashCode(): int;
332
330
  ToString(): string;
333
331
  }
@@ -356,7 +354,7 @@ export interface SetCookieHeaderValue$instance {
356
354
  Secure: boolean;
357
355
  Value: StringSegment;
358
356
  AppendToStringBuilder(builder: StringBuilder): void;
359
- Equals(obj: unknown): boolean;
357
+ Equals(obj: JsValue | null): boolean;
360
358
  GetHashCode(): int;
361
359
  ToString(): string;
362
360
  }
@@ -366,11 +364,11 @@ export const SetCookieHeaderValue: {
366
364
  new(name: StringSegment): SetCookieHeaderValue;
367
365
  new(name: StringSegment, value: StringSegment): SetCookieHeaderValue;
368
366
  Parse(input: StringSegment): SetCookieHeaderValue;
369
- ParseList(inputs: IList_1<System_Internal.String>): IList_1<SetCookieHeaderValue>;
370
- ParseStrictList(inputs: IList_1<System_Internal.String>): IList_1<SetCookieHeaderValue>;
371
- TryParse(input: StringSegment, parsedValue: SetCookieHeaderValue): boolean;
372
- TryParseList(inputs: IList_1<System_Internal.String>, parsedValues: IList_1<SetCookieHeaderValue>): boolean;
373
- TryParseStrictList(inputs: IList_1<System_Internal.String>, parsedValues: IList_1<SetCookieHeaderValue>): boolean;
367
+ ParseList(inputs: IList_1<System_Internal.String> | null): IList_1<SetCookieHeaderValue>;
368
+ ParseStrictList(inputs: IList_1<System_Internal.String> | null): IList_1<SetCookieHeaderValue>;
369
+ TryParse(input: StringSegment, parsedValue: SetCookieHeaderValue | null): boolean;
370
+ TryParseList(inputs: IList_1<System_Internal.String> | null, parsedValues: IList_1<SetCookieHeaderValue> | null): boolean;
371
+ TryParseStrictList(inputs: IList_1<System_Internal.String> | null, parsedValues: IList_1<SetCookieHeaderValue> | null): boolean;
374
372
  };
375
373
 
376
374
 
@@ -381,7 +379,7 @@ export interface StringWithQualityHeaderValue$instance {
381
379
 
382
380
  readonly Quality: Nullable_1<System_Internal.Double>;
383
381
  readonly Value: StringSegment;
384
- Equals(obj: unknown): boolean;
382
+ Equals(obj: JsValue | null): boolean;
385
383
  GetHashCode(): int;
386
384
  ToString(): string;
387
385
  }
@@ -391,11 +389,11 @@ export const StringWithQualityHeaderValue: {
391
389
  new(value: StringSegment): StringWithQualityHeaderValue;
392
390
  new(value: StringSegment, quality: double): StringWithQualityHeaderValue;
393
391
  Parse(input: StringSegment): StringWithQualityHeaderValue;
394
- ParseList(input: IList_1<System_Internal.String>): IList_1<StringWithQualityHeaderValue>;
395
- ParseStrictList(input: IList_1<System_Internal.String>): IList_1<StringWithQualityHeaderValue>;
396
- TryParse(input: StringSegment, parsedValue: StringWithQualityHeaderValue): boolean;
397
- TryParseList(input: IList_1<System_Internal.String>, parsedValues: IList_1<StringWithQualityHeaderValue>): boolean;
398
- TryParseStrictList(input: IList_1<System_Internal.String>, parsedValues: IList_1<StringWithQualityHeaderValue>): boolean;
392
+ ParseList(input: IList_1<System_Internal.String> | null): IList_1<StringWithQualityHeaderValue>;
393
+ ParseStrictList(input: IList_1<System_Internal.String> | null): IList_1<StringWithQualityHeaderValue>;
394
+ TryParse(input: StringSegment, parsedValue: StringWithQualityHeaderValue | null): boolean;
395
+ TryParseList(input: IList_1<System_Internal.String> | null, parsedValues: IList_1<StringWithQualityHeaderValue> | null): boolean;
396
+ TryParseStrictList(input: IList_1<System_Internal.String> | null, parsedValues: IList_1<StringWithQualityHeaderValue> | null): boolean;
399
397
  };
400
398
 
401
399
 
@@ -406,7 +404,7 @@ export interface StringWithQualityHeaderValueComparer$instance {
406
404
 
407
405
  readonly __tsonic_iface_System_Collections_Generic_IComparer_1: never;
408
406
 
409
- Compare(stringWithQuality1: StringWithQualityHeaderValue, stringWithQuality2: StringWithQualityHeaderValue): int;
407
+ Compare(stringWithQuality1: StringWithQualityHeaderValue | null, stringWithQuality2: StringWithQualityHeaderValue | null): int;
410
408
  }
411
409
 
412
410
 
package/README.md CHANGED
@@ -1,41 +1,42 @@
1
1
  # @tsonic/aspnetcore
2
2
 
3
- TypeScript type definitions for the **`Microsoft.AspNetCore.App` shared framework** for **.NET 10**.
3
+ TypeScript declarations and CLR binding metadata for `Microsoft.AspNetCore.App` on .NET 10.
4
4
 
5
- Generated by `tsbindgen` from the installed .NET shared framework and intended for use with the **Tsonic** compiler (TypeScript → .NET).
5
+ `@tsonic/aspnetcore` is a generated binding package. It exposes ASP.NET Core
6
+ namespace modules to Tsonic while the compiled program references the real
7
+ ASP.NET Core shared framework.
6
8
 
7
- ## What this package is (and isn’t)
8
-
9
- - ✅ TypeScript bindings (`.d.ts`) for ASP.NET Core APIs (Minimal APIs, Http abstractions, hosting, etc.).
10
- - ❌ Not a JavaScript runtime implementation (the `.js` files are module stubs for type-only use).
11
- - ✅ The real assemblies come from your **installed .NET** shared framework (`Microsoft.AspNetCore.App`).
12
-
13
- ## Install (types)
9
+ ## Install
14
10
 
15
11
  ```bash
16
12
  npm install @tsonic/aspnetcore @tsonic/dotnet @tsonic/core
17
13
  ```
18
14
 
19
- ## Use with Tsonic (recommended)
15
+ The package peers against the matching .NET-major `@tsonic/dotnet`,
16
+ `@tsonic/core`, and `@tsonic/microsoft-extensions` packages.
17
+
18
+ ## Use with Tsonic
20
19
 
21
- Add the framework reference in your workspace and (optionally) use this package as the published bindings:
20
+ Add the framework reference and bind it to this type package:
22
21
 
23
22
  ```bash
24
23
  tsonic add framework Microsoft.AspNetCore.App @tsonic/aspnetcore
24
+ tsonic restore
25
25
  ```
26
26
 
27
- If you omit the `@tsonic/aspnetcore` argument, Tsonic will generate bindings locally instead.
27
+ This records the shared-framework reference in `tsonic.workspace.json` and
28
+ uses the published binding package for TypeScript and compiler metadata.
28
29
 
29
30
  ## Imports
30
31
 
31
- Import namespaces via explicit module paths:
32
+ Import ASP.NET Core namespaces through explicit ESM subpaths:
32
33
 
33
34
  ```ts
34
35
  import { WebApplication } from "@tsonic/aspnetcore/Microsoft.AspNetCore.Builder.js";
35
36
  import { HttpContext } from "@tsonic/aspnetcore/Microsoft.AspNetCore.Http.js";
36
37
  ```
37
38
 
38
- ## Example (Minimal API)
39
+ ## Minimal API example
39
40
 
40
41
  ```ts
41
42
  import { WebApplication } from "@tsonic/aspnetcore/Microsoft.AspNetCore.Builder.js";
@@ -50,12 +51,54 @@ export function main(): void {
50
51
  }
51
52
  ```
52
53
 
54
+ ## Package shape
55
+
56
+ The package contains generated namespace facades, ESM stubs, and `bindings.json`
57
+ files:
58
+
59
+ ```text
60
+ @tsonic/aspnetcore/
61
+ Microsoft.AspNetCore.Builder.d.ts
62
+ Microsoft.AspNetCore.Builder.js
63
+ Microsoft.AspNetCore.Builder/
64
+ bindings.json
65
+ internal/index.d.ts
66
+ __internal/extensions/index.d.ts
67
+ families.json
68
+ ```
69
+
70
+ `bindings.json` is compiler metadata, not user-authored configuration. It
71
+ preserves CLR identity, overload families, receiver style, extension methods,
72
+ generic constraints, and nullable semantics for Tsonic.
73
+
53
74
  ## Versioning
54
75
 
55
- This repo is versioned by **.NET major**:
76
+ This repo is versioned by .NET major:
56
77
 
57
78
  - .NET 10 → npm: `@tsonic/aspnetcore@10.x`
58
79
 
80
+ ## Development
81
+
82
+ Regenerate from sibling checkouts:
83
+
84
+ ```bash
85
+ npm install
86
+ ./__build/scripts/generate.sh
87
+ ```
88
+
89
+ The generation script requires:
90
+
91
+ - .NET 10 SDK/runtime
92
+ - `../tsbindgen`
93
+ - `../dotnet`
94
+ - `../microsoft-extensions`
95
+
96
+ For a system .NET install, set `DOTNET_HOME` and `DOTNET_VERSION`:
97
+
98
+ ```bash
99
+ DOTNET_HOME=/usr/lib/dotnet DOTNET_VERSION=10.0.5 ./__build/scripts/generate.sh
100
+ ```
101
+
59
102
  ## License
60
103
 
61
104
  MIT
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.Formats.Cbor
3
3
  // Assembly: System.Formats.Cbor
4
4
 
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';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, 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/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import type { BigInteger } from "@tsonic/dotnet/System.Numerics/internal/index.js";
@@ -85,8 +83,8 @@ export interface CborContentException$instance extends Exception {
85
83
 
86
84
 
87
85
  export const CborContentException: {
88
- new(message: string): CborContentException;
89
- new(message: string, inner: Exception): CborContentException;
86
+ new(message: string | null): CborContentException;
87
+ new(message: string | null, inner: Exception | null): CborContentException;
90
88
  };
91
89
 
92
90
 
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.Security.Claims
3
3
  // Assembly: Microsoft.Extensions.Identity.Core, System.Security.Claims
4
4
 
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';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, 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
9
  // Import types from other namespaces
9
10
  import type { ClaimsPrincipal } from "@tsonic/dotnet/System.Security.Claims/internal/index.js";
@@ -11,7 +12,7 @@ import * as System_Internal from "@tsonic/dotnet/System/internal/index.js";
11
12
  import type { Object as ClrObject, String as ClrString } from "@tsonic/dotnet/System/internal/index.js";
12
13
 
13
14
  export abstract class PrincipalExtensions$instance {
14
- static FindFirstValue(principal: ClaimsPrincipal, claimType: string): string | undefined;
15
+ static FindFirstValue(principal: ClaimsPrincipal, claimType: string): string | null;
15
16
  }
16
17
 
17
18
 
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.Threading.RateLimiting
3
3
  // Assembly: System.Threading.RateLimiting
4
4
 
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';
5
+ // Core type aliases from @tsonic/core
6
+ import type { JsValue, fnptr, ptr, 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/core
9
- import type { ptr } from "@tsonic/core/types.js";
10
8
 
11
9
  // Import types from other namespaces
12
10
  import type { IEnumerable_1, IEqualityComparer_1, KeyValuePair_2 } from "@tsonic/dotnet/System.Collections.Generic/internal/index.js";
@@ -48,7 +46,7 @@ export interface ConcurrencyLimiter$instance extends RateLimiter {
48
46
  Dispose(disposing: boolean): void;
49
47
  Dispose(): void;
50
48
  DisposeAsyncCore(): ValueTask;
51
- GetStatistics(): RateLimiterStatistics | undefined;
49
+ GetStatistics(): RateLimiterStatistics | null;
52
50
  }
53
51
 
54
52
 
@@ -89,7 +87,7 @@ export interface FixedWindowRateLimiter$instance extends ReplenishingRateLimiter
89
87
  Dispose(disposing: boolean): void;
90
88
  Dispose(): void;
91
89
  DisposeAsyncCore(): ValueTask;
92
- GetStatistics(): RateLimiterStatistics | undefined;
90
+ GetStatistics(): RateLimiterStatistics | null;
93
91
  TryReplenish(): boolean;
94
92
  }
95
93
 
@@ -125,8 +123,8 @@ export interface MetadataName_1$instance<T> {
125
123
  readonly __tsonic_iface_System_IEquatable_1: never;
126
124
 
127
125
  readonly Name: string;
128
- Equals(obj: unknown): boolean;
129
- Equals(other: MetadataName_1<T>): boolean;
126
+ Equals(obj: JsValue | null): boolean;
127
+ Equals(other: MetadataName_1<T> | null): boolean;
130
128
  GetHashCode(): int;
131
129
  ToString(): string;
132
130
  }
@@ -153,7 +151,7 @@ export interface PartitionedRateLimiter_1$instance<TResource> {
153
151
  Dispose(): void;
154
152
  DisposeAsync(): ValueTask;
155
153
  DisposeAsyncCore(): ValueTask;
156
- GetStatistics(resource: TResource): RateLimiterStatistics | undefined;
154
+ GetStatistics(resource: TResource): RateLimiterStatistics | null;
157
155
  WithTranslatedKey<TOuter>(keyAdapter: Func_2<TOuter, TResource>, leaveOpen: boolean): PartitionedRateLimiter_1<TOuter>;
158
156
  }
159
157
 
@@ -179,7 +177,7 @@ export interface RateLimiter$instance {
179
177
  Dispose(): void;
180
178
  DisposeAsync(): ValueTask;
181
179
  DisposeAsyncCore(): ValueTask;
182
- GetStatistics(): RateLimiterStatistics | undefined;
180
+ GetStatistics(): RateLimiterStatistics | null;
183
181
  }
184
182
 
185
183
 
@@ -216,8 +214,8 @@ export interface RateLimitLease$instance {
216
214
  readonly MetadataNames: IEnumerable_1<System_Internal.String>;
217
215
  Dispose(): void;
218
216
  Dispose(disposing: boolean): void;
219
- GetAllMetadata(): IEnumerable_1<KeyValuePair_2<System_Internal.String, unknown>>;
220
- TryGetMetadata(metadataName: string, metadata: unknown): boolean;
217
+ GetAllMetadata(): IEnumerable_1<KeyValuePair_2<System_Internal.String, JsValue>>;
218
+ TryGetMetadata(metadataName: string, metadata: JsValue | null): boolean;
221
219
  TryGetMetadata<T>(metadataName: MetadataName_1<T>, metadata: T): boolean;
222
220
  }
223
221
 
@@ -260,7 +258,7 @@ export interface SlidingWindowRateLimiter$instance extends ReplenishingRateLimit
260
258
  Dispose(disposing: boolean): void;
261
259
  Dispose(): void;
262
260
  DisposeAsyncCore(): ValueTask;
263
- GetStatistics(): RateLimiterStatistics | undefined;
261
+ GetStatistics(): RateLimiterStatistics | null;
264
262
  TryReplenish(): boolean;
265
263
  }
266
264
 
@@ -305,7 +303,7 @@ export interface TokenBucketRateLimiter$instance extends ReplenishingRateLimiter
305
303
  Dispose(disposing: boolean): void;
306
304
  Dispose(): void;
307
305
  DisposeAsyncCore(): ValueTask;
308
- GetStatistics(): RateLimiterStatistics | undefined;
306
+ GetStatistics(): RateLimiterStatistics | null;
309
307
  TryReplenish(): boolean;
310
308
  }
311
309
 
@@ -346,7 +344,7 @@ export abstract class MetadataName$instance {
346
344
  export type MetadataName = MetadataName$instance;
347
345
 
348
346
  export abstract class PartitionedRateLimiter$instance {
349
- static Create<TResource, TPartitionKey>(partitioner: Func_2<TResource, RateLimitPartition_1<TPartitionKey>>, equalityComparer?: IEqualityComparer_1<TPartitionKey>): PartitionedRateLimiter_1<TResource>;
347
+ static Create<TResource, TPartitionKey>(partitioner: Func_2<TResource, RateLimitPartition_1<TPartitionKey>>, equalityComparer?: IEqualityComparer_1<TPartitionKey> | null): PartitionedRateLimiter_1<TResource>;
350
348
  static CreateChained<TResource>(...limiters: PartitionedRateLimiter_1<TResource>[]): PartitionedRateLimiter_1<TResource>;
351
349
  }
352
350