@tsonic/dotnet 0.8.2 → 0.8.3
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.
- package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +18 -18
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +1 -1
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +2 -2
- package/Microsoft.Win32/internal/index.d.ts +10 -10
- package/System/internal/index.d.ts +964 -950
- package/System.Buffers/internal/index.d.ts +2 -2
- package/System.CodeDom.Compiler/internal/index.d.ts +10 -10
- package/System.Collections/internal/index.d.ts +30 -24
- package/System.Collections.Concurrent/internal/index.d.ts +10 -10
- package/System.Collections.Frozen/bindings.json +20 -20
- package/System.Collections.Frozen/internal/index.d.ts +6 -6
- package/System.Collections.Frozen/internal/metadata.json +10 -10
- package/System.Collections.Generic/bindings.json +20 -44
- package/System.Collections.Generic/internal/index.d.ts +54 -54
- package/System.Collections.Generic/internal/metadata.json +10 -26
- package/System.Collections.Immutable/internal/index.d.ts +88 -88
- package/System.Collections.ObjectModel/internal/index.d.ts +15 -15
- package/System.Collections.Specialized/internal/index.d.ts +53 -49
- package/System.ComponentModel/internal/index.d.ts +388 -376
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +55 -45
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +3 -2
- package/System.ComponentModel.Design/internal/index.d.ts +36 -36
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +20 -20
- package/System.Data/internal/index.d.ts +171 -163
- package/System.Data.Common/internal/index.d.ts +36 -28
- package/System.Data.SqlTypes/internal/index.d.ts +23 -23
- package/System.Diagnostics/internal/index.d.ts +250 -228
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +37 -23
- package/System.Diagnostics.Contracts/internal/index.d.ts +4 -4
- package/System.Diagnostics.Metrics/internal/index.d.ts +34 -29
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +4 -4
- package/System.Diagnostics.Tracing/internal/index.d.ts +26 -24
- package/System.Drawing/internal/index.d.ts +76 -76
- package/System.Dynamic/internal/index.d.ts +26 -26
- package/System.Formats.Asn1/internal/index.d.ts +4 -4
- package/System.Formats.Tar/internal/index.d.ts +5 -4
- package/System.Globalization/internal/index.d.ts +22 -20
- package/System.IO/internal/index.d.ts +106 -103
- package/System.IO.Compression/internal/index.d.ts +24 -24
- package/System.IO.Enumeration/internal/index.d.ts +7 -5
- package/System.IO.IsolatedStorage/internal/index.d.ts +9 -9
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +8 -8
- package/System.IO.Pipelines/internal/index.d.ts +5 -5
- package/System.IO.Pipes/internal/index.d.ts +4 -4
- package/System.Linq/internal/index.d.ts +207 -207
- package/System.Linq.Expressions/internal/index.d.ts +160 -160
- package/System.Net/internal/index.d.ts +157 -131
- package/System.Net.Cache/internal/index.d.ts +2 -2
- package/System.Net.Http/internal/index.d.ts +69 -53
- package/System.Net.Http.Headers/internal/index.d.ts +62 -45
- package/System.Net.Http.Json/internal/index.d.ts +38 -38
- package/System.Net.Http.Metrics/internal/index.d.ts +1 -1
- package/System.Net.Mail/internal/index.d.ts +80 -70
- package/System.Net.Mime/internal/index.d.ts +4 -2
- package/System.Net.NetworkInformation/internal/index.d.ts +23 -23
- package/System.Net.Quic/internal/index.d.ts +4 -3
- package/System.Net.Security/internal/index.d.ts +65 -49
- package/System.Net.ServerSentEvents/internal/index.d.ts +3 -2
- package/System.Net.Sockets/internal/index.d.ts +49 -42
- package/System.Net.WebSockets/internal/index.d.ts +35 -29
- package/System.Numerics/bindings.json +96 -72
- package/System.Numerics/internal/index.d.ts +93 -91
- package/System.Numerics/internal/metadata.json +64 -48
- package/System.Reflection/internal/index.d.ts +129 -126
- package/System.Reflection.Emit/internal/index.d.ts +105 -105
- package/System.Reflection.Metadata/internal/index.d.ts +15 -15
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +4 -4
- package/System.Reflection.PortableExecutable/internal/index.d.ts +2 -2
- package/System.Resources/internal/index.d.ts +20 -19
- package/System.Runtime/internal/index.d.ts +6 -5
- package/System.Runtime.CompilerServices/internal/index.d.ts +30 -28
- package/System.Runtime.InteropServices/internal/index.d.ts +85 -83
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +9 -9
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +20 -20
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +28 -26
- package/System.Runtime.Loader/internal/index.d.ts +2 -2
- package/System.Runtime.Remoting/internal/index.d.ts +1 -1
- package/System.Runtime.Serialization/internal/index.d.ts +66 -54
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +3 -3
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +4 -2
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -4
- package/System.Runtime.Serialization.Json/internal/index.d.ts +22 -21
- package/System.Runtime.Versioning/internal/index.d.ts +12 -9
- package/System.Security/internal/index.d.ts +62 -52
- package/System.Security.AccessControl/internal/index.d.ts +29 -25
- package/System.Security.Authentication/internal/index.d.ts +4 -4
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +8 -8
- package/System.Security.Claims/internal/index.d.ts +21 -15
- package/System.Security.Cryptography/internal/index.d.ts +155 -141
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +83 -82
- package/System.Security.Permissions/internal/index.d.ts +2 -2
- package/System.Security.Principal/internal/index.d.ts +3 -3
- package/System.Text/internal/index.d.ts +48 -46
- package/System.Text.Json/internal/index.d.ts +87 -81
- package/System.Text.Json.Nodes/internal/index.d.ts +41 -41
- package/System.Text.Json.Schema/internal/index.d.ts +4 -3
- package/System.Text.Json.Serialization/internal/index.d.ts +5 -4
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +55 -30
- package/System.Text.RegularExpressions/internal/index.d.ts +5 -5
- package/System.Text.Unicode/internal/index.d.ts +4 -4
- package/System.Threading/internal/index.d.ts +86 -85
- package/System.Threading.Channels/internal/index.d.ts +8 -8
- package/System.Threading.Tasks/internal/index.d.ts +82 -82
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +25 -26
- package/System.Threading.Tasks.Sources/internal/index.d.ts +4 -4
- package/System.Timers/internal/index.d.ts +5 -3
- package/System.Transactions/internal/index.d.ts +18 -16
- package/System.Web/internal/index.d.ts +30 -30
- package/System.Windows.Input/internal/index.d.ts +2 -2
- package/System.Xml/internal/index.d.ts +162 -161
- package/System.Xml.Linq/internal/index.d.ts +38 -37
- package/System.Xml.Resolvers/internal/index.d.ts +5 -5
- package/System.Xml.Schema/internal/index.d.ts +133 -88
- package/System.Xml.Serialization/internal/index.d.ts +138 -117
- package/System.Xml.XPath/internal/index.d.ts +12 -12
- package/System.Xml.Xsl/internal/index.d.ts +34 -34
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +16 -16
- package/__internal/extensions/index.d.ts +371 -371
- package/package.json +1 -1
|
@@ -110,11 +110,11 @@ export interface JsonElement$instance {
|
|
|
110
110
|
getRawText(): string;
|
|
111
111
|
getSByte(): sbyte;
|
|
112
112
|
getSingle(): float;
|
|
113
|
-
getString(): string;
|
|
113
|
+
getString(): string | undefined;
|
|
114
114
|
getUInt16(): ushort;
|
|
115
115
|
getUInt32(): uint;
|
|
116
116
|
getUInt64(): ulong;
|
|
117
|
-
toString(): string
|
|
117
|
+
toString(): string;
|
|
118
118
|
tryGetByte(value: byte): boolean;
|
|
119
119
|
tryGetBytesFromBase64(value: byte[]): boolean;
|
|
120
120
|
tryGetDateTime(value: DateTime): boolean;
|
|
@@ -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;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
|
|
214
214
|
export const JsonEncodedText: {
|
|
215
215
|
new(): JsonEncodedText;
|
|
216
|
-
encode(utf8Value: ReadOnlySpan_1<System_Internal.Byte>, encoder?: JavaScriptEncoder
|
|
217
|
-
encode(value: ReadOnlySpan_1<System_Internal.Char>, encoder?: JavaScriptEncoder
|
|
218
|
-
encode(value: string, encoder?: JavaScriptEncoder
|
|
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;
|
|
219
219
|
};
|
|
220
220
|
|
|
221
221
|
|
|
@@ -275,7 +275,8 @@ export const JsonReaderState: {
|
|
|
275
275
|
export type JsonReaderState = JsonReaderState$instance;
|
|
276
276
|
|
|
277
277
|
export interface JsonWriterOptions$instance {
|
|
278
|
-
encoder: JavaScriptEncoder | undefined;
|
|
278
|
+
get encoder(): JavaScriptEncoder | undefined;
|
|
279
|
+
set encoder(value: JavaScriptEncoder);
|
|
279
280
|
indentCharacter: char;
|
|
280
281
|
indented: boolean;
|
|
281
282
|
indentSize: int;
|
|
@@ -320,7 +321,7 @@ export interface Utf8JsonReader$instance {
|
|
|
320
321
|
getInt64(): long;
|
|
321
322
|
getSByte(): sbyte;
|
|
322
323
|
getSingle(): float;
|
|
323
|
-
getString(): string;
|
|
324
|
+
getString(): string | undefined;
|
|
324
325
|
getUInt16(): ushort;
|
|
325
326
|
getUInt32(): uint;
|
|
326
327
|
getUInt64(): ulong;
|
|
@@ -392,15 +393,15 @@ export interface JsonException$instance extends Exception {
|
|
|
392
393
|
readonly lineNumber: Nullable_1<System_Internal.Int64>;
|
|
393
394
|
readonly message: string;
|
|
394
395
|
readonly path: string;
|
|
395
|
-
getObjectData(info: SerializationInfo
|
|
396
|
+
getObjectData(info: SerializationInfo, context: StreamingContext): void;
|
|
396
397
|
}
|
|
397
398
|
|
|
398
399
|
|
|
399
400
|
export const JsonException: {
|
|
400
|
-
new(message: string
|
|
401
|
-
new(message: string
|
|
402
|
-
new(message: string
|
|
403
|
-
new(message: string
|
|
401
|
+
new(message: string, path: string, lineNumber: Nullable_1<System_Internal.Int64>, bytePositionInLine: Nullable_1<System_Internal.Int64>, innerException: Exception): JsonException;
|
|
402
|
+
new(message: string, path: string, lineNumber: Nullable_1<System_Internal.Int64>, bytePositionInLine: Nullable_1<System_Internal.Int64>): JsonException;
|
|
403
|
+
new(message: string, innerException: Exception): JsonException;
|
|
404
|
+
new(message: string): JsonException;
|
|
404
405
|
new(): JsonException;
|
|
405
406
|
};
|
|
406
407
|
|
|
@@ -435,8 +436,10 @@ export interface JsonSerializerOptions$instance {
|
|
|
435
436
|
readonly converters: IList_1<JsonConverter>;
|
|
436
437
|
defaultBufferSize: int;
|
|
437
438
|
defaultIgnoreCondition: JsonIgnoreCondition;
|
|
438
|
-
dictionaryKeyPolicy: JsonNamingPolicy | undefined;
|
|
439
|
-
|
|
439
|
+
get dictionaryKeyPolicy(): JsonNamingPolicy | undefined;
|
|
440
|
+
set dictionaryKeyPolicy(value: JsonNamingPolicy);
|
|
441
|
+
get encoder(): JavaScriptEncoder | undefined;
|
|
442
|
+
set encoder(value: JavaScriptEncoder);
|
|
440
443
|
ignoreNullValues: boolean;
|
|
441
444
|
ignoreReadOnlyFields: boolean;
|
|
442
445
|
ignoreReadOnlyProperties: boolean;
|
|
@@ -449,12 +452,15 @@ export interface JsonSerializerOptions$instance {
|
|
|
449
452
|
numberHandling: JsonNumberHandling;
|
|
450
453
|
preferredObjectCreationHandling: JsonObjectCreationHandling;
|
|
451
454
|
propertyNameCaseInsensitive: boolean;
|
|
452
|
-
propertyNamingPolicy: JsonNamingPolicy | undefined;
|
|
455
|
+
get propertyNamingPolicy(): JsonNamingPolicy | undefined;
|
|
456
|
+
set propertyNamingPolicy(value: JsonNamingPolicy);
|
|
453
457
|
readCommentHandling: JsonCommentHandling;
|
|
454
|
-
referenceHandler: ReferenceHandler | undefined;
|
|
458
|
+
get referenceHandler(): ReferenceHandler | undefined;
|
|
459
|
+
set referenceHandler(value: ReferenceHandler);
|
|
455
460
|
respectNullableAnnotations: boolean;
|
|
456
461
|
respectRequiredConstructorParameters: boolean;
|
|
457
|
-
typeInfoResolver: IJsonTypeInfoResolver | undefined;
|
|
462
|
+
get typeInfoResolver(): IJsonTypeInfoResolver | undefined;
|
|
463
|
+
set typeInfoResolver(value: IJsonTypeInfoResolver);
|
|
458
464
|
readonly typeInfoResolverChain: IList_1<IJsonTypeInfoResolver>;
|
|
459
465
|
unknownTypeHandling: JsonUnknownTypeHandling;
|
|
460
466
|
unmappedMemberHandling: JsonUnmappedMemberHandling;
|
|
@@ -464,7 +470,7 @@ export interface JsonSerializerOptions$instance {
|
|
|
464
470
|
getTypeInfo(type_: Type): JsonTypeInfo;
|
|
465
471
|
makeReadOnly(): void;
|
|
466
472
|
makeReadOnly(populateMissingResolver: boolean): void;
|
|
467
|
-
tryGetTypeInfo(type_: Type, typeInfo: JsonTypeInfo
|
|
473
|
+
tryGetTypeInfo(type_: Type, typeInfo: JsonTypeInfo): boolean;
|
|
468
474
|
}
|
|
469
475
|
|
|
470
476
|
|
|
@@ -580,7 +586,7 @@ export interface Utf8JsonWriter$instance {
|
|
|
580
586
|
writeString(utf8PropertyName: ReadOnlySpan_1<System_Internal.Byte>, value: Guid): void;
|
|
581
587
|
writeString(propertyName: JsonEncodedText, value: JsonEncodedText): void;
|
|
582
588
|
writeString(propertyName: string, value: JsonEncodedText): void;
|
|
583
|
-
writeString(propertyName: string, value: string
|
|
589
|
+
writeString(propertyName: string, value: string): void;
|
|
584
590
|
writeString(propertyName: ReadOnlySpan_1<System_Internal.Char>, value: ReadOnlySpan_1<System_Internal.Char>): void;
|
|
585
591
|
writeString(utf8PropertyName: ReadOnlySpan_1<System_Internal.Byte>, utf8Value: ReadOnlySpan_1<System_Internal.Byte>): void;
|
|
586
592
|
writeString(propertyName: JsonEncodedText, value: string): void;
|
|
@@ -591,9 +597,9 @@ export interface Utf8JsonWriter$instance {
|
|
|
591
597
|
writeString(propertyName: string, utf8Value: ReadOnlySpan_1<System_Internal.Byte>): void;
|
|
592
598
|
writeString(propertyName: ReadOnlySpan_1<System_Internal.Char>, utf8Value: ReadOnlySpan_1<System_Internal.Byte>): void;
|
|
593
599
|
writeString(propertyName: ReadOnlySpan_1<System_Internal.Char>, value: JsonEncodedText): void;
|
|
594
|
-
writeString(propertyName: ReadOnlySpan_1<System_Internal.Char>, value: string
|
|
600
|
+
writeString(propertyName: ReadOnlySpan_1<System_Internal.Char>, value: string): void;
|
|
595
601
|
writeString(utf8PropertyName: ReadOnlySpan_1<System_Internal.Byte>, value: JsonEncodedText): void;
|
|
596
|
-
writeString(utf8PropertyName: ReadOnlySpan_1<System_Internal.Byte>, value: string
|
|
602
|
+
writeString(utf8PropertyName: ReadOnlySpan_1<System_Internal.Byte>, value: string): void;
|
|
597
603
|
writeStringValue(value: DateTime): void;
|
|
598
604
|
writeStringValue(value: DateTimeOffset): void;
|
|
599
605
|
writeStringValue(value: Guid): void;
|
|
@@ -625,54 +631,54 @@ export type Utf8JsonWriter = Utf8JsonWriter$instance & __Utf8JsonWriter$views;
|
|
|
625
631
|
export abstract class JsonSerializer$instance {
|
|
626
632
|
static readonly isReflectionEnabledByDefault: boolean;
|
|
627
633
|
static deserialize<TValue>(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue | undefined;
|
|
628
|
-
static deserialize<TValue>(utf8Json: Stream, options?: JsonSerializerOptions): TValue;
|
|
634
|
+
static deserialize<TValue>(utf8Json: Stream, options?: JsonSerializerOptions): TValue | undefined;
|
|
629
635
|
static deserialize(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
|
|
630
|
-
static deserialize(utf8Json: Stream, returnType: Type, options?: JsonSerializerOptions
|
|
636
|
+
static deserialize(utf8Json: Stream, returnType: Type, options?: JsonSerializerOptions): unknown | undefined;
|
|
631
637
|
static deserialize(utf8Json: Stream, returnType: Type, context: JsonSerializerContext): unknown | undefined;
|
|
632
|
-
static deserialize<TValue>(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
|
|
633
|
-
static deserialize<TValue>(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, options?: JsonSerializerOptions): TValue;
|
|
638
|
+
static deserialize<TValue>(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue | undefined;
|
|
639
|
+
static deserialize<TValue>(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, options?: JsonSerializerOptions): TValue | undefined;
|
|
634
640
|
static deserialize(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
|
|
635
|
-
static deserialize(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, returnType: Type, options?: JsonSerializerOptions): unknown;
|
|
641
|
+
static deserialize(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, returnType: Type, options?: JsonSerializerOptions): unknown | undefined;
|
|
636
642
|
static deserialize(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, returnType: Type, context: JsonSerializerContext): unknown | undefined;
|
|
637
|
-
static deserialize<TValue>(json: ReadOnlySpan_1<System_Internal.Char>, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
|
|
638
|
-
static deserialize<TValue>(json: ReadOnlySpan_1<System_Internal.Char>, options?: JsonSerializerOptions): TValue;
|
|
643
|
+
static deserialize<TValue>(json: ReadOnlySpan_1<System_Internal.Char>, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue | undefined;
|
|
644
|
+
static deserialize<TValue>(json: ReadOnlySpan_1<System_Internal.Char>, options?: JsonSerializerOptions): TValue | undefined;
|
|
639
645
|
static deserialize(json: ReadOnlySpan_1<System_Internal.Char>, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
|
|
640
|
-
static deserialize(json: ReadOnlySpan_1<System_Internal.Char>, returnType: Type, options?: JsonSerializerOptions): unknown;
|
|
646
|
+
static deserialize(json: ReadOnlySpan_1<System_Internal.Char>, returnType: Type, options?: JsonSerializerOptions): unknown | undefined;
|
|
641
647
|
static deserialize(json: ReadOnlySpan_1<System_Internal.Char>, returnType: Type, context: JsonSerializerContext): unknown | undefined;
|
|
642
648
|
static deserialize<TValue>(json: string, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue | undefined;
|
|
643
|
-
static deserialize<TValue>(json: string, options?: JsonSerializerOptions): TValue;
|
|
649
|
+
static deserialize<TValue>(json: string, options?: JsonSerializerOptions): TValue | undefined;
|
|
644
650
|
static deserialize(json: string, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
|
|
645
|
-
static deserialize(json: string, returnType: Type, options?: JsonSerializerOptions
|
|
651
|
+
static deserialize(json: string, returnType: Type, options?: JsonSerializerOptions): unknown | undefined;
|
|
646
652
|
static deserialize(json: string, returnType: Type, context: JsonSerializerContext): unknown | undefined;
|
|
647
653
|
static deserialize<TValue>(document: JsonDocument, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue | undefined;
|
|
648
|
-
static deserialize<TValue>(document: JsonDocument, options?: JsonSerializerOptions): TValue;
|
|
654
|
+
static deserialize<TValue>(document: JsonDocument, options?: JsonSerializerOptions): TValue | undefined;
|
|
649
655
|
static deserialize(document: JsonDocument, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
|
|
650
|
-
static deserialize(document: JsonDocument, returnType: Type, options?: JsonSerializerOptions
|
|
656
|
+
static deserialize(document: JsonDocument, returnType: Type, options?: JsonSerializerOptions): unknown | undefined;
|
|
651
657
|
static deserialize(document: JsonDocument, returnType: Type, context: JsonSerializerContext): unknown | undefined;
|
|
652
|
-
static deserialize<TValue>(element: JsonElement, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
|
|
653
|
-
static deserialize<TValue>(element: JsonElement, options?: JsonSerializerOptions): TValue;
|
|
658
|
+
static deserialize<TValue>(element: JsonElement, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue | undefined;
|
|
659
|
+
static deserialize<TValue>(element: JsonElement, options?: JsonSerializerOptions): TValue | undefined;
|
|
654
660
|
static deserialize(element: JsonElement, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
|
|
655
|
-
static deserialize(element: JsonElement, returnType: Type, options?: JsonSerializerOptions): unknown;
|
|
661
|
+
static deserialize(element: JsonElement, returnType: Type, options?: JsonSerializerOptions): unknown | undefined;
|
|
656
662
|
static deserialize(element: JsonElement, returnType: Type, context: JsonSerializerContext): unknown | undefined;
|
|
657
|
-
static deserialize<TValue>(node: JsonNode, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
|
|
658
|
-
static deserialize<TValue>(node: JsonNode, options?: JsonSerializerOptions): TValue;
|
|
659
|
-
static deserialize(node: JsonNode, jsonTypeInfo: JsonTypeInfo): unknown;
|
|
660
|
-
static deserialize(node: JsonNode, returnType: Type, options?: JsonSerializerOptions): unknown;
|
|
661
|
-
static deserialize(node: JsonNode
|
|
662
|
-
static deserialize<TValue>(reader: Utf8JsonReader, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue;
|
|
663
|
-
static deserialize<TValue>(reader: Utf8JsonReader, options?: JsonSerializerOptions): TValue;
|
|
663
|
+
static deserialize<TValue>(node: JsonNode, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue | undefined;
|
|
664
|
+
static deserialize<TValue>(node: JsonNode, options?: JsonSerializerOptions): TValue | undefined;
|
|
665
|
+
static deserialize(node: JsonNode, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
|
|
666
|
+
static deserialize(node: JsonNode, returnType: Type, options?: JsonSerializerOptions): unknown | undefined;
|
|
667
|
+
static deserialize(node: JsonNode, returnType: Type, context: JsonSerializerContext): unknown | undefined;
|
|
668
|
+
static deserialize<TValue>(reader: Utf8JsonReader, jsonTypeInfo: JsonTypeInfo_1<TValue>): TValue | undefined;
|
|
669
|
+
static deserialize<TValue>(reader: Utf8JsonReader, options?: JsonSerializerOptions): TValue | undefined;
|
|
664
670
|
static deserialize(reader: Utf8JsonReader, jsonTypeInfo: JsonTypeInfo): unknown | undefined;
|
|
665
|
-
static deserialize(reader: Utf8JsonReader, returnType: Type, options?: JsonSerializerOptions): unknown;
|
|
671
|
+
static deserialize(reader: Utf8JsonReader, returnType: Type, options?: JsonSerializerOptions): unknown | undefined;
|
|
666
672
|
static deserialize(reader: Utf8JsonReader, returnType: Type, context: JsonSerializerContext): unknown | undefined;
|
|
667
673
|
static deserializeAsync<TValue>(utf8Json: PipeReader, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): ValueTask_1<TValue>;
|
|
668
674
|
static deserializeAsync<TValue>(utf8Json: PipeReader, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): ValueTask_1<TValue>;
|
|
669
675
|
static deserializeAsync(utf8Json: PipeReader, jsonTypeInfo: JsonTypeInfo, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
|
|
670
|
-
static deserializeAsync(utf8Json: PipeReader, returnType: Type, options?: JsonSerializerOptions
|
|
676
|
+
static deserializeAsync(utf8Json: PipeReader, returnType: Type, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
|
|
671
677
|
static deserializeAsync(utf8Json: PipeReader, returnType: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
|
|
672
678
|
static deserializeAsync<TValue>(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): ValueTask_1<TValue>;
|
|
673
679
|
static deserializeAsync<TValue>(utf8Json: Stream, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): ValueTask_1<TValue>;
|
|
674
680
|
static deserializeAsync(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
|
|
675
|
-
static deserializeAsync(utf8Json: Stream, returnType: Type, options?: JsonSerializerOptions
|
|
681
|
+
static deserializeAsync(utf8Json: Stream, returnType: Type, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
|
|
676
682
|
static deserializeAsync(utf8Json: Stream, returnType: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): ValueTask_1<unknown>;
|
|
677
683
|
static deserializeAsyncEnumerable<TValue>(utf8Json: PipeReader, jsonTypeInfo: JsonTypeInfo_1<TValue>, topLevelValues: boolean, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
|
|
678
684
|
static deserializeAsyncEnumerable<TValue>(utf8Json: PipeReader, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
|
|
@@ -682,51 +688,51 @@ export abstract class JsonSerializer$instance {
|
|
|
682
688
|
static deserializeAsyncEnumerable<TValue>(utf8Json: Stream, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
|
|
683
689
|
static deserializeAsyncEnumerable<TValue>(utf8Json: Stream, topLevelValues: boolean, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
|
|
684
690
|
static deserializeAsyncEnumerable<TValue>(utf8Json: Stream, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | undefined>;
|
|
685
|
-
static serialize(utf8Json: Stream, value: unknown
|
|
686
|
-
static serialize(utf8Json: Stream, value: unknown
|
|
687
|
-
static serialize(utf8Json: Stream, value: unknown
|
|
691
|
+
static serialize(utf8Json: Stream, value: unknown, jsonTypeInfo: JsonTypeInfo): void;
|
|
692
|
+
static serialize(utf8Json: Stream, value: unknown, inputType: Type, options?: JsonSerializerOptions): void;
|
|
693
|
+
static serialize(utf8Json: Stream, value: unknown, inputType: Type, context: JsonSerializerContext): void;
|
|
688
694
|
static serialize<TValue>(utf8Json: Stream, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): void;
|
|
689
|
-
static serialize<TValue>(utf8Json: Stream, value: TValue, options?: JsonSerializerOptions
|
|
690
|
-
static serialize(value: unknown
|
|
691
|
-
static serialize(value: unknown
|
|
692
|
-
static serialize(value: unknown
|
|
693
|
-
static serialize(writer: Utf8JsonWriter, value: unknown
|
|
694
|
-
static serialize(writer: Utf8JsonWriter, value: unknown
|
|
695
|
-
static serialize(writer: Utf8JsonWriter, value: unknown
|
|
695
|
+
static serialize<TValue>(utf8Json: Stream, value: TValue, options?: JsonSerializerOptions): void;
|
|
696
|
+
static serialize(value: unknown, jsonTypeInfo: JsonTypeInfo): string;
|
|
697
|
+
static serialize(value: unknown, inputType: Type, options?: JsonSerializerOptions): string;
|
|
698
|
+
static serialize(value: unknown, inputType: Type, context: JsonSerializerContext): string;
|
|
699
|
+
static serialize(writer: Utf8JsonWriter, value: unknown, jsonTypeInfo: JsonTypeInfo): void;
|
|
700
|
+
static serialize(writer: Utf8JsonWriter, value: unknown, inputType: Type, options?: JsonSerializerOptions): void;
|
|
701
|
+
static serialize(writer: Utf8JsonWriter, value: unknown, inputType: Type, context: JsonSerializerContext): void;
|
|
696
702
|
static serialize<TValue>(writer: Utf8JsonWriter, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): void;
|
|
697
|
-
static serialize<TValue>(writer: Utf8JsonWriter, value: TValue, options?: JsonSerializerOptions
|
|
703
|
+
static serialize<TValue>(writer: Utf8JsonWriter, value: TValue, options?: JsonSerializerOptions): void;
|
|
698
704
|
static serialize<TValue>(value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): string;
|
|
699
|
-
static serialize<TValue>(value: TValue, options?: JsonSerializerOptions
|
|
700
|
-
static serializeAsync(utf8Json: PipeWriter, value: unknown
|
|
701
|
-
static serializeAsync(utf8Json: PipeWriter, value: unknown
|
|
702
|
-
static serializeAsync(utf8Json: PipeWriter, value: unknown
|
|
705
|
+
static serialize<TValue>(value: TValue, options?: JsonSerializerOptions): string;
|
|
706
|
+
static serializeAsync(utf8Json: PipeWriter, value: unknown, jsonTypeInfo: JsonTypeInfo, cancellationToken?: CancellationToken): Task;
|
|
707
|
+
static serializeAsync(utf8Json: PipeWriter, value: unknown, inputType: Type, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task;
|
|
708
|
+
static serializeAsync(utf8Json: PipeWriter, value: unknown, inputType: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task;
|
|
703
709
|
static serializeAsync<TValue>(utf8Json: PipeWriter, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task;
|
|
704
|
-
static serializeAsync<TValue>(utf8Json: PipeWriter, value: TValue, options?: JsonSerializerOptions
|
|
705
|
-
static serializeAsync(utf8Json: Stream, value: unknown
|
|
706
|
-
static serializeAsync(utf8Json: Stream, value: unknown
|
|
707
|
-
static serializeAsync(utf8Json: Stream, value: unknown
|
|
710
|
+
static serializeAsync<TValue>(utf8Json: PipeWriter, value: TValue, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task;
|
|
711
|
+
static serializeAsync(utf8Json: Stream, value: unknown, jsonTypeInfo: JsonTypeInfo, cancellationToken?: CancellationToken): Task;
|
|
712
|
+
static serializeAsync(utf8Json: Stream, value: unknown, inputType: Type, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task;
|
|
713
|
+
static serializeAsync(utf8Json: Stream, value: unknown, inputType: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task;
|
|
708
714
|
static serializeAsync<TValue>(utf8Json: Stream, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task;
|
|
709
|
-
static serializeAsync<TValue>(utf8Json: Stream, value: TValue, options?: JsonSerializerOptions
|
|
710
|
-
static serializeToDocument(value: unknown
|
|
711
|
-
static serializeToDocument(value: unknown
|
|
712
|
-
static serializeToDocument(value: unknown
|
|
715
|
+
static serializeAsync<TValue>(utf8Json: Stream, value: TValue, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task;
|
|
716
|
+
static serializeToDocument(value: unknown, jsonTypeInfo: JsonTypeInfo): JsonDocument;
|
|
717
|
+
static serializeToDocument(value: unknown, inputType: Type, options?: JsonSerializerOptions): JsonDocument;
|
|
718
|
+
static serializeToDocument(value: unknown, inputType: Type, context: JsonSerializerContext): JsonDocument;
|
|
713
719
|
static serializeToDocument<TValue>(value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): JsonDocument;
|
|
714
|
-
static serializeToDocument<TValue>(value: TValue, options?: JsonSerializerOptions
|
|
715
|
-
static serializeToElement(value: unknown
|
|
720
|
+
static serializeToDocument<TValue>(value: TValue, options?: JsonSerializerOptions): JsonDocument;
|
|
721
|
+
static serializeToElement(value: unknown, jsonTypeInfo: JsonTypeInfo): JsonElement;
|
|
716
722
|
static serializeToElement(value: unknown, inputType: Type, options?: JsonSerializerOptions): JsonElement;
|
|
717
|
-
static serializeToElement(value: unknown
|
|
723
|
+
static serializeToElement(value: unknown, inputType: Type, context: JsonSerializerContext): JsonElement;
|
|
718
724
|
static serializeToElement<TValue>(value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): JsonElement;
|
|
719
725
|
static serializeToElement<TValue>(value: TValue, options?: JsonSerializerOptions): JsonElement;
|
|
720
|
-
static serializeToNode(value: unknown, jsonTypeInfo: JsonTypeInfo): JsonNode;
|
|
721
|
-
static serializeToNode(value: unknown, inputType: Type, options?: JsonSerializerOptions): JsonNode;
|
|
722
|
-
static serializeToNode(value: unknown
|
|
726
|
+
static serializeToNode(value: unknown, jsonTypeInfo: JsonTypeInfo): JsonNode | undefined;
|
|
727
|
+
static serializeToNode(value: unknown, inputType: Type, options?: JsonSerializerOptions): JsonNode | undefined;
|
|
728
|
+
static serializeToNode(value: unknown, inputType: Type, context: JsonSerializerContext): JsonNode | undefined;
|
|
723
729
|
static serializeToNode<TValue>(value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): JsonNode | undefined;
|
|
724
|
-
static serializeToNode<TValue>(value: TValue, options?: JsonSerializerOptions): JsonNode;
|
|
725
|
-
static serializeToUtf8Bytes(value: unknown
|
|
726
|
-
static serializeToUtf8Bytes(value: unknown
|
|
727
|
-
static serializeToUtf8Bytes(value: unknown
|
|
730
|
+
static serializeToNode<TValue>(value: TValue, options?: JsonSerializerOptions): JsonNode | undefined;
|
|
731
|
+
static serializeToUtf8Bytes(value: unknown, jsonTypeInfo: JsonTypeInfo): byte[];
|
|
732
|
+
static serializeToUtf8Bytes(value: unknown, inputType: Type, options?: JsonSerializerOptions): byte[];
|
|
733
|
+
static serializeToUtf8Bytes(value: unknown, inputType: Type, context: JsonSerializerContext): byte[];
|
|
728
734
|
static serializeToUtf8Bytes<TValue>(value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>): byte[];
|
|
729
|
-
static serializeToUtf8Bytes<TValue>(value: TValue, options?: JsonSerializerOptions
|
|
735
|
+
static serializeToUtf8Bytes<TValue>(value: TValue, options?: JsonSerializerOptions): byte[];
|
|
730
736
|
}
|
|
731
737
|
|
|
732
738
|
|
|
@@ -35,19 +35,19 @@ export type JsonNodeOptions = JsonNodeOptions$instance;
|
|
|
35
35
|
|
|
36
36
|
export interface JsonArray$instance extends JsonNode {
|
|
37
37
|
readonly count: int;
|
|
38
|
-
add<T>(value: T
|
|
39
|
-
add(item: JsonNode
|
|
38
|
+
add<T>(value: T): void;
|
|
39
|
+
add(item: JsonNode): void;
|
|
40
40
|
clear(): void;
|
|
41
|
-
contains(item: JsonNode
|
|
41
|
+
contains(item: JsonNode): boolean;
|
|
42
42
|
getEnumerator(): IEnumerator_1<JsonNode | undefined>;
|
|
43
|
-
getValues<T>(): IEnumerable_1<T
|
|
44
|
-
indexOf(item: JsonNode
|
|
45
|
-
insert(index: int, item: JsonNode
|
|
46
|
-
remove(item: JsonNode
|
|
47
|
-
removeAll(match: Func_2<JsonNode
|
|
43
|
+
getValues<T>(): IEnumerable_1<T>;
|
|
44
|
+
indexOf(item: JsonNode): int;
|
|
45
|
+
insert(index: int, item: JsonNode): void;
|
|
46
|
+
remove(item: JsonNode): boolean;
|
|
47
|
+
removeAll(match: Func_2<JsonNode, System_Internal.Boolean>): int;
|
|
48
48
|
removeAt(index: int): void;
|
|
49
49
|
removeRange(index: int, count: int): void;
|
|
50
|
-
writeTo(writer: Utf8JsonWriter
|
|
50
|
+
writeTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions): void;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
|
|
@@ -89,9 +89,9 @@ export interface JsonNode$instance {
|
|
|
89
89
|
replaceWith<T>(value: T): void;
|
|
90
90
|
set_Item(index: int, value: JsonNode | undefined): void;
|
|
91
91
|
set_Item(propertyName: string, value: JsonNode | undefined): void;
|
|
92
|
-
toJsonString(options?: JsonSerializerOptions
|
|
92
|
+
toJsonString(options?: JsonSerializerOptions): string;
|
|
93
93
|
toString(): string;
|
|
94
|
-
writeTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions
|
|
94
|
+
writeTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions): void;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
|
|
@@ -100,7 +100,7 @@ export const JsonNode: {
|
|
|
100
100
|
parse(utf8Json: Stream, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | undefined;
|
|
101
101
|
parse(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | undefined;
|
|
102
102
|
parse(json: string, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | undefined;
|
|
103
|
-
parse(reader: Utf8JsonReader, nodeOptions?: Nullable_1<JsonNodeOptions>): JsonNode;
|
|
103
|
+
parse(reader: Utf8JsonReader, nodeOptions?: Nullable_1<JsonNodeOptions>): JsonNode | undefined;
|
|
104
104
|
parseAsync(utf8Json: Stream, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions, cancellationToken?: CancellationToken): Task_1<JsonNode | undefined>;
|
|
105
105
|
};
|
|
106
106
|
|
|
@@ -109,30 +109,30 @@ export type JsonNode = JsonNode$instance;
|
|
|
109
109
|
|
|
110
110
|
export interface JsonObject$instance extends JsonNode {
|
|
111
111
|
readonly count: int;
|
|
112
|
-
add(propertyName: string, value: JsonNode
|
|
112
|
+
add(propertyName: string, value: JsonNode): void;
|
|
113
113
|
add(property: KeyValuePair_2<System_Internal.String, JsonNode>): void;
|
|
114
114
|
clear(): void;
|
|
115
115
|
containsKey(propertyName: string): boolean;
|
|
116
116
|
getAt(index: int): KeyValuePair_2<System_Internal.String, JsonNode>;
|
|
117
117
|
getEnumerator(): IEnumerator_1<KeyValuePair_2<System_Internal.String, JsonNode>>;
|
|
118
118
|
indexOf(propertyName: string): int;
|
|
119
|
-
insert(index: int, propertyName: string, value: JsonNode
|
|
119
|
+
insert(index: int, propertyName: string, value: JsonNode): void;
|
|
120
120
|
remove(propertyName: string): boolean;
|
|
121
121
|
removeAt(index: int): void;
|
|
122
|
-
setAt(index: int, propertyName: string, value: JsonNode
|
|
122
|
+
setAt(index: int, propertyName: string, value: JsonNode): void;
|
|
123
123
|
setAt(index: int, value: JsonNode): void;
|
|
124
|
-
tryAdd(propertyName: string, value: JsonNode
|
|
125
|
-
tryAdd(propertyName: string, value: JsonNode
|
|
126
|
-
tryGetPropertyValue(propertyName: string, jsonNode: JsonNode
|
|
127
|
-
tryGetPropertyValue(propertyName: string, jsonNode: JsonNode
|
|
128
|
-
writeTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions
|
|
124
|
+
tryAdd(propertyName: string, value: JsonNode): boolean;
|
|
125
|
+
tryAdd(propertyName: string, value: JsonNode, index: int): boolean;
|
|
126
|
+
tryGetPropertyValue(propertyName: string, jsonNode: JsonNode): boolean;
|
|
127
|
+
tryGetPropertyValue(propertyName: string, jsonNode: JsonNode, index: int): boolean;
|
|
128
|
+
writeTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions): void;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
export const JsonObject: {
|
|
133
133
|
new(options: Nullable_1<JsonNodeOptions>): JsonObject;
|
|
134
134
|
new(properties: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsonNode>>, options: Nullable_1<JsonNodeOptions>): JsonObject;
|
|
135
|
-
create(element: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonObject;
|
|
135
|
+
create(element: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonObject | undefined;
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
|
|
@@ -148,22 +148,22 @@ export type JsonObject = JsonObject$instance & __JsonObject$views;
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
export interface JsonValue$instance extends JsonNode {
|
|
151
|
-
tryGetValue<T>(value: T
|
|
151
|
+
tryGetValue<T>(value: T): boolean;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
export const JsonValue: {
|
|
156
|
-
create(value: boolean, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
157
|
-
create(value: byte, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
158
|
-
create(value: char, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
159
|
-
create(value: DateTime, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
160
|
-
create(value: DateTimeOffset, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
161
|
-
create(value: decimal, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
162
|
-
create(value: double, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
163
|
-
create(value: Guid, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
164
|
-
create(value: short, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
165
|
-
create(value: int, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
166
|
-
create(value: long, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
156
|
+
create(value: boolean, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
157
|
+
create(value: byte, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
158
|
+
create(value: char, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
159
|
+
create(value: DateTime, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
160
|
+
create(value: DateTimeOffset, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
161
|
+
create(value: decimal, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
162
|
+
create(value: double, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
163
|
+
create(value: Guid, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
164
|
+
create(value: short, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
165
|
+
create(value: int, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
166
|
+
create(value: long, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
167
167
|
create(value: Nullable_1<System_Internal.Boolean>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
168
168
|
create(value: Nullable_1<System_Internal.Byte>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
169
169
|
create(value: Nullable_1<System_Internal.Char>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
@@ -181,15 +181,15 @@ export const JsonValue: {
|
|
|
181
181
|
create(value: Nullable_1<System_Internal.UInt16>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
182
182
|
create(value: Nullable_1<System_Internal.UInt32>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
183
183
|
create(value: Nullable_1<System_Internal.UInt64>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
184
|
-
create(value: sbyte, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
185
|
-
create(value: float, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
186
|
-
create(value: string
|
|
184
|
+
create(value: sbyte, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
185
|
+
create(value: float, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
186
|
+
create(value: string, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
187
187
|
create(value: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
188
|
-
create(value: ushort, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
189
|
-
create(value: uint, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
190
|
-
create(value: ulong, options?: Nullable_1<JsonNodeOptions>): JsonValue
|
|
191
|
-
create<T>(value: T
|
|
192
|
-
create<T>(value: T
|
|
188
|
+
create(value: ushort, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
189
|
+
create(value: uint, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
190
|
+
create(value: ulong, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
191
|
+
create<T>(value: T, jsonTypeInfo: JsonTypeInfo_1<T>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
192
|
+
create<T>(value: T, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
195
|
|
|
@@ -28,7 +28,8 @@ export const JsonSchemaExporterContext: {
|
|
|
28
28
|
export type JsonSchemaExporterContext = JsonSchemaExporterContext$instance;
|
|
29
29
|
|
|
30
30
|
export interface JsonSchemaExporterOptions$instance {
|
|
31
|
-
transformSchemaNode: Func_3<JsonSchemaExporterContext, JsonNode, JsonNode> | undefined;
|
|
31
|
+
get transformSchemaNode(): Func_3<JsonSchemaExporterContext, JsonNode, JsonNode> | undefined;
|
|
32
|
+
set transformSchemaNode(value: Func_3<JsonSchemaExporterContext, JsonNode, JsonNode>);
|
|
32
33
|
treatNullObliviousAsNonNullable: boolean;
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -42,8 +43,8 @@ export const JsonSchemaExporterOptions: {
|
|
|
42
43
|
export type JsonSchemaExporterOptions = JsonSchemaExporterOptions$instance;
|
|
43
44
|
|
|
44
45
|
export abstract class JsonSchemaExporter$instance {
|
|
45
|
-
static getJsonSchemaAsNode(options: JsonSerializerOptions, type_: Type, exporterOptions?: JsonSchemaExporterOptions
|
|
46
|
-
static getJsonSchemaAsNode(typeInfo: JsonTypeInfo, exporterOptions?: JsonSchemaExporterOptions
|
|
46
|
+
static getJsonSchemaAsNode(options: JsonSerializerOptions, type_: Type, exporterOptions?: JsonSchemaExporterOptions): JsonNode;
|
|
47
|
+
static getJsonSchemaAsNode(typeInfo: JsonTypeInfo, exporterOptions?: JsonSchemaExporterOptions): JsonNode;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
|
|
@@ -133,7 +133,7 @@ export type JsonConstructorAttribute = JsonConstructorAttribute$instance;
|
|
|
133
133
|
|
|
134
134
|
export interface JsonConverter$instance {
|
|
135
135
|
readonly type_: Type;
|
|
136
|
-
canConvert(typeToConvert: Type
|
|
136
|
+
canConvert(typeToConvert: Type): boolean;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
|
|
@@ -175,7 +175,7 @@ export type JsonConverterAttribute = JsonConverterAttribute$instance;
|
|
|
175
175
|
|
|
176
176
|
export interface JsonConverterFactory$instance extends JsonConverter {
|
|
177
177
|
readonly type_: Type;
|
|
178
|
-
createConverter(typeToConvert: Type
|
|
178
|
+
createConverter(typeToConvert: Type, options: JsonSerializerOptions): JsonConverter | undefined;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
|
|
@@ -322,12 +322,13 @@ export type JsonRequiredAttribute = JsonRequiredAttribute$instance;
|
|
|
322
322
|
|
|
323
323
|
export interface JsonSerializableAttribute$instance extends JsonAttribute {
|
|
324
324
|
generationMode: JsonSourceGenerationMode;
|
|
325
|
-
typeInfoPropertyName: string | undefined;
|
|
325
|
+
get typeInfoPropertyName(): string | undefined;
|
|
326
|
+
set typeInfoPropertyName(value: string);
|
|
326
327
|
}
|
|
327
328
|
|
|
328
329
|
|
|
329
330
|
export const JsonSerializableAttribute: {
|
|
330
|
-
new(type_: Type
|
|
331
|
+
new(type_: Type): JsonSerializableAttribute;
|
|
331
332
|
};
|
|
332
333
|
|
|
333
334
|
|