@tsonic/dotnet 10.0.40 → 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/Internal/internal/index.d.ts +4 -3
  2. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
  3. package/Microsoft.VisualBasic/internal/index.d.ts +52 -54
  4. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +117 -119
  5. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +3 -2
  6. package/Microsoft.Win32/internal/index.d.ts +19 -18
  7. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
  8. package/README.md +76 -104
  9. package/System/bindings.json +1520 -2039
  10. package/System/internal/index.d.ts +1549 -1602
  11. package/System.Buffers/bindings.json +12 -3
  12. package/System.Buffers/internal/index.d.ts +12 -14
  13. package/System.Buffers.Binary/internal/index.d.ts +2 -4
  14. package/System.Buffers.Text/internal/index.d.ts +2 -4
  15. package/System.CodeDom.Compiler/internal/index.d.ts +32 -31
  16. package/System.Collections/internal/index.d.ts +129 -131
  17. package/System.Collections.Concurrent/bindings.json +218 -218
  18. package/System.Collections.Concurrent/internal/index.d.ts +34 -36
  19. package/System.Collections.Frozen/bindings.json +413 -611
  20. package/System.Collections.Frozen/internal/index.d.ts +81 -97
  21. package/System.Collections.Frozen.d.ts +14 -2
  22. package/System.Collections.Generic/bindings.json +9420 -14155
  23. package/System.Collections.Generic/internal/index.d.ts +547 -758
  24. package/System.Collections.Generic.d.ts +1 -1
  25. package/System.Collections.Immutable/bindings.json +6000 -9080
  26. package/System.Collections.Immutable/internal/index.d.ts +265 -354
  27. package/System.Collections.Immutable.d.ts +49 -12
  28. package/System.Collections.ObjectModel/bindings.json +132 -654
  29. package/System.Collections.ObjectModel/internal/index.d.ts +10 -30
  30. package/System.Collections.Specialized/bindings.json +0 -123
  31. package/System.Collections.Specialized/internal/index.d.ts +88 -101
  32. package/System.ComponentModel/bindings.json +163 -102
  33. package/System.ComponentModel/internal/index.d.ts +618 -608
  34. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +133 -132
  35. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
  36. package/System.ComponentModel.Design/bindings.json +22 -292
  37. package/System.ComponentModel.Design/internal/index.d.ts +101 -109
  38. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +61 -60
  39. package/System.ComponentModel.d.ts +1 -0
  40. package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
  41. package/System.Data/bindings.json +4 -1
  42. package/System.Data/internal/index.d.ts +351 -350
  43. package/System.Data.Common/internal/index.d.ts +151 -152
  44. package/System.Data.SqlTypes/internal/index.d.ts +68 -67
  45. package/System.Diagnostics/bindings.json +7044 -7249
  46. package/System.Diagnostics/internal/index.d.ts +446 -461
  47. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
  48. package/System.Diagnostics.Contracts/internal/index.d.ts +16 -18
  49. package/System.Diagnostics.Metrics/internal/index.d.ts +92 -94
  50. package/System.Diagnostics.Metrics.d.ts +1 -1
  51. package/System.Diagnostics.SymbolStore/internal/index.d.ts +12 -11
  52. package/System.Diagnostics.Tracing/bindings.json +81 -21
  53. package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
  54. package/System.Diagnostics.Tracing.d.ts +2 -1
  55. package/System.Drawing/internal/index.d.ts +76 -75
  56. package/System.Dynamic/internal/index.d.ts +55 -57
  57. package/System.Formats.Asn1/bindings.json +48 -69
  58. package/System.Formats.Asn1/internal/index.d.ts +21 -28
  59. package/System.Formats.Tar/internal/index.d.ts +8 -7
  60. package/System.Globalization/internal/index.d.ts +40 -42
  61. package/System.IO/internal/index.d.ts +187 -189
  62. package/System.IO.Compression/internal/index.d.ts +29 -31
  63. package/System.IO.Enumeration/bindings.json +250 -250
  64. package/System.IO.Enumeration/internal/index.d.ts +15 -17
  65. package/System.IO.IsolatedStorage/internal/index.d.ts +19 -18
  66. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
  67. package/System.IO.Pipelines/internal/index.d.ts +15 -17
  68. package/System.IO.Pipes/internal/index.d.ts +8 -7
  69. package/System.Linq/internal/index.d.ts +223 -225
  70. package/System.Linq.Expressions/internal/index.d.ts +205 -207
  71. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
  72. package/System.Net/bindings.json +104 -104
  73. package/System.Net/internal/index.d.ts +279 -281
  74. package/System.Net.Cache/internal/index.d.ts +3 -2
  75. package/System.Net.Http/internal/index.d.ts +128 -130
  76. package/System.Net.Http.Headers/bindings.json +0 -204
  77. package/System.Net.Http.Headers/internal/index.d.ts +111 -127
  78. package/System.Net.Http.Json/internal/index.d.ts +67 -69
  79. package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
  80. package/System.Net.Mail/internal/index.d.ts +76 -78
  81. package/System.Net.Mime/internal/index.d.ts +11 -10
  82. package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
  83. package/System.Net.Quic/internal/index.d.ts +10 -9
  84. package/System.Net.Security/internal/index.d.ts +87 -89
  85. package/System.Net.ServerSentEvents/internal/index.d.ts +6 -5
  86. package/System.Net.Sockets/internal/index.d.ts +91 -93
  87. package/System.Net.WebSockets/internal/index.d.ts +47 -46
  88. package/System.Numerics/bindings.json +544 -116
  89. package/System.Numerics/internal/index.d.ts +110 -112
  90. package/System.Reflection/internal/index.d.ts +270 -272
  91. package/System.Reflection.Emit/internal/index.d.ts +114 -116
  92. package/System.Reflection.Metadata/bindings.json +166 -3169
  93. package/System.Reflection.Metadata/internal/index.d.ts +154 -361
  94. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +13 -15
  95. package/System.Reflection.PortableExecutable/bindings.json +58 -0
  96. package/System.Reflection.PortableExecutable/internal/index.d.ts +24 -11
  97. package/System.Reflection.PortableExecutable.d.ts +1 -0
  98. package/System.Resources/internal/index.d.ts +33 -35
  99. package/System.Runtime/internal/index.d.ts +12 -11
  100. package/System.Runtime.CompilerServices/bindings.json +519 -717
  101. package/System.Runtime.CompilerServices/internal/index.d.ts +113 -137
  102. package/System.Runtime.CompilerServices.d.ts +14 -4
  103. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
  104. package/System.Runtime.ExceptionServices/internal/index.d.ts +4 -3
  105. package/System.Runtime.InteropServices/bindings.json +101 -101
  106. package/System.Runtime.InteropServices/internal/index.d.ts +234 -236
  107. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +34 -36
  108. package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -6
  109. package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
  110. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +67 -69
  111. package/System.Runtime.InteropServices.JavaScript.d.ts +8 -26
  112. package/System.Runtime.InteropServices.Marshalling/bindings.json +2619 -2619
  113. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +308 -310
  114. package/System.Runtime.InteropServices.ObjectiveC/bindings.json +141 -141
  115. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +17 -19
  116. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -6
  117. package/System.Runtime.InteropServices.Swift.d.ts +1 -1
  118. package/System.Runtime.Intrinsics/bindings.json +64 -16
  119. package/System.Runtime.Intrinsics/internal/index.d.ts +22 -24
  120. package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
  121. package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
  122. package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
  123. package/System.Runtime.Loader/bindings.json +48 -69
  124. package/System.Runtime.Loader/internal/index.d.ts +30 -34
  125. package/System.Runtime.Remoting/internal/index.d.ts +5 -4
  126. package/System.Runtime.Serialization/internal/index.d.ts +175 -177
  127. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +29 -31
  128. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
  129. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +10 -9
  130. package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
  131. package/System.Runtime.Versioning/internal/index.d.ts +20 -19
  132. package/System.Security/internal/index.d.ts +64 -66
  133. package/System.Security.AccessControl/bindings.json +104 -0
  134. package/System.Security.AccessControl/internal/index.d.ts +59 -58
  135. package/System.Security.AccessControl.d.ts +6 -5
  136. package/System.Security.Authentication/internal/index.d.ts +7 -6
  137. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
  138. package/System.Security.Claims/internal/index.d.ts +45 -44
  139. package/System.Security.Cryptography/bindings.json +469 -469
  140. package/System.Security.Cryptography/internal/index.d.ts +269 -271
  141. package/System.Security.Cryptography.X509Certificates/bindings.json +0 -62
  142. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +98 -105
  143. package/System.Security.Permissions/internal/index.d.ts +5 -4
  144. package/System.Security.Policy/internal/index.d.ts +11 -10
  145. package/System.Security.Principal/internal/index.d.ts +28 -27
  146. package/System.Text/bindings.json +1562 -1562
  147. package/System.Text/internal/index.d.ts +119 -121
  148. package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
  149. package/System.Text.Json/bindings.json +0 -290
  150. package/System.Text.Json/internal/index.d.ts +135 -153
  151. package/System.Text.Json.Nodes/internal/index.d.ts +60 -62
  152. package/System.Text.Json.Schema/internal/index.d.ts +9 -8
  153. package/System.Text.Json.Serialization/internal/index.d.ts +32 -34
  154. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +86 -85
  155. package/System.Text.Json.Serialization.d.ts +1 -1
  156. package/System.Text.RegularExpressions/bindings.json +198 -402
  157. package/System.Text.RegularExpressions/internal/index.d.ts +48 -64
  158. package/System.Text.Unicode/bindings.json +508 -508
  159. package/System.Text.Unicode/internal/index.d.ts +29 -31
  160. package/System.Threading/bindings.json +42 -42
  161. package/System.Threading/internal/index.d.ts +157 -159
  162. package/System.Threading.Channels/internal/index.d.ts +10 -12
  163. package/System.Threading.Tasks/bindings.json +4 -1
  164. package/System.Threading.Tasks/internal/index.d.ts +115 -114
  165. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +32 -33
  166. package/System.Threading.Tasks.Sources/internal/index.d.ts +6 -5
  167. package/System.Timers/internal/index.d.ts +8 -7
  168. package/System.Transactions/internal/index.d.ts +31 -30
  169. package/System.Web/internal/index.d.ts +32 -31
  170. package/System.Windows.Input/internal/index.d.ts +5 -4
  171. package/System.Windows.Markup/internal/index.d.ts +3 -2
  172. package/System.Xml/internal/index.d.ts +383 -385
  173. package/System.Xml.Linq/internal/index.d.ts +103 -102
  174. package/System.Xml.Resolvers/internal/index.d.ts +10 -9
  175. package/System.Xml.Schema/bindings.json +76 -76
  176. package/System.Xml.Schema/internal/index.d.ts +233 -232
  177. package/System.Xml.Serialization/bindings.json +193 -0
  178. package/System.Xml.Serialization/internal/index.d.ts +277 -245
  179. package/System.Xml.Serialization.d.ts +2 -0
  180. package/System.Xml.XPath/internal/index.d.ts +46 -45
  181. package/System.Xml.Xsl/internal/index.d.ts +53 -52
  182. package/System.Xml.Xsl.Runtime/bindings.json +4 -1
  183. package/System.Xml.Xsl.Runtime/internal/index.d.ts +35 -37
  184. package/System.d.ts +2 -2
  185. package/__internal/extensions/index.d.ts +517 -515
  186. package/families.json +63 -7
  187. package/package.json +2 -2
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.Runtime.InteropServices.JavaScript
3
3
  // Assembly: System.Runtime.InteropServices.JavaScript
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 { IDictionary } from "../../System.Collections/internal/index.js";
@@ -18,12 +16,6 @@ import type { CancellationToken } from "../../System.Threading/internal/index.js
18
16
  import * as System_Internal from "../../System/internal/index.js";
19
17
  import type { Action, Action_1, Action_2, Action_3, ArraySegment_1, AsyncCallback, Attribute, Boolean as ClrBoolean, Byte, Char, DateTime, DateTimeOffset, Delegate, Double, Exception, Func_1, Func_2, Func_3, Func_4, IAsyncResult, ICloneable, IDisposable, Int16, Int32, Int64, IntPtr, MulticastDelegate, Nullable_1, Object as ClrObject, ReadOnlySpan_1, Single, Span_1, String as ClrString, Type, ValueType, Void } from "../../System/internal/index.js";
20
18
 
21
- export type JSMarshalerArgument_ArgumentToJSCallback_1<T> = (arg: JSMarshalerArgument, value: T) => void;
22
-
23
-
24
- export type JSMarshalerArgument_ArgumentToManagedCallback_1<T> = (arg: JSMarshalerArgument, value: T) => void;
25
-
26
-
27
19
  export interface JSMarshalerArgument$instance {
28
20
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSMarshalerArgument: never;
29
21
 
@@ -32,44 +24,44 @@ export interface JSMarshalerArgument$instance {
32
24
  ToJS(value: Nullable_1<System_Internal.Boolean>): void;
33
25
  ToJS(value: byte): void;
34
26
  ToJS(value: Nullable_1<System_Internal.Byte>): void;
35
- ToJS(value: byte[]): void;
27
+ ToJS(value: byte[] | null): void;
36
28
  ToJS(value: char): void;
37
29
  ToJS(value: Nullable_1<System_Internal.Char>): void;
38
30
  ToJS(value: short): void;
39
31
  ToJS(value: Nullable_1<System_Internal.Int16>): void;
40
32
  ToJS(value: int): void;
41
33
  ToJS(value: Nullable_1<System_Internal.Int32>): void;
42
- ToJS(value: int[]): void;
34
+ ToJS(value: int[] | null): void;
43
35
  ToJS(value: long): void;
44
36
  ToJS(value: Nullable_1<System_Internal.Int64>): void;
45
37
  ToJS(value: float): void;
46
38
  ToJS(value: Nullable_1<System_Internal.Single>): void;
47
39
  ToJS(value: double): void;
48
40
  ToJS(value: Nullable_1<System_Internal.Double>): void;
49
- ToJS(value: double[]): void;
41
+ ToJS(value: double[] | null): void;
50
42
  ToJS(value: nint): void;
51
43
  ToJS(value: Nullable_1<System_Internal.IntPtr>): void;
52
44
  ToJS(value: DateTimeOffset): void;
53
45
  ToJS(value: Nullable_1<DateTimeOffset>): void;
54
46
  ToJS(value: DateTime): void;
55
47
  ToJS(value: Nullable_1<DateTime>): void;
56
- ToJS(value: string): void;
57
- ToJS(value: string[]): void;
58
- ToJS(value: Exception): void;
59
- ToJS(value: unknown): void;
60
- ToJS(value: unknown[]): void;
61
- ToJS(value: JSObject): void;
62
- ToJS(value: JSObject[]): void;
63
- ToJS(value: Task): void;
64
- ToJS<T>(value: Task_1<T>, marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T>): void;
65
- ToJS(value: Action): void;
66
- ToJS<T>(value: Action_1<T>, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T>): void;
67
- ToJS<T1, T2>(value: Action_2<T1, T2>, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T2>): void;
68
- ToJS<T1, T2, T3>(value: Action_3<T1, T2, T3>, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T2>, arg3Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T3>): void;
69
- ToJS<TResult>(value: Func_1<TResult>, resMarshaler: JSMarshalerArgument_ArgumentToJSCallback_1<TResult>): void;
70
- ToJS<T, TResult>(value: Func_2<T, TResult>, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T>, resMarshaler: JSMarshalerArgument_ArgumentToJSCallback_1<TResult>): void;
71
- ToJS<T1, T2, TResult>(value: Func_3<T1, T2, TResult>, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T2>, resMarshaler: JSMarshalerArgument_ArgumentToJSCallback_1<TResult>): void;
72
- ToJS<T1, T2, T3, TResult>(value: Func_4<T1, T2, T3, TResult>, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T2>, arg3Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T3>, resMarshaler: JSMarshalerArgument_ArgumentToJSCallback_1<TResult>): void;
48
+ ToJS(value: string | null): void;
49
+ ToJS(value: (string | null)[] | null): void;
50
+ ToJS(value: Exception | null): void;
51
+ ToJS(value: JsValue | null): void;
52
+ ToJS(value: (JsValue | null)[] | null): void;
53
+ ToJS(value: JSObject | null): void;
54
+ ToJS(value: (JSObject | null)[] | null): void;
55
+ ToJS(value: Task | null): void;
56
+ ToJS<T>(value: Task_1<T> | null, marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T>): void;
57
+ ToJS(value: Action | null): void;
58
+ ToJS<T>(value: Action_1<T> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T>): void;
59
+ ToJS<T1, T2>(value: Action_2<T1, T2> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T2>): void;
60
+ ToJS<T1, T2, T3>(value: Action_3<T1, T2, T3> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T2>, arg3Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T3>): void;
61
+ ToJS<TResult>(value: Func_1<TResult> | null, resMarshaler: JSMarshalerArgument_ArgumentToJSCallback_1<TResult>): void;
62
+ ToJS<T, TResult>(value: Func_2<T, TResult> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T>, resMarshaler: JSMarshalerArgument_ArgumentToJSCallback_1<TResult>): void;
63
+ ToJS<T1, T2, TResult>(value: Func_3<T1, T2, TResult> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T2>, resMarshaler: JSMarshalerArgument_ArgumentToJSCallback_1<TResult>): void;
64
+ ToJS<T1, T2, T3, TResult>(value: Func_4<T1, T2, T3, TResult> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T2>, arg3Marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T3>, resMarshaler: JSMarshalerArgument_ArgumentToJSCallback_1<TResult>): void;
73
65
  ToJS(value: ptr<void>): void;
74
66
  ToJS(value: Span_1<System_Internal.Byte>): void;
75
67
  ToJS(value: ArraySegment_1<System_Internal.Byte>): void;
@@ -83,44 +75,44 @@ export interface JSMarshalerArgument$instance {
83
75
  ToManaged(value: Nullable_1<System_Internal.Boolean>): void;
84
76
  ToManaged(value: byte): void;
85
77
  ToManaged(value: Nullable_1<System_Internal.Byte>): void;
86
- ToManaged(value: byte[]): void;
78
+ ToManaged(value: byte[] | null): void;
87
79
  ToManaged(value: char): void;
88
80
  ToManaged(value: Nullable_1<System_Internal.Char>): void;
89
81
  ToManaged(value: short): void;
90
82
  ToManaged(value: Nullable_1<System_Internal.Int16>): void;
91
83
  ToManaged(value: int): void;
92
84
  ToManaged(value: Nullable_1<System_Internal.Int32>): void;
93
- ToManaged(value: int[]): void;
85
+ ToManaged(value: int[] | null): void;
94
86
  ToManaged(value: long): void;
95
87
  ToManaged(value: Nullable_1<System_Internal.Int64>): void;
96
88
  ToManaged(value: float): void;
97
89
  ToManaged(value: Nullable_1<System_Internal.Single>): void;
98
90
  ToManaged(value: double): void;
99
91
  ToManaged(value: Nullable_1<System_Internal.Double>): void;
100
- ToManaged(value: double[]): void;
92
+ ToManaged(value: double[] | null): void;
101
93
  ToManaged(value: nint): void;
102
94
  ToManaged(value: Nullable_1<System_Internal.IntPtr>): void;
103
95
  ToManaged(value: DateTimeOffset): void;
104
96
  ToManaged(value: Nullable_1<DateTimeOffset>): void;
105
97
  ToManaged(value: DateTime): void;
106
98
  ToManaged(value: Nullable_1<DateTime>): void;
107
- ToManaged(value: string): void;
108
- ToManaged(value: string[]): void;
109
- ToManaged(value: Exception): void;
110
- ToManaged(value: unknown): void;
111
- ToManaged(value: unknown[]): void;
112
- ToManaged(value: JSObject): void;
113
- ToManaged(value: JSObject[]): void;
114
- ToManaged(value: Task): void;
115
- ToManaged<T>(value: Task_1<T>, marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T>): void;
116
- ToManaged(value: Action): void;
117
- ToManaged<T>(value: Action_1<T>, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T>): void;
118
- ToManaged<T1, T2>(value: Action_2<T1, T2>, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T2>): void;
119
- ToManaged<T1, T2, T3>(value: Action_3<T1, T2, T3>, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T2>, arg3Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T3>): void;
120
- ToManaged<TResult>(value: Func_1<TResult>, resMarshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<TResult>): void;
121
- ToManaged<T, TResult>(value: Func_2<T, TResult>, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T>, resMarshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<TResult>): void;
122
- ToManaged<T1, T2, TResult>(value: Func_3<T1, T2, TResult>, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T2>, resMarshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<TResult>): void;
123
- ToManaged<T1, T2, T3, TResult>(value: Func_4<T1, T2, T3, TResult>, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T2>, arg3Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T3>, resMarshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<TResult>): void;
99
+ ToManaged(value: string | null): void;
100
+ ToManaged(value: (string | null)[] | null): void;
101
+ ToManaged(value: Exception | null): void;
102
+ ToManaged(value: JsValue | null): void;
103
+ ToManaged(value: (JsValue | null)[] | null): void;
104
+ ToManaged(value: JSObject | null): void;
105
+ ToManaged(value: (JSObject | null)[] | null): void;
106
+ ToManaged(value: Task | null): void;
107
+ ToManaged<T>(value: Task_1<T> | null, marshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<T>): void;
108
+ ToManaged(value: Action | null): void;
109
+ ToManaged<T>(value: Action_1<T> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T>): void;
110
+ ToManaged<T1, T2>(value: Action_2<T1, T2> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T2>): void;
111
+ ToManaged<T1, T2, T3>(value: Action_3<T1, T2, T3> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T2>, arg3Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T3>): void;
112
+ ToManaged<TResult>(value: Func_1<TResult> | null, resMarshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<TResult>): void;
113
+ ToManaged<T, TResult>(value: Func_2<T, TResult> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T>, resMarshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<TResult>): void;
114
+ ToManaged<T1, T2, TResult>(value: Func_3<T1, T2, TResult> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T2>, resMarshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<TResult>): void;
115
+ ToManaged<T1, T2, T3, TResult>(value: Func_4<T1, T2, T3, TResult> | null, arg1Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T1>, arg2Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T2>, arg3Marshaler: JSMarshalerArgument_ArgumentToJSCallback_1<T3>, resMarshaler: JSMarshalerArgument_ArgumentToManagedCallback_1<TResult>): void;
124
116
  ToManaged(value: ptr<void>): void;
125
117
  ToManaged(value: Span_1<System_Internal.Byte>): void;
126
118
  ToManaged(value: ArraySegment_1<System_Internal.Byte>): void;
@@ -140,6 +132,12 @@ export const JSMarshalerArgument: {
140
132
 
141
133
  export type JSMarshalerArgument = JSMarshalerArgument$instance;
142
134
 
135
+ export type JSMarshalerArgument_ArgumentToJSCallback_1<T> = (arg: JSMarshalerArgument, value: T) => void;
136
+
137
+
138
+ export type JSMarshalerArgument_ArgumentToManagedCallback_1<T> = (arg: JSMarshalerArgument, value: T) => void;
139
+
140
+
143
141
  export interface JSException$instance extends Exception, System_Runtime_Serialization_Internal.ISerializable$instance {
144
142
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSException: never;
145
143
 
@@ -192,7 +190,7 @@ export interface JSImportAttribute$instance extends Attribute {
192
190
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSImportAttribute: never;
193
191
 
194
192
  readonly FunctionName: string;
195
- readonly ModuleName: string | undefined;
193
+ readonly ModuleName: string | null;
196
194
  }
197
195
 
198
196
 
@@ -269,19 +267,19 @@ export interface JSObject$instance extends System_Internal.IDisposable$instance
269
267
  readonly IsDisposed: boolean;
270
268
  Dispose(): void;
271
269
  GetPropertyAsBoolean(propertyName: string): boolean;
272
- GetPropertyAsByteArray(propertyName: string): byte[] | undefined;
270
+ GetPropertyAsByteArray(propertyName: string): byte[] | null;
273
271
  GetPropertyAsDouble(propertyName: string): double;
274
272
  GetPropertyAsInt32(propertyName: string): int;
275
- GetPropertyAsJSObject(propertyName: string): JSObject | undefined;
276
- GetPropertyAsString(propertyName: string): string | undefined;
273
+ GetPropertyAsJSObject(propertyName: string): JSObject | null;
274
+ GetPropertyAsString(propertyName: string): string | null;
277
275
  GetTypeOfProperty(propertyName: string): string;
278
276
  HasProperty(propertyName: string): boolean;
279
277
  SetProperty(propertyName: string, value: boolean): void;
280
278
  SetProperty(propertyName: string, value: int): void;
281
279
  SetProperty(propertyName: string, value: double): void;
282
- SetProperty(propertyName: string, value: string): void;
283
- SetProperty(propertyName: string, value: JSObject): void;
284
- SetProperty(propertyName: string, value: byte[]): void;
280
+ SetProperty(propertyName: string, value: string | null): void;
281
+ SetProperty(propertyName: string, value: JSObject | null): void;
282
+ SetProperty(propertyName: string, value: byte[] | null): void;
285
283
  }
286
284
 
287
285
 
@@ -320,7 +318,7 @@ export const JSType_Any: {
320
318
 
321
319
  export type JSType_Any = JSType_Any$instance;
322
320
 
323
- export interface JSType_Array_1$instance<T extends JSType> extends JSType {
321
+ export interface JSType_Array_1$instance<T> extends JSType {
324
322
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSType_Array_1: never;
325
323
 
326
324
  }
@@ -330,7 +328,7 @@ export const JSType_Array_1: {
330
328
  };
331
329
 
332
330
 
333
- export type JSType_Array_1<T extends JSType> = JSType_Array_1$instance<T>;
331
+ export type JSType_Array_1<T> = JSType_Array_1$instance<T>;
334
332
 
335
333
  export interface JSType_BigInt$instance extends JSType {
336
334
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSType_BigInt: never;
@@ -404,7 +402,7 @@ export const JSType_Function: {
404
402
 
405
403
  export type JSType_Function = JSType_Function$instance;
406
404
 
407
- export interface JSType_Function_1$instance<T extends JSType> extends JSType {
405
+ export interface JSType_Function_1$instance<T> extends JSType {
408
406
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSType_Function_1: never;
409
407
 
410
408
  }
@@ -414,9 +412,9 @@ export const JSType_Function_1: {
414
412
  };
415
413
 
416
414
 
417
- export type JSType_Function_1<T extends JSType> = JSType_Function_1$instance<T>;
415
+ export type JSType_Function_1<T> = JSType_Function_1$instance<T>;
418
416
 
419
- export interface JSType_Function_2$instance<T1 extends JSType, T2 extends JSType> extends JSType {
417
+ export interface JSType_Function_2$instance<T1, T2> extends JSType {
420
418
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSType_Function_2: never;
421
419
 
422
420
  }
@@ -426,9 +424,9 @@ export const JSType_Function_2: {
426
424
  };
427
425
 
428
426
 
429
- export type JSType_Function_2<T1 extends JSType, T2 extends JSType> = JSType_Function_2$instance<T1, T2>;
427
+ export type JSType_Function_2<T1, T2> = JSType_Function_2$instance<T1, T2>;
430
428
 
431
- export interface JSType_Function_3$instance<T1 extends JSType, T2 extends JSType, T3 extends JSType> extends JSType {
429
+ export interface JSType_Function_3$instance<T1, T2, T3> extends JSType {
432
430
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSType_Function_3: never;
433
431
 
434
432
  }
@@ -438,9 +436,9 @@ export const JSType_Function_3: {
438
436
  };
439
437
 
440
438
 
441
- export type JSType_Function_3<T1 extends JSType, T2 extends JSType, T3 extends JSType> = JSType_Function_3$instance<T1, T2, T3>;
439
+ export type JSType_Function_3<T1, T2, T3> = JSType_Function_3$instance<T1, T2, T3>;
442
440
 
443
- export interface JSType_Function_4$instance<T1 extends JSType, T2 extends JSType, T3 extends JSType, T4 extends JSType> extends JSType {
441
+ export interface JSType_Function_4$instance<T1, T2, T3, T4> extends JSType {
444
442
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSType_Function_4: never;
445
443
 
446
444
  }
@@ -450,7 +448,7 @@ export const JSType_Function_4: {
450
448
  };
451
449
 
452
450
 
453
- export type JSType_Function_4<T1 extends JSType, T2 extends JSType, T3 extends JSType, T4 extends JSType> = JSType_Function_4$instance<T1, T2, T3, T4>;
451
+ export type JSType_Function_4<T1, T2, T3, T4> = JSType_Function_4$instance<T1, T2, T3, T4>;
454
452
 
455
453
  export interface JSType_MemoryView$instance extends JSType {
456
454
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSType_MemoryView: never;
@@ -488,7 +486,7 @@ export const JSType_Object: {
488
486
 
489
487
  export type JSType_Object = JSType_Object$instance;
490
488
 
491
- export interface JSType_Promise_1$instance<T extends JSType> extends JSType {
489
+ export interface JSType_Promise_1$instance<T> extends JSType {
492
490
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSType_Promise_1: never;
493
491
 
494
492
  }
@@ -498,7 +496,7 @@ export const JSType_Promise_1: {
498
496
  };
499
497
 
500
498
 
501
- export type JSType_Promise_1<T extends JSType> = JSType_Promise_1$instance<T>;
499
+ export type JSType_Promise_1<T> = JSType_Promise_1$instance<T>;
502
500
 
503
501
  export interface JSType_String$instance extends JSType {
504
502
  readonly __tsonic_type_System_Runtime_InteropServices_JavaScript_JSType_String: never;
@@ -18,12 +18,6 @@ export { JSImportAttribute as JSImportAttribute } from './System.Runtime.Interop
18
18
  export { JSExportAttribute as JSExportAttribute } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
19
19
  export { JSMarshalAsAttribute_1 as JSMarshalAsAttribute } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
20
20
  export { JSType as JSType } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
21
- export { JSObject as JSObject } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
22
- export { JSException as JSException } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
23
- export { JSHost$instance as JSHost } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
24
- export { JSFunctionBinding as JSFunctionBinding } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
25
- export { JSMarshalerType as JSMarshalerType } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
26
- export { JSMarshalerArgument as JSMarshalerArgument } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
27
21
  export { JSType_Void as JSType_Void } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
28
22
  export { JSType_Discard as JSType_Discard } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
29
23
  export { JSType_Boolean as JSType_Boolean } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
@@ -36,26 +30,14 @@ export { JSType_Error as JSType_Error } from './System.Runtime.InteropServices.J
36
30
  export { JSType_MemoryView as JSType_MemoryView } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
37
31
  export { JSType_Array_1 as JSType_Array } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
38
32
  export { JSType_Promise_1 as JSType_Promise } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
33
+ export { JSType_Function as JSType_Function_0 } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
34
+ export { JSType_Function_1 as JSType_Function } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
39
35
  export { JSType_Any as JSType_Any } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
36
+ export { JSObject as JSObject } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
37
+ export { JSException as JSException } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
38
+ export { JSHost$instance as JSHost } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
39
+ export { JSFunctionBinding as JSFunctionBinding } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
40
+ export { JSMarshalerType as JSMarshalerType } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
41
+ export { JSMarshalerArgument as JSMarshalerArgument } from './System.Runtime.InteropServices.JavaScript/internal/index.js';
40
42
  export type JSMarshalerArgument_ArgumentToManagedCallback<T> = Internal.JSMarshalerArgument_ArgumentToManagedCallback_1<T>;
41
43
  export type JSMarshalerArgument_ArgumentToJSCallback<T> = Internal.JSMarshalerArgument_ArgumentToJSCallback_1<T>;
42
-
43
- // Multi-arity family value exports (arity-0 constructors/static namespaces)
44
- export const JSType_Function: typeof Internal.JSType_Function;
45
-
46
- // Multi-arity family sentinel (detects unspecified type parameters)
47
- declare const __unspecified: unique symbol;
48
- export type __ = typeof __unspecified;
49
-
50
- export type JSType_Function<
51
- T1 = __,
52
- T2 = __,
53
- T3 = __,
54
- T4 = __,
55
- > =
56
- [T1] extends [__] ? Internal.JSType_Function :
57
- [T2] extends [__] ? [T1] extends [Internal.JSType] ? Internal.JSType_Function_1<T1> : never :
58
- [T3] extends [__] ? [T1] extends [Internal.JSType] ? [T2] extends [Internal.JSType] ? Internal.JSType_Function_2<T1, T2> : never : never :
59
- [T4] extends [__] ? [T1] extends [Internal.JSType] ? [T2] extends [Internal.JSType] ? [T3] extends [Internal.JSType] ? Internal.JSType_Function_3<T1, T2, T3> : never : never : never :
60
- [T1] extends [Internal.JSType] ? [T2] extends [Internal.JSType] ? [T3] extends [Internal.JSType] ? [T4] extends [Internal.JSType] ? Internal.JSType_Function_4<T1, T2, T3, T4> : never : never : never : never;
61
-