@tsonic/dotnet 0.8.0 → 0.8.2

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 (137) hide show
  1. package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +21 -21
  2. package/Microsoft.VisualBasic/internal/index.d.ts +24 -24
  3. package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +30 -30
  4. package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +16 -16
  5. package/Microsoft.Win32/internal/index.d.ts +12 -12
  6. package/Microsoft.Win32.SafeHandles/internal/index.d.ts +19 -19
  7. package/System/bindings.json +114 -114
  8. package/System/internal/index.d.ts +1277 -1289
  9. package/System/internal/metadata.json +73 -73
  10. package/System.Buffers/internal/index.d.ts +13 -13
  11. package/System.CodeDom.Compiler/internal/index.d.ts +13 -13
  12. package/System.Collections/internal/index.d.ts +66 -68
  13. package/System.Collections.Concurrent/internal/index.d.ts +24 -24
  14. package/System.Collections.Frozen/bindings.json +20 -20
  15. package/System.Collections.Frozen/internal/index.d.ts +10 -10
  16. package/System.Collections.Frozen/internal/metadata.json +10 -10
  17. package/System.Collections.Generic/bindings.json +44 -20
  18. package/System.Collections.Generic/internal/index.d.ts +141 -133
  19. package/System.Collections.Generic/internal/metadata.json +26 -10
  20. package/System.Collections.Immutable/internal/index.d.ts +121 -121
  21. package/System.Collections.ObjectModel/internal/index.d.ts +23 -23
  22. package/System.Collections.Specialized/internal/index.d.ts +85 -87
  23. package/System.ComponentModel/internal/index.d.ts +595 -597
  24. package/System.ComponentModel.DataAnnotations/internal/index.d.ts +105 -105
  25. package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +9 -9
  26. package/System.ComponentModel.Design/internal/index.d.ts +90 -90
  27. package/System.ComponentModel.Design.Serialization/internal/index.d.ts +37 -37
  28. package/System.Data/internal/index.d.ts +225 -225
  29. package/System.Data.Common/internal/index.d.ts +62 -62
  30. package/System.Data.SqlTypes/internal/index.d.ts +73 -73
  31. package/System.Diagnostics/internal/index.d.ts +343 -343
  32. package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +50 -50
  33. package/System.Diagnostics.Contracts/internal/index.d.ts +20 -20
  34. package/System.Diagnostics.Metrics/internal/index.d.ts +46 -46
  35. package/System.Diagnostics.SymbolStore/internal/index.d.ts +9 -9
  36. package/System.Diagnostics.Tracing/internal/index.d.ts +44 -44
  37. package/System.Drawing/internal/index.d.ts +99 -99
  38. package/System.Dynamic/internal/index.d.ts +33 -33
  39. package/System.Formats.Asn1/internal/index.d.ts +12 -12
  40. package/System.Formats.Tar/internal/index.d.ts +17 -17
  41. package/System.Globalization/internal/index.d.ts +51 -51
  42. package/System.IO/internal/index.d.ts +172 -172
  43. package/System.IO.Compression/internal/index.d.ts +56 -56
  44. package/System.IO.Enumeration/internal/index.d.ts +6 -6
  45. package/System.IO.IsolatedStorage/internal/index.d.ts +17 -17
  46. package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -11
  47. package/System.IO.Pipelines/internal/index.d.ts +13 -13
  48. package/System.IO.Pipes/internal/index.d.ts +32 -32
  49. package/System.Linq/internal/index.d.ts +187 -187
  50. package/System.Linq.Expressions/internal/index.d.ts +203 -203
  51. package/System.Linq.Expressions.Interpreter/internal/index.d.ts +3 -3
  52. package/System.Net/internal/index.d.ts +218 -220
  53. package/System.Net.Cache/internal/index.d.ts +10 -10
  54. package/System.Net.Http/internal/index.d.ts +89 -89
  55. package/System.Net.Http.Headers/internal/index.d.ts +86 -86
  56. package/System.Net.Http.Json/internal/index.d.ts +59 -59
  57. package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
  58. package/System.Net.Mail/internal/index.d.ts +92 -92
  59. package/System.Net.Mime/internal/index.d.ts +6 -6
  60. package/System.Net.NetworkInformation/internal/index.d.ts +39 -39
  61. package/System.Net.Quic/internal/index.d.ts +13 -13
  62. package/System.Net.Security/internal/index.d.ts +70 -70
  63. package/System.Net.ServerSentEvents/internal/index.d.ts +3 -3
  64. package/System.Net.Sockets/internal/index.d.ts +94 -94
  65. package/System.Net.WebSockets/internal/index.d.ts +46 -46
  66. package/System.Numerics/bindings.json +384 -0
  67. package/System.Numerics/internal/index.d.ts +128 -130
  68. package/System.Numerics/internal/metadata.json +256 -0
  69. package/System.Reflection/internal/index.d.ts +271 -271
  70. package/System.Reflection.Emit/internal/index.d.ts +123 -123
  71. package/System.Reflection.Metadata/bindings.json +48 -0
  72. package/System.Reflection.Metadata/internal/index.d.ts +179 -179
  73. package/System.Reflection.Metadata/internal/metadata.json +32 -0
  74. package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +40 -40
  75. package/System.Reflection.PortableExecutable/internal/index.d.ts +26 -26
  76. package/System.Resources/internal/index.d.ts +38 -38
  77. package/System.Runtime/internal/index.d.ts +9 -9
  78. package/System.Runtime.CompilerServices/internal/index.d.ts +168 -168
  79. package/System.Runtime.ConstrainedExecution/internal/index.d.ts +2 -2
  80. package/System.Runtime.ExceptionServices/internal/index.d.ts +3 -3
  81. package/System.Runtime.InteropServices/bindings.json +22 -22
  82. package/System.Runtime.InteropServices/internal/index.d.ts +184 -184
  83. package/System.Runtime.InteropServices/internal/metadata.json +13 -13
  84. package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +30 -30
  85. package/System.Runtime.InteropServices.Java/internal/index.d.ts +3 -3
  86. package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +50 -50
  87. package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +63 -63
  88. package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +1 -1
  89. package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
  90. package/System.Runtime.Intrinsics/internal/index.d.ts +4 -4
  91. package/System.Runtime.Loader/internal/index.d.ts +9 -9
  92. package/System.Runtime.Remoting/internal/index.d.ts +2 -2
  93. package/System.Runtime.Serialization/internal/index.d.ts +113 -115
  94. package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +19 -19
  95. package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
  96. package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -5
  97. package/System.Runtime.Serialization.Json/internal/index.d.ts +28 -28
  98. package/System.Runtime.Versioning/internal/index.d.ts +22 -22
  99. package/System.Security/internal/index.d.ts +63 -63
  100. package/System.Security.AccessControl/internal/index.d.ts +84 -84
  101. package/System.Security.Authentication/internal/index.d.ts +6 -6
  102. package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +13 -13
  103. package/System.Security.Claims/internal/index.d.ts +38 -40
  104. package/System.Security.Cryptography/internal/index.d.ts +378 -378
  105. package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +172 -172
  106. package/System.Security.Permissions/internal/index.d.ts +1 -1
  107. package/System.Security.Policy/internal/index.d.ts +6 -6
  108. package/System.Security.Principal/internal/index.d.ts +29 -31
  109. package/System.Text/internal/index.d.ts +94 -94
  110. package/System.Text.Encodings.Web/internal/index.d.ts +3 -3
  111. package/System.Text.Json/internal/index.d.ts +103 -103
  112. package/System.Text.Json.Nodes/internal/index.d.ts +73 -73
  113. package/System.Text.Json.Schema/internal/index.d.ts +7 -7
  114. package/System.Text.Json.Serialization/internal/index.d.ts +34 -34
  115. package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +57 -57
  116. package/System.Text.RegularExpressions/internal/index.d.ts +29 -29
  117. package/System.Text.Unicode/internal/index.d.ts +6 -6
  118. package/System.Threading/internal/index.d.ts +160 -160
  119. package/System.Threading.Channels/internal/index.d.ts +12 -12
  120. package/System.Threading.Tasks/internal/index.d.ts +125 -135
  121. package/System.Threading.Tasks.Dataflow/internal/index.d.ts +54 -51
  122. package/System.Threading.Tasks.Sources/internal/index.d.ts +5 -5
  123. package/System.Timers/internal/index.d.ts +8 -8
  124. package/System.Transactions/internal/index.d.ts +51 -51
  125. package/System.Web/internal/index.d.ts +32 -32
  126. package/System.Windows.Input/internal/index.d.ts +2 -2
  127. package/System.Windows.Markup/internal/index.d.ts +2 -2
  128. package/System.Xml/internal/index.d.ts +281 -281
  129. package/System.Xml.Linq/internal/index.d.ts +76 -76
  130. package/System.Xml.Resolvers/internal/index.d.ts +8 -8
  131. package/System.Xml.Schema/internal/index.d.ts +173 -173
  132. package/System.Xml.Serialization/internal/index.d.ts +200 -200
  133. package/System.Xml.XPath/internal/index.d.ts +28 -28
  134. package/System.Xml.Xsl/internal/index.d.ts +53 -53
  135. package/System.Xml.Xsl.Runtime/internal/index.d.ts +72 -72
  136. package/__internal/extensions/index.d.ts +415 -414
  137. package/package.json +1 -1
@@ -80,9 +80,9 @@ export interface TextEncoderSettings$instance {
80
80
 
81
81
 
82
82
  export const TextEncoderSettings: {
83
- new(): TextEncoderSettings$instance;
84
- new(other: TextEncoderSettings): TextEncoderSettings$instance;
85
- new(allowedRanges: UnicodeRange[]): TextEncoderSettings$instance;
83
+ new(): TextEncoderSettings;
84
+ new(other: TextEncoderSettings): TextEncoderSettings;
85
+ new(allowedRanges: UnicodeRange[]): TextEncoderSettings;
86
86
  };
87
87
 
88
88
 
@@ -79,7 +79,7 @@ export interface JsonDocumentOptions$instance {
79
79
 
80
80
 
81
81
  export const JsonDocumentOptions: {
82
- new(): JsonDocumentOptions$instance;
82
+ new(): JsonDocumentOptions;
83
83
  };
84
84
 
85
85
 
@@ -114,7 +114,7 @@ export interface JsonElement$instance {
114
114
  getUInt16(): ushort;
115
115
  getUInt32(): uint;
116
116
  getUInt64(): ulong;
117
- toString(): string;
117
+ toString(): string | undefined;
118
118
  tryGetByte(value: byte): boolean;
119
119
  tryGetBytesFromBase64(value: byte[]): boolean;
120
120
  tryGetDateTime(value: DateTime): boolean;
@@ -141,7 +141,7 @@ export interface JsonElement$instance {
141
141
 
142
142
 
143
143
  export const JsonElement: {
144
- new(): JsonElement$instance;
144
+ new(): JsonElement;
145
145
  deepEquals(element1: JsonElement, element2: JsonElement): boolean;
146
146
  parse(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, options?: JsonDocumentOptions): JsonElement;
147
147
  parse(json: ReadOnlySpan_1<System_Internal.Char>, options?: JsonDocumentOptions): JsonElement;
@@ -163,7 +163,7 @@ export interface JsonElement_ArrayEnumerator$instance extends IDisposable {
163
163
 
164
164
 
165
165
  export const JsonElement_ArrayEnumerator: {
166
- new(): JsonElement_ArrayEnumerator$instance;
166
+ new(): JsonElement_ArrayEnumerator;
167
167
  };
168
168
 
169
169
 
@@ -187,7 +187,7 @@ export interface JsonElement_ObjectEnumerator$instance extends IDisposable {
187
187
 
188
188
 
189
189
  export const JsonElement_ObjectEnumerator: {
190
- new(): JsonElement_ObjectEnumerator$instance;
190
+ new(): JsonElement_ObjectEnumerator;
191
191
  };
192
192
 
193
193
 
@@ -207,15 +207,15 @@ export interface JsonEncodedText$instance {
207
207
  equals(other: JsonEncodedText): boolean;
208
208
  equals(obj: unknown): boolean;
209
209
  getHashCode(): int;
210
- toString(): string;
210
+ toString(): string | undefined;
211
211
  }
212
212
 
213
213
 
214
214
  export const JsonEncodedText: {
215
- new(): JsonEncodedText$instance;
216
- encode(utf8Value: ReadOnlySpan_1<System_Internal.Byte>, encoder?: JavaScriptEncoder): JsonEncodedText;
217
- encode(value: ReadOnlySpan_1<System_Internal.Char>, encoder?: JavaScriptEncoder): JsonEncodedText;
218
- encode(value: string, encoder?: JavaScriptEncoder): JsonEncodedText;
215
+ new(): JsonEncodedText;
216
+ encode(utf8Value: ReadOnlySpan_1<System_Internal.Byte>, encoder?: JavaScriptEncoder | undefined): JsonEncodedText;
217
+ encode(value: ReadOnlySpan_1<System_Internal.Char>, encoder?: JavaScriptEncoder | undefined): JsonEncodedText;
218
+ encode(value: string, encoder?: JavaScriptEncoder | undefined): JsonEncodedText;
219
219
  };
220
220
 
221
221
 
@@ -241,7 +241,7 @@ export interface JsonProperty$instance {
241
241
 
242
242
 
243
243
  export const JsonProperty: {
244
- new(): JsonProperty$instance;
244
+ new(): JsonProperty;
245
245
  };
246
246
 
247
247
 
@@ -256,7 +256,7 @@ export interface JsonReaderOptions$instance {
256
256
 
257
257
 
258
258
  export const JsonReaderOptions: {
259
- new(): JsonReaderOptions$instance;
259
+ new(): JsonReaderOptions;
260
260
  };
261
261
 
262
262
 
@@ -268,14 +268,14 @@ export interface JsonReaderState$instance {
268
268
 
269
269
 
270
270
  export const JsonReaderState: {
271
- new(options: JsonReaderOptions): JsonReaderState$instance;
271
+ new(options: JsonReaderOptions): JsonReaderState;
272
272
  };
273
273
 
274
274
 
275
275
  export type JsonReaderState = JsonReaderState$instance;
276
276
 
277
277
  export interface JsonWriterOptions$instance {
278
- encoder: JavaScriptEncoder;
278
+ encoder: JavaScriptEncoder | undefined;
279
279
  indentCharacter: char;
280
280
  indented: boolean;
281
281
  indentSize: int;
@@ -286,7 +286,7 @@ export interface JsonWriterOptions$instance {
286
286
 
287
287
 
288
288
  export const JsonWriterOptions: {
289
- new(): JsonWriterOptions$instance;
289
+ new(): JsonWriterOptions;
290
290
  };
291
291
 
292
292
 
@@ -349,10 +349,10 @@ export interface Utf8JsonReader$instance {
349
349
 
350
350
 
351
351
  export const Utf8JsonReader: {
352
- new(jsonData: ReadOnlySpan_1<System_Internal.Byte>, isFinalBlock: boolean, state: JsonReaderState): Utf8JsonReader$instance;
353
- new(jsonData: ReadOnlySpan_1<System_Internal.Byte>, options: JsonReaderOptions): Utf8JsonReader$instance;
354
- new(jsonData: ReadOnlySequence_1<System_Internal.Byte>, isFinalBlock: boolean, state: JsonReaderState): Utf8JsonReader$instance;
355
- new(jsonData: ReadOnlySequence_1<System_Internal.Byte>, options: JsonReaderOptions): Utf8JsonReader$instance;
352
+ new(jsonData: ReadOnlySpan_1<System_Internal.Byte>, isFinalBlock: boolean, state: JsonReaderState): Utf8JsonReader;
353
+ new(jsonData: ReadOnlySpan_1<System_Internal.Byte>, options: JsonReaderOptions): Utf8JsonReader;
354
+ new(jsonData: ReadOnlySequence_1<System_Internal.Byte>, isFinalBlock: boolean, state: JsonReaderState): Utf8JsonReader;
355
+ new(jsonData: ReadOnlySequence_1<System_Internal.Byte>, options: JsonReaderOptions): Utf8JsonReader;
356
356
  };
357
357
 
358
358
 
@@ -366,7 +366,7 @@ export interface JsonDocument$instance {
366
366
 
367
367
 
368
368
  export const JsonDocument: {
369
- new(): JsonDocument$instance;
369
+ new(): JsonDocument;
370
370
  parse(utf8Json: ReadOnlySequence_1<System_Internal.Byte>, options?: JsonDocumentOptions): JsonDocument;
371
371
  parse(utf8Json: Stream, options?: JsonDocumentOptions): JsonDocument;
372
372
  parse(utf8Json: ReadOnlyMemory_1<System_Internal.Byte>, options?: JsonDocumentOptions): JsonDocument;
@@ -392,16 +392,16 @@ export interface JsonException$instance extends Exception {
392
392
  readonly lineNumber: Nullable_1<System_Internal.Int64>;
393
393
  readonly message: string;
394
394
  readonly path: string;
395
- getObjectData(info: SerializationInfo, context: StreamingContext): void;
395
+ getObjectData(info: SerializationInfo | undefined, context: StreamingContext): void;
396
396
  }
397
397
 
398
398
 
399
399
  export const JsonException: {
400
- new(message: string, path: string, lineNumber: Nullable_1<System_Internal.Int64>, bytePositionInLine: Nullable_1<System_Internal.Int64>, innerException: Exception): JsonException$instance;
401
- new(message: string, path: string, lineNumber: Nullable_1<System_Internal.Int64>, bytePositionInLine: Nullable_1<System_Internal.Int64>): JsonException$instance;
402
- new(message: string, innerException: Exception): JsonException$instance;
403
- new(message: string): JsonException$instance;
404
- new(): JsonException$instance;
400
+ new(message: string | undefined, path: string | undefined, lineNumber: Nullable_1<System_Internal.Int64>, bytePositionInLine: Nullable_1<System_Internal.Int64>, innerException: Exception | undefined): JsonException;
401
+ new(message: string | undefined, path: string | undefined, lineNumber: Nullable_1<System_Internal.Int64>, bytePositionInLine: Nullable_1<System_Internal.Int64>): JsonException;
402
+ new(message: string | undefined, innerException: Exception | undefined): JsonException;
403
+ new(message: string | undefined): JsonException;
404
+ new(): JsonException;
405
405
  };
406
406
 
407
407
 
@@ -435,8 +435,8 @@ export interface JsonSerializerOptions$instance {
435
435
  readonly converters: IList_1<JsonConverter>;
436
436
  defaultBufferSize: int;
437
437
  defaultIgnoreCondition: JsonIgnoreCondition;
438
- dictionaryKeyPolicy: JsonNamingPolicy;
439
- encoder: JavaScriptEncoder;
438
+ dictionaryKeyPolicy: JsonNamingPolicy | undefined;
439
+ encoder: JavaScriptEncoder | undefined;
440
440
  ignoreNullValues: boolean;
441
441
  ignoreReadOnlyFields: boolean;
442
442
  ignoreReadOnlyProperties: boolean;
@@ -449,12 +449,12 @@ export interface JsonSerializerOptions$instance {
449
449
  numberHandling: JsonNumberHandling;
450
450
  preferredObjectCreationHandling: JsonObjectCreationHandling;
451
451
  propertyNameCaseInsensitive: boolean;
452
- propertyNamingPolicy: JsonNamingPolicy;
452
+ propertyNamingPolicy: JsonNamingPolicy | undefined;
453
453
  readCommentHandling: JsonCommentHandling;
454
- referenceHandler: ReferenceHandler;
454
+ referenceHandler: ReferenceHandler | undefined;
455
455
  respectNullableAnnotations: boolean;
456
456
  respectRequiredConstructorParameters: boolean;
457
- typeInfoResolver: IJsonTypeInfoResolver;
457
+ typeInfoResolver: IJsonTypeInfoResolver | undefined;
458
458
  readonly typeInfoResolverChain: IList_1<IJsonTypeInfoResolver>;
459
459
  unknownTypeHandling: JsonUnknownTypeHandling;
460
460
  unmappedMemberHandling: JsonUnmappedMemberHandling;
@@ -464,14 +464,14 @@ export interface JsonSerializerOptions$instance {
464
464
  getTypeInfo(type_: Type): JsonTypeInfo;
465
465
  makeReadOnly(): void;
466
466
  makeReadOnly(populateMissingResolver: boolean): void;
467
- tryGetTypeInfo(type_: Type, typeInfo: JsonTypeInfo): boolean;
467
+ tryGetTypeInfo(type_: Type, typeInfo: JsonTypeInfo | undefined): boolean;
468
468
  }
469
469
 
470
470
 
471
471
  export const JsonSerializerOptions: {
472
- new(): JsonSerializerOptions$instance;
473
- new(options: JsonSerializerOptions): JsonSerializerOptions$instance;
474
- new(defaults: JsonSerializerDefaults): JsonSerializerOptions$instance;
472
+ new(): JsonSerializerOptions;
473
+ new(options: JsonSerializerOptions): JsonSerializerOptions;
474
+ new(defaults: JsonSerializerDefaults): JsonSerializerOptions;
475
475
  readonly default_: JsonSerializerOptions;
476
476
  readonly web: JsonSerializerOptions;
477
477
  readonly strict: JsonSerializerOptions;
@@ -580,7 +580,7 @@ export interface Utf8JsonWriter$instance {
580
580
  writeString(utf8PropertyName: ReadOnlySpan_1<System_Internal.Byte>, value: Guid): void;
581
581
  writeString(propertyName: JsonEncodedText, value: JsonEncodedText): void;
582
582
  writeString(propertyName: string, value: JsonEncodedText): void;
583
- writeString(propertyName: string, value: string): void;
583
+ writeString(propertyName: string, value: string | undefined): void;
584
584
  writeString(propertyName: ReadOnlySpan_1<System_Internal.Char>, value: ReadOnlySpan_1<System_Internal.Char>): void;
585
585
  writeString(utf8PropertyName: ReadOnlySpan_1<System_Internal.Byte>, utf8Value: ReadOnlySpan_1<System_Internal.Byte>): void;
586
586
  writeString(propertyName: JsonEncodedText, value: string): void;
@@ -591,9 +591,9 @@ export interface Utf8JsonWriter$instance {
591
591
  writeString(propertyName: string, utf8Value: ReadOnlySpan_1<System_Internal.Byte>): void;
592
592
  writeString(propertyName: ReadOnlySpan_1<System_Internal.Char>, utf8Value: ReadOnlySpan_1<System_Internal.Byte>): void;
593
593
  writeString(propertyName: ReadOnlySpan_1<System_Internal.Char>, value: JsonEncodedText): void;
594
- writeString(propertyName: ReadOnlySpan_1<System_Internal.Char>, value: string): void;
594
+ writeString(propertyName: ReadOnlySpan_1<System_Internal.Char>, value: string | undefined): void;
595
595
  writeString(utf8PropertyName: ReadOnlySpan_1<System_Internal.Byte>, value: JsonEncodedText): void;
596
- writeString(utf8PropertyName: ReadOnlySpan_1<System_Internal.Byte>, value: string): void;
596
+ writeString(utf8PropertyName: ReadOnlySpan_1<System_Internal.Byte>, value: string | undefined): void;
597
597
  writeStringValue(value: DateTime): void;
598
598
  writeStringValue(value: DateTimeOffset): void;
599
599
  writeStringValue(value: Guid): void;
@@ -607,8 +607,8 @@ export interface Utf8JsonWriter$instance {
607
607
 
608
608
 
609
609
  export const Utf8JsonWriter: {
610
- new(bufferWriter: IBufferWriter_1<System_Internal.Byte>, options: JsonWriterOptions): Utf8JsonWriter$instance;
611
- new(utf8Json: Stream, options: JsonWriterOptions): Utf8JsonWriter$instance;
610
+ new(bufferWriter: IBufferWriter_1<System_Internal.Byte>, options: JsonWriterOptions): Utf8JsonWriter;
611
+ new(utf8Json: Stream, options: JsonWriterOptions): Utf8JsonWriter;
612
612
  };
613
613
 
614
614
 
@@ -624,109 +624,109 @@ export type Utf8JsonWriter = Utf8JsonWriter$instance & __Utf8JsonWriter$views;
624
624
 
625
625
  export abstract class JsonSerializer$instance {
626
626
  static readonly isReflectionEnabledByDefault: boolean;
627
- static deserialize<TValue>(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
627
+ static deserialize<TValue>(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue | undefined;
628
628
  static deserialize<TValue>(utf8Json: Stream, options?: JsonSerializerOptions): TValue;
629
- static deserialize(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo): unknown;
630
- static deserialize(utf8Json: Stream, returnType: Type, options?: JsonSerializerOptions): unknown;
631
- static deserialize(utf8Json: Stream, returnType: Type, context: JsonSerializerContext): unknown;
629
+ static deserialize(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
630
+ static deserialize(utf8Json: Stream, returnType: Type, options?: JsonSerializerOptions | undefined): unknown | undefined;
631
+ static deserialize(utf8Json: Stream, returnType: Type, context: JsonSerializerContext): unknown | undefined;
632
632
  static deserialize<TValue>(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
633
633
  static deserialize<TValue>(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, options?: JsonSerializerOptions): TValue;
634
- static deserialize(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, jsonTypeInfo: JsonTypeInfo): unknown;
634
+ static deserialize(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
635
635
  static deserialize(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, returnType: Type, options?: JsonSerializerOptions): unknown;
636
- static deserialize(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, returnType: Type, context: JsonSerializerContext): unknown;
636
+ static deserialize(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, returnType: Type, context: JsonSerializerContext): unknown | undefined;
637
637
  static deserialize<TValue>(json: ReadOnlySpan_1<System_Internal.Char>, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
638
638
  static deserialize<TValue>(json: ReadOnlySpan_1<System_Internal.Char>, options?: JsonSerializerOptions): TValue;
639
- static deserialize(json: ReadOnlySpan_1<System_Internal.Char>, jsonTypeInfo: JsonTypeInfo): unknown;
639
+ static deserialize(json: ReadOnlySpan_1<System_Internal.Char>, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
640
640
  static deserialize(json: ReadOnlySpan_1<System_Internal.Char>, returnType: Type, options?: JsonSerializerOptions): unknown;
641
- static deserialize(json: ReadOnlySpan_1<System_Internal.Char>, returnType: Type, context: JsonSerializerContext): unknown;
642
- static deserialize<TValue>(json: string, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
641
+ static deserialize(json: ReadOnlySpan_1<System_Internal.Char>, returnType: Type, context: JsonSerializerContext): unknown | undefined;
642
+ static deserialize<TValue>(json: string, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue | undefined;
643
643
  static deserialize<TValue>(json: string, options?: JsonSerializerOptions): TValue;
644
- static deserialize(json: string, jsonTypeInfo: JsonTypeInfo): unknown;
645
- static deserialize(json: string, returnType: Type, options?: JsonSerializerOptions): unknown;
646
- static deserialize(json: string, returnType: Type, context: JsonSerializerContext): unknown;
647
- static deserialize<TValue>(document: JsonDocument, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
644
+ static deserialize(json: string, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
645
+ static deserialize(json: string, returnType: Type, options?: JsonSerializerOptions | undefined): unknown | undefined;
646
+ static deserialize(json: string, returnType: Type, context: JsonSerializerContext): unknown | undefined;
647
+ static deserialize<TValue>(document: JsonDocument, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue | undefined;
648
648
  static deserialize<TValue>(document: JsonDocument, options?: JsonSerializerOptions): TValue;
649
- static deserialize(document: JsonDocument, jsonTypeInfo: JsonTypeInfo): unknown;
650
- static deserialize(document: JsonDocument, returnType: Type, options?: JsonSerializerOptions): unknown;
651
- static deserialize(document: JsonDocument, returnType: Type, context: JsonSerializerContext): unknown;
649
+ static deserialize(document: JsonDocument, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
650
+ static deserialize(document: JsonDocument, returnType: Type, options?: JsonSerializerOptions | undefined): unknown | undefined;
651
+ static deserialize(document: JsonDocument, returnType: Type, context: JsonSerializerContext): unknown | undefined;
652
652
  static deserialize<TValue>(element: JsonElement, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
653
653
  static deserialize<TValue>(element: JsonElement, options?: JsonSerializerOptions): TValue;
654
- static deserialize(element: JsonElement, jsonTypeInfo: JsonTypeInfo): unknown;
654
+ static deserialize(element: JsonElement, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
655
655
  static deserialize(element: JsonElement, returnType: Type, options?: JsonSerializerOptions): unknown;
656
- static deserialize(element: JsonElement, returnType: Type, context: JsonSerializerContext): unknown;
656
+ static deserialize(element: JsonElement, returnType: Type, context: JsonSerializerContext): unknown | undefined;
657
657
  static deserialize<TValue>(node: JsonNode, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
658
658
  static deserialize<TValue>(node: JsonNode, options?: JsonSerializerOptions): TValue;
659
659
  static deserialize(node: JsonNode, jsonTypeInfo: JsonTypeInfo): unknown;
660
660
  static deserialize(node: JsonNode, returnType: Type, options?: JsonSerializerOptions): unknown;
661
- static deserialize(node: JsonNode, returnType: Type, context: JsonSerializerContext): unknown;
661
+ static deserialize(node: JsonNode | undefined, returnType: Type, context: JsonSerializerContext): unknown | undefined;
662
662
  static deserialize<TValue>(reader: Utf8JsonReader, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
663
663
  static deserialize<TValue>(reader: Utf8JsonReader, options?: JsonSerializerOptions): TValue;
664
- static deserialize(reader: Utf8JsonReader, jsonTypeInfo: JsonTypeInfo): unknown;
664
+ static deserialize(reader: Utf8JsonReader, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
665
665
  static deserialize(reader: Utf8JsonReader, returnType: Type, options?: JsonSerializerOptions): unknown;
666
- static deserialize(reader: Utf8JsonReader, returnType: Type, context: JsonSerializerContext): unknown;
666
+ static deserialize(reader: Utf8JsonReader, returnType: Type, context: JsonSerializerContext): unknown | undefined;
667
667
  static deserializeAsync<TValue>(utf8Json: PipeReader, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): ValueTask_1<TValue>;
668
668
  static deserializeAsync<TValue>(utf8Json: PipeReader, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): ValueTask_1<TValue>;
669
669
  static deserializeAsync(utf8Json: PipeReader, jsonTypeInfo: JsonTypeInfo, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
670
- static deserializeAsync(utf8Json: PipeReader, returnType: Type, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
670
+ static deserializeAsync(utf8Json: PipeReader, returnType: Type, options?: JsonSerializerOptions | undefined, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
671
671
  static deserializeAsync(utf8Json: PipeReader, returnType: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
672
672
  static deserializeAsync<TValue>(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): ValueTask_1<TValue>;
673
673
  static deserializeAsync<TValue>(utf8Json: Stream, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): ValueTask_1<TValue>;
674
674
  static deserializeAsync(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
675
- static deserializeAsync(utf8Json: Stream, returnType: Type, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
675
+ static deserializeAsync(utf8Json: Stream, returnType: Type, options?: JsonSerializerOptions | undefined, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
676
676
  static deserializeAsync(utf8Json: Stream, returnType: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
677
- static deserializeAsyncEnumerable<TValue>(utf8Json: PipeReader, jsonTypeInfo: JsonTypeInfo_1<TValue>, topLevelValues: boolean, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue>;
678
- static deserializeAsyncEnumerable<TValue>(utf8Json: PipeReader, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue>;
679
- static deserializeAsyncEnumerable<TValue>(utf8Json: PipeReader, topLevelValues: boolean, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue>;
680
- static deserializeAsyncEnumerable<TValue>(utf8Json: PipeReader, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue>;
681
- static deserializeAsyncEnumerable<TValue>(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo_1<TValue>, topLevelValues: boolean, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue>;
682
- static deserializeAsyncEnumerable<TValue>(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue>;
683
- static deserializeAsyncEnumerable<TValue>(utf8Json: Stream, topLevelValues: boolean, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue>;
684
- static deserializeAsyncEnumerable<TValue>(utf8Json: Stream, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue>;
685
- static serialize(utf8Json: Stream, value: unknown, jsonTypeInfo: JsonTypeInfo): void;
686
- static serialize(utf8Json: Stream, value: unknown, inputType: Type, options?: JsonSerializerOptions): void;
687
- static serialize(utf8Json: Stream, value: unknown, inputType: Type, context: JsonSerializerContext): void;
677
+ static deserializeAsyncEnumerable<TValue>(utf8Json: PipeReader, jsonTypeInfo: JsonTypeInfo_1<TValue>, topLevelValues: boolean, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
678
+ static deserializeAsyncEnumerable<TValue>(utf8Json: PipeReader, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
679
+ static deserializeAsyncEnumerable<TValue>(utf8Json: PipeReader, topLevelValues: boolean, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
680
+ static deserializeAsyncEnumerable<TValue>(utf8Json: PipeReader, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
681
+ static deserializeAsyncEnumerable<TValue>(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo_1<TValue>, topLevelValues: boolean, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
682
+ static deserializeAsyncEnumerable<TValue>(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
683
+ static deserializeAsyncEnumerable<TValue>(utf8Json: Stream, topLevelValues: boolean, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
684
+ static deserializeAsyncEnumerable<TValue>(utf8Json: Stream, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
685
+ static serialize(utf8Json: Stream, value: unknown | undefined, jsonTypeInfo: JsonTypeInfo): void;
686
+ static serialize(utf8Json: Stream, value: unknown | undefined, inputType: Type, options?: JsonSerializerOptions | undefined): void;
687
+ static serialize(utf8Json: Stream, value: unknown | undefined, inputType: Type, context: JsonSerializerContext): void;
688
688
  static serialize<TValue>(utf8Json: Stream, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): void;
689
- static serialize<TValue>(utf8Json: Stream, value: TValue, options?: JsonSerializerOptions): void;
690
- static serialize(value: unknown, jsonTypeInfo: JsonTypeInfo): string;
691
- static serialize(value: unknown, inputType: Type, options?: JsonSerializerOptions): string;
692
- static serialize(value: unknown, inputType: Type, context: JsonSerializerContext): string;
693
- static serialize(writer: Utf8JsonWriter, value: unknown, jsonTypeInfo: JsonTypeInfo): void;
694
- static serialize(writer: Utf8JsonWriter, value: unknown, inputType: Type, options?: JsonSerializerOptions): void;
695
- static serialize(writer: Utf8JsonWriter, value: unknown, inputType: Type, context: JsonSerializerContext): void;
689
+ static serialize<TValue>(utf8Json: Stream, value: TValue, options?: JsonSerializerOptions | undefined): void;
690
+ static serialize(value: unknown | undefined, jsonTypeInfo: JsonTypeInfo): string;
691
+ static serialize(value: unknown | undefined, inputType: Type, options?: JsonSerializerOptions | undefined): string;
692
+ static serialize(value: unknown | undefined, inputType: Type, context: JsonSerializerContext): string;
693
+ static serialize(writer: Utf8JsonWriter, value: unknown | undefined, jsonTypeInfo: JsonTypeInfo): void;
694
+ static serialize(writer: Utf8JsonWriter, value: unknown | undefined, inputType: Type, options?: JsonSerializerOptions | undefined): void;
695
+ static serialize(writer: Utf8JsonWriter, value: unknown | undefined, inputType: Type, context: JsonSerializerContext): void;
696
696
  static serialize<TValue>(writer: Utf8JsonWriter, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): void;
697
- static serialize<TValue>(writer: Utf8JsonWriter, value: TValue, options?: JsonSerializerOptions): void;
697
+ static serialize<TValue>(writer: Utf8JsonWriter, value: TValue, options?: JsonSerializerOptions | undefined): void;
698
698
  static serialize<TValue>(value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): string;
699
- static serialize<TValue>(value: TValue, options?: JsonSerializerOptions): string;
700
- static serializeAsync(utf8Json: PipeWriter, value: unknown, jsonTypeInfo: JsonTypeInfo, cancellationToken?: CancellationToken): Task;
701
- static serializeAsync(utf8Json: PipeWriter, value: unknown, inputType: Type, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task;
702
- static serializeAsync(utf8Json: PipeWriter, value: unknown, inputType: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task;
699
+ static serialize<TValue>(value: TValue, options?: JsonSerializerOptions | undefined): string;
700
+ static serializeAsync(utf8Json: PipeWriter, value: unknown | undefined, jsonTypeInfo: JsonTypeInfo, cancellationToken?: CancellationToken): Task;
701
+ static serializeAsync(utf8Json: PipeWriter, value: unknown | undefined, inputType: Type, options?: JsonSerializerOptions | undefined, cancellationToken?: CancellationToken): Task;
702
+ static serializeAsync(utf8Json: PipeWriter, value: unknown | undefined, inputType: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task;
703
703
  static serializeAsync<TValue>(utf8Json: PipeWriter, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task;
704
- static serializeAsync<TValue>(utf8Json: PipeWriter, value: TValue, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task;
705
- static serializeAsync(utf8Json: Stream, value: unknown, jsonTypeInfo: JsonTypeInfo, cancellationToken?: CancellationToken): Task;
706
- static serializeAsync(utf8Json: Stream, value: unknown, inputType: Type, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task;
707
- static serializeAsync(utf8Json: Stream, value: unknown, inputType: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task;
704
+ static serializeAsync<TValue>(utf8Json: PipeWriter, value: TValue, options?: JsonSerializerOptions | undefined, cancellationToken?: CancellationToken): Task;
705
+ static serializeAsync(utf8Json: Stream, value: unknown | undefined, jsonTypeInfo: JsonTypeInfo, cancellationToken?: CancellationToken): Task;
706
+ static serializeAsync(utf8Json: Stream, value: unknown | undefined, inputType: Type, options?: JsonSerializerOptions | undefined, cancellationToken?: CancellationToken): Task;
707
+ static serializeAsync(utf8Json: Stream, value: unknown | undefined, inputType: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task;
708
708
  static serializeAsync<TValue>(utf8Json: Stream, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task;
709
- static serializeAsync<TValue>(utf8Json: Stream, value: TValue, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task;
710
- static serializeToDocument(value: unknown, jsonTypeInfo: JsonTypeInfo): JsonDocument;
711
- static serializeToDocument(value: unknown, inputType: Type, options?: JsonSerializerOptions): JsonDocument;
712
- static serializeToDocument(value: unknown, inputType: Type, context: JsonSerializerContext): JsonDocument;
709
+ static serializeAsync<TValue>(utf8Json: Stream, value: TValue, options?: JsonSerializerOptions | undefined, cancellationToken?: CancellationToken): Task;
710
+ static serializeToDocument(value: unknown | undefined, jsonTypeInfo: JsonTypeInfo): JsonDocument;
711
+ static serializeToDocument(value: unknown | undefined, inputType: Type, options?: JsonSerializerOptions | undefined): JsonDocument;
712
+ static serializeToDocument(value: unknown | undefined, inputType: Type, context: JsonSerializerContext): JsonDocument;
713
713
  static serializeToDocument<TValue>(value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): JsonDocument;
714
- static serializeToDocument<TValue>(value: TValue, options?: JsonSerializerOptions): JsonDocument;
715
- static serializeToElement(value: unknown, jsonTypeInfo: JsonTypeInfo): JsonElement;
714
+ static serializeToDocument<TValue>(value: TValue, options?: JsonSerializerOptions | undefined): JsonDocument;
715
+ static serializeToElement(value: unknown | undefined, jsonTypeInfo: JsonTypeInfo): JsonElement;
716
716
  static serializeToElement(value: unknown, inputType: Type, options?: JsonSerializerOptions): JsonElement;
717
- static serializeToElement(value: unknown, inputType: Type, context: JsonSerializerContext): JsonElement;
717
+ static serializeToElement(value: unknown | undefined, inputType: Type, context: JsonSerializerContext): JsonElement;
718
718
  static serializeToElement<TValue>(value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): JsonElement;
719
719
  static serializeToElement<TValue>(value: TValue, options?: JsonSerializerOptions): JsonElement;
720
720
  static serializeToNode(value: unknown, jsonTypeInfo: JsonTypeInfo): JsonNode;
721
721
  static serializeToNode(value: unknown, inputType: Type, options?: JsonSerializerOptions): JsonNode;
722
- static serializeToNode(value: unknown, inputType: Type, context: JsonSerializerContext): JsonNode;
723
- static serializeToNode<TValue>(value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): JsonNode;
722
+ static serializeToNode(value: unknown | undefined, inputType: Type, context: JsonSerializerContext): JsonNode | undefined;
723
+ static serializeToNode<TValue>(value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): JsonNode | undefined;
724
724
  static serializeToNode<TValue>(value: TValue, options?: JsonSerializerOptions): JsonNode;
725
- static serializeToUtf8Bytes(value: unknown, jsonTypeInfo: JsonTypeInfo): byte[];
726
- static serializeToUtf8Bytes(value: unknown, inputType: Type, options?: JsonSerializerOptions): byte[];
727
- static serializeToUtf8Bytes(value: unknown, inputType: Type, context: JsonSerializerContext): byte[];
725
+ static serializeToUtf8Bytes(value: unknown | undefined, jsonTypeInfo: JsonTypeInfo): byte[];
726
+ static serializeToUtf8Bytes(value: unknown | undefined, inputType: Type, options?: JsonSerializerOptions | undefined): byte[];
727
+ static serializeToUtf8Bytes(value: unknown | undefined, inputType: Type, context: JsonSerializerContext): byte[];
728
728
  static serializeToUtf8Bytes<TValue>(value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): byte[];
729
- static serializeToUtf8Bytes<TValue>(value: TValue, options?: JsonSerializerOptions): byte[];
729
+ static serializeToUtf8Bytes<TValue>(value: TValue, options?: JsonSerializerOptions | undefined): byte[];
730
730
  }
731
731
 
732
732