@tsonic/dotnet 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/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.Text.Json.Nodes
3
3
  // Assembly: System.Text.Json
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 "../../System.Collections.Generic/internal/index.js";
@@ -44,29 +42,29 @@ export interface JsonArray$instance extends JsonNode {
44
42
  readonly __tsonic_iface_System_Collections_IEnumerable: never;
45
43
 
46
44
  readonly Count: int;
47
- Add<T>(value: T): void;
48
- Add(item: JsonNode): void;
45
+ Add<T>(value: T | null): void;
46
+ Add(item: JsonNode | null): void;
49
47
  Clear(): void;
50
- Contains(item: JsonNode): boolean;
51
- GetEnumerator(): IEnumerator_1<JsonNode | undefined>;
48
+ Contains(item: JsonNode | null): boolean;
49
+ GetEnumerator(): IEnumerator_1<JsonNode | null>;
52
50
  GetValues<T>(): IEnumerable_1<T>;
53
- IndexOf(item: JsonNode): int;
54
- Insert(index: int, item: JsonNode): void;
55
- Remove(item: JsonNode): boolean;
56
- RemoveAll(match: Func_2<JsonNode, System_Internal.Boolean>): int;
51
+ IndexOf(item: JsonNode | null): int;
52
+ Insert(index: int, item: JsonNode | null): void;
53
+ Remove(item: JsonNode | null): boolean;
54
+ RemoveAll(match: Func_2<JsonNode | null, System_Internal.Boolean>): int;
57
55
  RemoveAt(index: int): void;
58
56
  RemoveRange(index: int, count: int): void;
59
- WriteTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions): void;
57
+ WriteTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions | null): void;
60
58
  }
61
59
 
62
60
 
63
61
  export const JsonArray: {
64
62
  new(options: Nullable_1<JsonNodeOptions>): JsonArray;
65
- new(options: JsonNodeOptions, items: JsonNode[]): JsonArray;
63
+ new(options: JsonNodeOptions, items: (JsonNode | null)[]): JsonArray;
66
64
  new(options: JsonNodeOptions, items: ReadOnlySpan_1<JsonNode>): JsonArray;
67
- new(items: JsonNode[]): JsonArray;
65
+ new(items: (JsonNode | null)[]): JsonArray;
68
66
  new(items: ReadOnlySpan_1<JsonNode>): JsonArray;
69
- Create(element: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonArray | undefined;
67
+ Create(element: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonArray | null;
70
68
  };
71
69
 
72
70
 
@@ -84,36 +82,36 @@ export interface JsonNode$instance {
84
82
  readonly __tsonic_type_System_Text_Json_Nodes_JsonNode: never;
85
83
 
86
84
  readonly Options: Nullable_1<JsonNodeOptions>;
87
- get Parent(): JsonNode | undefined;
88
- set Parent(value: JsonNode | undefined);
85
+ get Parent(): JsonNode | null;
86
+ set Parent(value: JsonNode | null);
89
87
  readonly Root: JsonNode;
90
88
  AsArray(): JsonArray;
91
89
  AsObject(): JsonObject;
92
90
  AsValue(): JsonValue;
93
91
  DeepClone(): JsonNode;
94
- get_Item(index: int): JsonNode | undefined;
95
- get_Item(propertyName: string): JsonNode | undefined;
92
+ get_Item(index: int): JsonNode | null;
93
+ get_Item(propertyName: string): JsonNode | null;
96
94
  GetElementIndex(): int;
97
95
  GetPath(): string;
98
96
  GetPropertyName(): string;
99
97
  GetValue<T>(): T;
100
98
  GetValueKind(): JsonValueKind;
101
99
  ReplaceWith<T>(value: T): void;
102
- set_Item(index: int, value: JsonNode | undefined): void;
103
- set_Item(propertyName: string, value: JsonNode | undefined): void;
104
- ToJsonString(options?: JsonSerializerOptions): string;
100
+ set_Item(index: int, value: JsonNode | null): void;
101
+ set_Item(propertyName: string, value: JsonNode | null): void;
102
+ ToJsonString(options?: JsonSerializerOptions | null): string;
105
103
  ToString(): string;
106
- WriteTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions): void;
104
+ WriteTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions | null): void;
107
105
  }
108
106
 
109
107
 
110
108
  export const JsonNode: {
111
- DeepEquals(node1: JsonNode, node2: JsonNode): boolean;
112
- Parse(utf8Json: Stream, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | undefined;
113
- Parse(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | undefined;
114
- Parse(json: string, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | undefined;
115
- Parse(reader: Utf8JsonReader, nodeOptions?: Nullable_1<JsonNodeOptions>): JsonNode | undefined;
116
- ParseAsync(utf8Json: Stream, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions, cancellationToken?: CancellationToken): Task_1<JsonNode | undefined>;
109
+ DeepEquals(node1: JsonNode | null, node2: JsonNode | null): boolean;
110
+ Parse(utf8Json: Stream, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | null;
111
+ Parse(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | null;
112
+ Parse(json: string, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | null;
113
+ Parse(reader: Utf8JsonReader, nodeOptions?: Nullable_1<JsonNodeOptions>): JsonNode | null;
114
+ ParseAsync(utf8Json: Stream, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions, cancellationToken?: CancellationToken): Task_1<JsonNode | null>;
117
115
  };
118
116
 
119
117
 
@@ -129,30 +127,30 @@ export interface JsonObject$instance extends JsonNode {
129
127
  readonly __tsonic_iface_System_Collections_IEnumerable: never;
130
128
 
131
129
  readonly Count: int;
132
- Add(propertyName: string, value: JsonNode): void;
130
+ Add(propertyName: string, value: JsonNode | null): void;
133
131
  Add(property: KeyValuePair_2<System_Internal.String, JsonNode>): void;
134
132
  Clear(): void;
135
133
  ContainsKey(propertyName: string): boolean;
136
134
  GetAt(index: int): KeyValuePair_2<System_Internal.String, JsonNode>;
137
135
  GetEnumerator(): IEnumerator_1<KeyValuePair_2<System_Internal.String, JsonNode>>;
138
136
  IndexOf(propertyName: string): int;
139
- Insert(index: int, propertyName: string, value: JsonNode): void;
137
+ Insert(index: int, propertyName: string, value: JsonNode | null): void;
140
138
  Remove(propertyName: string): boolean;
141
139
  RemoveAt(index: int): void;
142
- SetAt(index: int, propertyName: string, value: JsonNode): void;
143
- SetAt(index: int, value: JsonNode): void;
144
- TryAdd(propertyName: string, value: JsonNode): boolean;
145
- TryAdd(propertyName: string, value: JsonNode, index: int): boolean;
146
- TryGetPropertyValue(propertyName: string, jsonNode: JsonNode): boolean;
147
- TryGetPropertyValue(propertyName: string, jsonNode: JsonNode, index: int): boolean;
148
- WriteTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions): void;
140
+ SetAt(index: int, propertyName: string, value: JsonNode | null): void;
141
+ SetAt(index: int, value: JsonNode | null): void;
142
+ TryAdd(propertyName: string, value: JsonNode | null): boolean;
143
+ TryAdd(propertyName: string, value: JsonNode | null, index: int): boolean;
144
+ TryGetPropertyValue(propertyName: string, jsonNode: JsonNode | null): boolean;
145
+ TryGetPropertyValue(propertyName: string, jsonNode: JsonNode | null, index: int): boolean;
146
+ WriteTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions | null): void;
149
147
  }
150
148
 
151
149
 
152
150
  export const JsonObject: {
153
151
  new(options: Nullable_1<JsonNodeOptions>): JsonObject;
154
152
  new(properties: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsonNode>>, options: Nullable_1<JsonNodeOptions>): JsonObject;
155
- Create(element: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonObject | undefined;
153
+ Create(element: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonObject | null;
156
154
  };
157
155
 
158
156
 
@@ -170,7 +168,7 @@ export type JsonObject = JsonObject$instance & __JsonObject$views;
170
168
  export interface JsonValue$instance extends JsonNode {
171
169
  readonly __tsonic_type_System_Text_Json_Nodes_JsonValue: never;
172
170
 
173
- TryGetValue<T>(value: T): boolean;
171
+ TryGetValue<T>(value: T | null): boolean;
174
172
  }
175
173
 
176
174
 
@@ -186,32 +184,32 @@ export const JsonValue: {
186
184
  Create(value: short, options?: Nullable_1<JsonNodeOptions>): JsonValue;
187
185
  Create(value: int, options?: Nullable_1<JsonNodeOptions>): JsonValue;
188
186
  Create(value: long, options?: Nullable_1<JsonNodeOptions>): JsonValue;
189
- Create(value: Nullable_1<System_Internal.Boolean>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
190
- Create(value: Nullable_1<System_Internal.Byte>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
191
- Create(value: Nullable_1<System_Internal.Char>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
192
- Create(value: Nullable_1<DateTime>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
193
- Create(value: Nullable_1<DateTimeOffset>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
194
- Create(value: Nullable_1<System_Internal.Decimal>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
195
- Create(value: Nullable_1<System_Internal.Double>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
196
- Create(value: Nullable_1<Guid>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
197
- Create(value: Nullable_1<System_Internal.Int16>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
198
- Create(value: Nullable_1<System_Internal.Int32>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
199
- Create(value: Nullable_1<System_Internal.Int64>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
200
- Create(value: Nullable_1<System_Internal.SByte>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
201
- Create(value: Nullable_1<System_Internal.Single>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
202
- Create(value: Nullable_1<JsonElement>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
203
- Create(value: Nullable_1<System_Internal.UInt16>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
204
- Create(value: Nullable_1<System_Internal.UInt32>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
205
- Create(value: Nullable_1<System_Internal.UInt64>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
187
+ Create(value: Nullable_1<System_Internal.Boolean>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
188
+ Create(value: Nullable_1<System_Internal.Byte>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
189
+ Create(value: Nullable_1<System_Internal.Char>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
190
+ Create(value: Nullable_1<DateTime>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
191
+ Create(value: Nullable_1<DateTimeOffset>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
192
+ Create(value: Nullable_1<System_Internal.Decimal>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
193
+ Create(value: Nullable_1<System_Internal.Double>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
194
+ Create(value: Nullable_1<Guid>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
195
+ Create(value: Nullable_1<System_Internal.Int16>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
196
+ Create(value: Nullable_1<System_Internal.Int32>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
197
+ Create(value: Nullable_1<System_Internal.Int64>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
198
+ Create(value: Nullable_1<System_Internal.SByte>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
199
+ Create(value: Nullable_1<System_Internal.Single>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
200
+ Create(value: Nullable_1<JsonElement>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
201
+ Create(value: Nullable_1<System_Internal.UInt16>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
202
+ Create(value: Nullable_1<System_Internal.UInt32>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
203
+ Create(value: Nullable_1<System_Internal.UInt64>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
206
204
  Create(value: sbyte, options?: Nullable_1<JsonNodeOptions>): JsonValue;
207
205
  Create(value: float, options?: Nullable_1<JsonNodeOptions>): JsonValue;
208
- Create(value: string, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
209
- Create(value: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
206
+ Create(value: string | null, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
207
+ Create(value: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
210
208
  Create(value: ushort, options?: Nullable_1<JsonNodeOptions>): JsonValue;
211
209
  Create(value: uint, options?: Nullable_1<JsonNodeOptions>): JsonValue;
212
210
  Create(value: ulong, options?: Nullable_1<JsonNodeOptions>): JsonValue;
213
- Create<T>(value: T, jsonTypeInfo: JsonTypeInfo_1<T>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
214
- Create<T>(value: T, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
211
+ Create<T>(value: T | null, jsonTypeInfo: JsonTypeInfo_1<T>, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
212
+ Create<T>(value: T | null, options?: Nullable_1<JsonNodeOptions>): JsonValue | null;
215
213
  };
216
214
 
217
215
 
@@ -2,8 +2,9 @@
2
2
  // Namespace: System.Text.Json.Schema
3
3
  // Assembly: System.Text.Json
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 { JsonNode } from "../../System.Text.Json.Nodes/internal/index.js";
@@ -15,9 +16,9 @@ import type { Boolean as ClrBoolean, Func_3, Int32, Object as ClrObject, ReadOnl
15
16
  export interface JsonSchemaExporterContext$instance {
16
17
  readonly __tsonic_type_System_Text_Json_Schema_JsonSchemaExporterContext: never;
17
18
 
18
- readonly BaseTypeInfo: JsonTypeInfo | undefined;
19
+ readonly BaseTypeInfo: JsonTypeInfo | null;
19
20
  readonly Path: ReadOnlySpan_1<System_Internal.String>;
20
- readonly PropertyInfo: JsonPropertyInfo | undefined;
21
+ readonly PropertyInfo: JsonPropertyInfo | null;
21
22
  readonly TypeInfo: JsonTypeInfo;
22
23
  }
23
24
 
@@ -32,8 +33,8 @@ export type JsonSchemaExporterContext = JsonSchemaExporterContext$instance;
32
33
  export interface JsonSchemaExporterOptions$instance {
33
34
  readonly __tsonic_type_System_Text_Json_Schema_JsonSchemaExporterOptions: never;
34
35
 
35
- get TransformSchemaNode(): Func_3<JsonSchemaExporterContext, JsonNode, JsonNode> | undefined;
36
- set TransformSchemaNode(value: Func_3<JsonSchemaExporterContext, JsonNode, JsonNode> | undefined);
36
+ get TransformSchemaNode(): Func_3<JsonSchemaExporterContext, JsonNode, JsonNode> | null;
37
+ set TransformSchemaNode(value: Func_3<JsonSchemaExporterContext, JsonNode, JsonNode> | null);
37
38
  TreatNullObliviousAsNonNullable: boolean;
38
39
  }
39
40
 
@@ -47,8 +48,8 @@ export const JsonSchemaExporterOptions: {
47
48
  export type JsonSchemaExporterOptions = JsonSchemaExporterOptions$instance;
48
49
 
49
50
  export abstract class JsonSchemaExporter$instance {
50
- static GetJsonSchemaAsNode(options: JsonSerializerOptions, type: Type, exporterOptions?: JsonSchemaExporterOptions): JsonNode;
51
- static GetJsonSchemaAsNode(typeInfo: JsonTypeInfo, exporterOptions?: JsonSchemaExporterOptions): JsonNode;
51
+ static GetJsonSchemaAsNode(options: JsonSerializerOptions, type: Type, exporterOptions?: JsonSchemaExporterOptions | null): JsonNode;
52
+ static GetJsonSchemaAsNode(typeInfo: JsonTypeInfo, exporterOptions?: JsonSchemaExporterOptions | null): JsonNode;
52
53
  }
53
54
 
54
55
 
@@ -2,11 +2,9 @@
2
2
  // Namespace: System.Text.Json.Serialization
3
3
  // Assembly: System.Text.Json
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_Text_Json_Serialization_Metadata_Internal from "../../System.Text.Json.Serialization.Metadata/internal/index.js";
@@ -146,7 +144,7 @@ export type JsonConstructorAttribute = JsonConstructorAttribute$instance;
146
144
  export interface JsonConverter$instance {
147
145
  readonly __tsonic_type_System_Text_Json_Serialization_JsonConverter: never;
148
146
 
149
- readonly Type: Type | Type | undefined;
147
+ readonly Type: Type | Type | null;
150
148
  CanConvert(typeToConvert: Type): boolean;
151
149
  }
152
150
 
@@ -161,9 +159,9 @@ export interface JsonConverter_1$instance<T> extends JsonConverter {
161
159
  readonly __tsonic_type_System_Text_Json_Serialization_JsonConverter_1: never;
162
160
 
163
161
  readonly HandleNull: boolean;
164
- readonly Type: Type | Type | undefined;
162
+ readonly Type: Type | Type | null;
165
163
  CanConvert(typeToConvert: Type): boolean;
166
- Read(reader: Utf8JsonReader, typeToConvert: Type, options: JsonSerializerOptions): T | undefined;
164
+ Read(reader: Utf8JsonReader, typeToConvert: Type, options: JsonSerializerOptions): T | null;
167
165
  ReadAsPropertyName(reader: Utf8JsonReader, typeToConvert: Type, options: JsonSerializerOptions): T;
168
166
  Write(writer: Utf8JsonWriter, value: T, options: JsonSerializerOptions): void;
169
167
  WriteAsPropertyName(writer: Utf8JsonWriter, value: T, options: JsonSerializerOptions): void;
@@ -179,8 +177,8 @@ export type JsonConverter_1<T> = JsonConverter_1$instance<T>;
179
177
  export interface JsonConverterAttribute$instance extends JsonAttribute {
180
178
  readonly __tsonic_type_System_Text_Json_Serialization_JsonConverterAttribute: never;
181
179
 
182
- readonly ConverterType: Type | undefined;
183
- CreateConverter(typeToConvert: Type): JsonConverter | undefined;
180
+ readonly ConverterType: Type | null;
181
+ CreateConverter(typeToConvert: Type): JsonConverter | null;
184
182
  }
185
183
 
186
184
 
@@ -194,8 +192,8 @@ export type JsonConverterAttribute = JsonConverterAttribute$instance;
194
192
  export interface JsonConverterFactory$instance extends JsonConverter {
195
193
  readonly __tsonic_type_System_Text_Json_Serialization_JsonConverterFactory: never;
196
194
 
197
- readonly Type: Type | undefined;
198
- CreateConverter(typeToConvert: Type, options: JsonSerializerOptions): JsonConverter | undefined;
195
+ readonly Type: Type | null;
196
+ CreateConverter(typeToConvert: Type, options: JsonSerializerOptions): JsonConverter | null;
199
197
  }
200
198
 
201
199
 
@@ -209,7 +207,7 @@ export interface JsonDerivedTypeAttribute$instance extends JsonAttribute {
209
207
  readonly __tsonic_type_System_Text_Json_Serialization_JsonDerivedTypeAttribute: never;
210
208
 
211
209
  readonly DerivedType: Type;
212
- readonly TypeDiscriminator: unknown | undefined;
210
+ readonly TypeDiscriminator: JsValue | null;
213
211
  }
214
212
 
215
213
 
@@ -262,16 +260,16 @@ export const JsonIncludeAttribute: {
262
260
 
263
261
  export type JsonIncludeAttribute = JsonIncludeAttribute$instance;
264
262
 
265
- export interface JsonNumberEnumConverter_1$instance<TEnum extends number> extends JsonConverterFactory {
263
+ export interface JsonNumberEnumConverter_1$instance<TEnum extends number & NonNullable<JsValue>> extends JsonConverterFactory {
266
264
  readonly __tsonic_type_System_Text_Json_Serialization_JsonNumberEnumConverter_1: never;
267
265
 
268
266
  CanConvert(typeToConvert: Type): boolean;
269
- CreateConverter(typeToConvert: Type, options: JsonSerializerOptions): JsonConverter | undefined;
267
+ CreateConverter(typeToConvert: Type, options: JsonSerializerOptions): JsonConverter | null;
270
268
  }
271
269
 
272
270
 
273
271
  export const JsonNumberEnumConverter_1: {
274
- new<TEnum extends number>(): JsonNumberEnumConverter_1<TEnum>;
272
+ new<TEnum extends number & NonNullable<JsValue>>(): JsonNumberEnumConverter_1<TEnum>;
275
273
  };
276
274
 
277
275
 
@@ -309,8 +307,8 @@ export interface JsonPolymorphicAttribute$instance extends JsonAttribute {
309
307
  readonly __tsonic_type_System_Text_Json_Serialization_JsonPolymorphicAttribute: never;
310
308
 
311
309
  IgnoreUnrecognizedTypeDiscriminators: boolean;
312
- get TypeDiscriminatorPropertyName(): string | undefined;
313
- set TypeDiscriminatorPropertyName(value: string | undefined);
310
+ get TypeDiscriminatorPropertyName(): string | null;
311
+ set TypeDiscriminatorPropertyName(value: string | null);
314
312
  UnknownDerivedTypeHandling: JsonUnknownDerivedTypeHandling;
315
313
  }
316
314
 
@@ -367,8 +365,8 @@ export interface JsonSerializableAttribute$instance extends JsonAttribute {
367
365
  readonly __tsonic_type_System_Text_Json_Serialization_JsonSerializableAttribute: never;
368
366
 
369
367
  GenerationMode: JsonSourceGenerationMode;
370
- get TypeInfoPropertyName(): string | undefined;
371
- set TypeInfoPropertyName(value: string | undefined);
368
+ get TypeInfoPropertyName(): string | null;
369
+ set TypeInfoPropertyName(value: string | null);
372
370
  }
373
371
 
374
372
 
@@ -384,13 +382,13 @@ export interface JsonSerializerContext$instance {
384
382
 
385
383
  readonly __tsonic_iface_System_Text_Json_Serialization_Metadata_IJsonTypeInfoResolver: never;
386
384
 
387
- readonly GeneratedSerializerOptions: JsonSerializerOptions | undefined;
385
+ readonly GeneratedSerializerOptions: JsonSerializerOptions | null;
388
386
  readonly Options: JsonSerializerOptions;
389
- GetTypeInfo(type: Type): JsonTypeInfo | undefined;
387
+ GetTypeInfo(type: Type): JsonTypeInfo | null;
390
388
  }
391
389
 
392
390
 
393
- export const JsonSerializerContext: (abstract new(options: JsonSerializerOptions) => JsonSerializerContext) & {
391
+ export const JsonSerializerContext: (abstract new(options: JsonSerializerOptions | null) => JsonSerializerContext) & {
394
392
  };
395
393
 
396
394
 
@@ -407,8 +405,8 @@ export interface JsonSourceGenerationOptionsAttribute$instance extends JsonAttri
407
405
  AllowDuplicateProperties: boolean;
408
406
  AllowOutOfOrderMetadataProperties: boolean;
409
407
  AllowTrailingCommas: boolean;
410
- get Converters(): Type[] | undefined;
411
- set Converters(value: Type[] | undefined);
408
+ get Converters(): Type[] | null;
409
+ set Converters(value: Type[] | null);
412
410
  DefaultBufferSize: int;
413
411
  DefaultIgnoreCondition: JsonIgnoreCondition;
414
412
  DictionaryKeyPolicy: JsonKnownNamingPolicy;
@@ -419,8 +417,8 @@ export interface JsonSourceGenerationOptionsAttribute$instance extends JsonAttri
419
417
  IndentCharacter: char;
420
418
  IndentSize: int;
421
419
  MaxDepth: int;
422
- get NewLine(): string | undefined;
423
- set NewLine(value: string | undefined);
420
+ get NewLine(): string | null;
421
+ set NewLine(value: string | null);
424
422
  NumberHandling: JsonNumberHandling;
425
423
  PreferredObjectCreationHandling: JsonObjectCreationHandling;
426
424
  PropertyNameCaseInsensitive: boolean;
@@ -454,23 +452,23 @@ export interface JsonStringEnumConverter$instance extends JsonConverterFactory {
454
452
 
455
453
  export const JsonStringEnumConverter: {
456
454
  new(): JsonStringEnumConverter;
457
- new(namingPolicy: JsonNamingPolicy, allowIntegerValues: boolean): JsonStringEnumConverter;
455
+ new(namingPolicy: JsonNamingPolicy | null, allowIntegerValues: boolean): JsonStringEnumConverter;
458
456
  };
459
457
 
460
458
 
461
459
  export type JsonStringEnumConverter = JsonStringEnumConverter$instance;
462
460
 
463
- export interface JsonStringEnumConverter_1$instance<TEnum extends number> extends JsonConverterFactory {
461
+ export interface JsonStringEnumConverter_1$instance<TEnum extends number & NonNullable<JsValue>> extends JsonConverterFactory {
464
462
  readonly __tsonic_type_System_Text_Json_Serialization_JsonStringEnumConverter_1: never;
465
463
 
466
464
  CanConvert(typeToConvert: Type): boolean;
467
- CreateConverter(typeToConvert: Type, options: JsonSerializerOptions): JsonConverter | undefined;
465
+ CreateConverter(typeToConvert: Type, options: JsonSerializerOptions): JsonConverter | null;
468
466
  }
469
467
 
470
468
 
471
469
  export const JsonStringEnumConverter_1: {
472
- new<TEnum extends number>(): JsonStringEnumConverter_1<TEnum>;
473
- new<TEnum extends number>(namingPolicy: JsonNamingPolicy, allowIntegerValues: boolean): JsonStringEnumConverter_1<TEnum>;
470
+ new<TEnum extends number & NonNullable<JsValue>>(): JsonStringEnumConverter_1<TEnum>;
471
+ new<TEnum extends number & NonNullable<JsValue>>(namingPolicy: JsonNamingPolicy | null, allowIntegerValues: boolean): JsonStringEnumConverter_1<TEnum>;
474
472
  };
475
473
 
476
474
 
@@ -536,9 +534,9 @@ export type ReferenceHandler_1<T extends ReferenceResolver> = ReferenceHandler_1
536
534
  export interface ReferenceResolver$instance {
537
535
  readonly __tsonic_type_System_Text_Json_Serialization_ReferenceResolver: never;
538
536
 
539
- AddReference(referenceId: string, value: unknown): void;
540
- GetReference(value: unknown, alreadyExists: boolean): string;
541
- ResolveReference(referenceId: string): unknown;
537
+ AddReference(referenceId: string, value: JsValue): void;
538
+ GetReference(value: JsValue, alreadyExists: boolean): string;
539
+ ResolveReference(referenceId: string): JsValue;
542
540
  }
543
541
 
544
542