@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.
- package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +21 -21
- package/Microsoft.VisualBasic/internal/index.d.ts +24 -24
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +30 -30
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +16 -16
- package/Microsoft.Win32/internal/index.d.ts +12 -12
- package/Microsoft.Win32.SafeHandles/internal/index.d.ts +19 -19
- package/System/bindings.json +114 -114
- package/System/internal/index.d.ts +1277 -1289
- package/System/internal/metadata.json +73 -73
- package/System.Buffers/internal/index.d.ts +13 -13
- package/System.CodeDom.Compiler/internal/index.d.ts +13 -13
- package/System.Collections/internal/index.d.ts +66 -68
- package/System.Collections.Concurrent/internal/index.d.ts +24 -24
- package/System.Collections.Frozen/bindings.json +20 -20
- package/System.Collections.Frozen/internal/index.d.ts +10 -10
- package/System.Collections.Frozen/internal/metadata.json +10 -10
- package/System.Collections.Generic/bindings.json +44 -20
- package/System.Collections.Generic/internal/index.d.ts +141 -133
- package/System.Collections.Generic/internal/metadata.json +26 -10
- package/System.Collections.Immutable/internal/index.d.ts +121 -121
- package/System.Collections.ObjectModel/internal/index.d.ts +23 -23
- package/System.Collections.Specialized/internal/index.d.ts +85 -87
- package/System.ComponentModel/internal/index.d.ts +595 -597
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +105 -105
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +9 -9
- package/System.ComponentModel.Design/internal/index.d.ts +90 -90
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +37 -37
- package/System.Data/internal/index.d.ts +225 -225
- package/System.Data.Common/internal/index.d.ts +62 -62
- package/System.Data.SqlTypes/internal/index.d.ts +73 -73
- package/System.Diagnostics/internal/index.d.ts +343 -343
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +50 -50
- package/System.Diagnostics.Contracts/internal/index.d.ts +20 -20
- package/System.Diagnostics.Metrics/internal/index.d.ts +46 -46
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +9 -9
- package/System.Diagnostics.Tracing/internal/index.d.ts +44 -44
- package/System.Drawing/internal/index.d.ts +99 -99
- package/System.Dynamic/internal/index.d.ts +33 -33
- package/System.Formats.Asn1/internal/index.d.ts +12 -12
- package/System.Formats.Tar/internal/index.d.ts +17 -17
- package/System.Globalization/internal/index.d.ts +51 -51
- package/System.IO/internal/index.d.ts +172 -172
- package/System.IO.Compression/internal/index.d.ts +56 -56
- package/System.IO.Enumeration/internal/index.d.ts +6 -6
- package/System.IO.IsolatedStorage/internal/index.d.ts +17 -17
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -11
- package/System.IO.Pipelines/internal/index.d.ts +13 -13
- package/System.IO.Pipes/internal/index.d.ts +32 -32
- package/System.Linq/internal/index.d.ts +187 -187
- package/System.Linq.Expressions/internal/index.d.ts +203 -203
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +3 -3
- package/System.Net/internal/index.d.ts +218 -220
- package/System.Net.Cache/internal/index.d.ts +10 -10
- package/System.Net.Http/internal/index.d.ts +89 -89
- package/System.Net.Http.Headers/internal/index.d.ts +86 -86
- package/System.Net.Http.Json/internal/index.d.ts +59 -59
- package/System.Net.Http.Metrics/internal/index.d.ts +2 -2
- package/System.Net.Mail/internal/index.d.ts +92 -92
- package/System.Net.Mime/internal/index.d.ts +6 -6
- package/System.Net.NetworkInformation/internal/index.d.ts +39 -39
- package/System.Net.Quic/internal/index.d.ts +13 -13
- package/System.Net.Security/internal/index.d.ts +70 -70
- package/System.Net.ServerSentEvents/internal/index.d.ts +3 -3
- package/System.Net.Sockets/internal/index.d.ts +94 -94
- package/System.Net.WebSockets/internal/index.d.ts +46 -46
- package/System.Numerics/bindings.json +384 -0
- package/System.Numerics/internal/index.d.ts +128 -130
- package/System.Numerics/internal/metadata.json +256 -0
- package/System.Reflection/internal/index.d.ts +271 -271
- package/System.Reflection.Emit/internal/index.d.ts +123 -123
- package/System.Reflection.Metadata/bindings.json +48 -0
- package/System.Reflection.Metadata/internal/index.d.ts +179 -179
- package/System.Reflection.Metadata/internal/metadata.json +32 -0
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +40 -40
- package/System.Reflection.PortableExecutable/internal/index.d.ts +26 -26
- package/System.Resources/internal/index.d.ts +38 -38
- package/System.Runtime/internal/index.d.ts +9 -9
- package/System.Runtime.CompilerServices/internal/index.d.ts +168 -168
- package/System.Runtime.ConstrainedExecution/internal/index.d.ts +2 -2
- package/System.Runtime.ExceptionServices/internal/index.d.ts +3 -3
- package/System.Runtime.InteropServices/bindings.json +22 -22
- package/System.Runtime.InteropServices/internal/index.d.ts +184 -184
- package/System.Runtime.InteropServices/internal/metadata.json +13 -13
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +30 -30
- package/System.Runtime.InteropServices.Java/internal/index.d.ts +3 -3
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +50 -50
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +63 -63
- package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +1 -1
- package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -4
- package/System.Runtime.Intrinsics/internal/index.d.ts +4 -4
- package/System.Runtime.Loader/internal/index.d.ts +9 -9
- package/System.Runtime.Remoting/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization/internal/index.d.ts +113 -115
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +19 -19
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +2 -2
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +5 -5
- package/System.Runtime.Serialization.Json/internal/index.d.ts +28 -28
- package/System.Runtime.Versioning/internal/index.d.ts +22 -22
- package/System.Security/internal/index.d.ts +63 -63
- package/System.Security.AccessControl/internal/index.d.ts +84 -84
- package/System.Security.Authentication/internal/index.d.ts +6 -6
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +13 -13
- package/System.Security.Claims/internal/index.d.ts +38 -40
- package/System.Security.Cryptography/internal/index.d.ts +378 -378
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +172 -172
- package/System.Security.Permissions/internal/index.d.ts +1 -1
- package/System.Security.Policy/internal/index.d.ts +6 -6
- package/System.Security.Principal/internal/index.d.ts +29 -31
- package/System.Text/internal/index.d.ts +94 -94
- package/System.Text.Encodings.Web/internal/index.d.ts +3 -3
- package/System.Text.Json/internal/index.d.ts +103 -103
- package/System.Text.Json.Nodes/internal/index.d.ts +73 -73
- package/System.Text.Json.Schema/internal/index.d.ts +7 -7
- package/System.Text.Json.Serialization/internal/index.d.ts +34 -34
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +57 -57
- package/System.Text.RegularExpressions/internal/index.d.ts +29 -29
- package/System.Text.Unicode/internal/index.d.ts +6 -6
- package/System.Threading/internal/index.d.ts +160 -160
- package/System.Threading.Channels/internal/index.d.ts +12 -12
- package/System.Threading.Tasks/internal/index.d.ts +125 -135
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +54 -51
- package/System.Threading.Tasks.Sources/internal/index.d.ts +5 -5
- package/System.Timers/internal/index.d.ts +8 -8
- package/System.Transactions/internal/index.d.ts +51 -51
- package/System.Web/internal/index.d.ts +32 -32
- package/System.Windows.Input/internal/index.d.ts +2 -2
- package/System.Windows.Markup/internal/index.d.ts +2 -2
- package/System.Xml/internal/index.d.ts +281 -281
- package/System.Xml.Linq/internal/index.d.ts +76 -76
- package/System.Xml.Resolvers/internal/index.d.ts +8 -8
- package/System.Xml.Schema/internal/index.d.ts +173 -173
- package/System.Xml.Serialization/internal/index.d.ts +200 -200
- package/System.Xml.XPath/internal/index.d.ts +28 -28
- package/System.Xml.Xsl/internal/index.d.ts +53 -53
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +72 -72
- package/__internal/extensions/index.d.ts +415 -414
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ export interface JsonNodeOptions$instance {
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
export const JsonNodeOptions: {
|
|
30
|
-
new(): JsonNodeOptions
|
|
30
|
+
new(): JsonNodeOptions;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
|
|
@@ -35,29 +35,29 @@ 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): void;
|
|
39
|
-
add(item: JsonNode): void;
|
|
38
|
+
add<T>(value: T | undefined): void;
|
|
39
|
+
add(item: JsonNode | undefined): void;
|
|
40
40
|
clear(): void;
|
|
41
|
-
contains(item: JsonNode): boolean;
|
|
42
|
-
getEnumerator(): IEnumerator_1<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;
|
|
41
|
+
contains(item: JsonNode | undefined): boolean;
|
|
42
|
+
getEnumerator(): IEnumerator_1<JsonNode | undefined>;
|
|
43
|
+
getValues<T>(): IEnumerable_1<T | undefined> | undefined;
|
|
44
|
+
indexOf(item: JsonNode | undefined): int;
|
|
45
|
+
insert(index: int, item: JsonNode | undefined): void;
|
|
46
|
+
remove(item: JsonNode | undefined): boolean;
|
|
47
|
+
removeAll(match: Func_2<JsonNode | undefined, System_Internal.Boolean>): int;
|
|
48
48
|
removeAt(index: int): void;
|
|
49
49
|
removeRange(index: int, count: int): void;
|
|
50
|
-
writeTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions): void;
|
|
50
|
+
writeTo(writer: Utf8JsonWriter | undefined, options?: JsonSerializerOptions | undefined): void;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
export const JsonArray: {
|
|
55
|
-
new(options: Nullable_1<JsonNodeOptions>): JsonArray
|
|
56
|
-
new(options: JsonNodeOptions, items: JsonNode[]): JsonArray
|
|
57
|
-
new(options: JsonNodeOptions, items: ReadOnlySpan_1<JsonNode>): JsonArray
|
|
58
|
-
new(items: JsonNode[]): JsonArray
|
|
59
|
-
new(items: ReadOnlySpan_1<JsonNode>): JsonArray
|
|
60
|
-
create(element: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonArray;
|
|
55
|
+
new(options: Nullable_1<JsonNodeOptions>): JsonArray;
|
|
56
|
+
new(options: JsonNodeOptions, items: JsonNode[]): JsonArray;
|
|
57
|
+
new(options: JsonNodeOptions, items: ReadOnlySpan_1<JsonNode>): JsonArray;
|
|
58
|
+
new(items: JsonNode[]): JsonArray;
|
|
59
|
+
new(items: ReadOnlySpan_1<JsonNode>): JsonArray;
|
|
60
|
+
create(element: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonArray | undefined;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
|
|
@@ -87,21 +87,21 @@ export interface JsonNode$instance {
|
|
|
87
87
|
getValue<T>(): T;
|
|
88
88
|
getValueKind(): JsonValueKind;
|
|
89
89
|
replaceWith<T>(value: T): void;
|
|
90
|
-
set_Item(index: int, value: JsonNode): void;
|
|
91
|
-
set_Item(propertyName: string, value: JsonNode): void;
|
|
92
|
-
toJsonString(options?: JsonSerializerOptions): string;
|
|
90
|
+
set_Item(index: int, value: JsonNode | undefined): void;
|
|
91
|
+
set_Item(propertyName: string, value: JsonNode | undefined): void;
|
|
92
|
+
toJsonString(options?: JsonSerializerOptions | undefined): string;
|
|
93
93
|
toString(): string;
|
|
94
|
-
writeTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions): void;
|
|
94
|
+
writeTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions | undefined): void;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
export const JsonNode: {
|
|
99
99
|
deepEquals(node1: JsonNode, node2: JsonNode): boolean;
|
|
100
|
-
parse(utf8Json: Stream, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode;
|
|
101
|
-
parse(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode;
|
|
102
|
-
parse(json: string, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode;
|
|
100
|
+
parse(utf8Json: Stream, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | undefined;
|
|
101
|
+
parse(utf8Json: ReadOnlySpan_1<System_Internal.Byte>, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | undefined;
|
|
102
|
+
parse(json: string, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions): JsonNode | undefined;
|
|
103
103
|
parse(reader: Utf8JsonReader, nodeOptions?: Nullable_1<JsonNodeOptions>): JsonNode;
|
|
104
|
-
parseAsync(utf8Json: Stream, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions, cancellationToken?: CancellationToken): Task_1<JsonNode>;
|
|
104
|
+
parseAsync(utf8Json: Stream, nodeOptions?: Nullable_1<JsonNodeOptions>, documentOptions?: JsonDocumentOptions, cancellationToken?: CancellationToken): Task_1<JsonNode | undefined>;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
|
|
@@ -109,29 +109,29 @@ 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): void;
|
|
112
|
+
add(propertyName: string, value: JsonNode | undefined): 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): void;
|
|
119
|
+
insert(index: int, propertyName: string, value: JsonNode | undefined): void;
|
|
120
120
|
remove(propertyName: string): boolean;
|
|
121
121
|
removeAt(index: int): void;
|
|
122
|
-
setAt(index: int, propertyName: string, value: JsonNode): void;
|
|
122
|
+
setAt(index: int, propertyName: string, value: JsonNode | undefined): void;
|
|
123
123
|
setAt(index: int, value: JsonNode): void;
|
|
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;
|
|
124
|
+
tryAdd(propertyName: string, value: JsonNode | undefined): boolean;
|
|
125
|
+
tryAdd(propertyName: string, value: JsonNode | undefined, index: int): boolean;
|
|
126
|
+
tryGetPropertyValue(propertyName: string, jsonNode: JsonNode | undefined): boolean;
|
|
127
|
+
tryGetPropertyValue(propertyName: string, jsonNode: JsonNode | undefined, index: int): boolean;
|
|
128
|
+
writeTo(writer: Utf8JsonWriter, options?: JsonSerializerOptions | undefined): void;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
export const JsonObject: {
|
|
133
|
-
new(options: Nullable_1<JsonNodeOptions>): JsonObject
|
|
134
|
-
new(properties: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsonNode>>, options: Nullable_1<JsonNodeOptions>): JsonObject
|
|
133
|
+
new(options: Nullable_1<JsonNodeOptions>): JsonObject;
|
|
134
|
+
new(properties: IEnumerable_1<KeyValuePair_2<System_Internal.String, JsonNode>>, options: Nullable_1<JsonNodeOptions>): JsonObject;
|
|
135
135
|
create(element: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonObject;
|
|
136
136
|
};
|
|
137
137
|
|
|
@@ -148,48 +148,48 @@ export type JsonObject = JsonObject$instance & __JsonObject$views;
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
export interface JsonValue$instance extends JsonNode {
|
|
151
|
-
tryGetValue<T>(value: T): boolean;
|
|
151
|
+
tryGetValue<T>(value: T | undefined): 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;
|
|
167
|
-
create(value: Nullable_1<System_Internal.Boolean>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
168
|
-
create(value: Nullable_1<System_Internal.Byte>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
169
|
-
create(value: Nullable_1<System_Internal.Char>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
170
|
-
create(value: Nullable_1<DateTime>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
171
|
-
create(value: Nullable_1<DateTimeOffset>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
172
|
-
create(value: Nullable_1<System_Internal.Decimal>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
173
|
-
create(value: Nullable_1<System_Internal.Double>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
174
|
-
create(value: Nullable_1<Guid>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
175
|
-
create(value: Nullable_1<System_Internal.Int16>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
176
|
-
create(value: Nullable_1<System_Internal.Int32>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
177
|
-
create(value: Nullable_1<System_Internal.Int64>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
178
|
-
create(value: Nullable_1<System_Internal.SByte>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
179
|
-
create(value: Nullable_1<System_Internal.Single>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
180
|
-
create(value: Nullable_1<JsonElement>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
181
|
-
create(value: Nullable_1<System_Internal.UInt16>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
182
|
-
create(value: Nullable_1<System_Internal.UInt32>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
183
|
-
create(value: Nullable_1<System_Internal.UInt64>, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
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;
|
|
187
|
-
create(value: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
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;
|
|
192
|
-
create<T>(value: T, options?: Nullable_1<JsonNodeOptions>): JsonValue;
|
|
156
|
+
create(value: boolean, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
157
|
+
create(value: byte, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
158
|
+
create(value: char, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
159
|
+
create(value: DateTime, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
160
|
+
create(value: DateTimeOffset, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
161
|
+
create(value: decimal, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
162
|
+
create(value: double, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
163
|
+
create(value: Guid, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
164
|
+
create(value: short, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
165
|
+
create(value: int, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
166
|
+
create(value: long, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
167
|
+
create(value: Nullable_1<System_Internal.Boolean>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
168
|
+
create(value: Nullable_1<System_Internal.Byte>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
169
|
+
create(value: Nullable_1<System_Internal.Char>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
170
|
+
create(value: Nullable_1<DateTime>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
171
|
+
create(value: Nullable_1<DateTimeOffset>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
172
|
+
create(value: Nullable_1<System_Internal.Decimal>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
173
|
+
create(value: Nullable_1<System_Internal.Double>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
174
|
+
create(value: Nullable_1<Guid>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
175
|
+
create(value: Nullable_1<System_Internal.Int16>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
176
|
+
create(value: Nullable_1<System_Internal.Int32>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
177
|
+
create(value: Nullable_1<System_Internal.Int64>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
178
|
+
create(value: Nullable_1<System_Internal.SByte>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
179
|
+
create(value: Nullable_1<System_Internal.Single>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
180
|
+
create(value: Nullable_1<JsonElement>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
181
|
+
create(value: Nullable_1<System_Internal.UInt16>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
182
|
+
create(value: Nullable_1<System_Internal.UInt32>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
183
|
+
create(value: Nullable_1<System_Internal.UInt64>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
184
|
+
create(value: sbyte, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
185
|
+
create(value: float, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
186
|
+
create(value: string | undefined, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
187
|
+
create(value: JsonElement, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
188
|
+
create(value: ushort, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
189
|
+
create(value: uint, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
190
|
+
create(value: ulong, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
191
|
+
create<T>(value: T | undefined, jsonTypeInfo: JsonTypeInfo_1<T>, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
192
|
+
create<T>(value: T | undefined, options?: Nullable_1<JsonNodeOptions>): JsonValue | undefined;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
195
|
|
|
@@ -13,28 +13,28 @@ import * as System_Internal from "../../System/internal/index.js";
|
|
|
13
13
|
import type { Boolean as ClrBoolean, Func_3, Int32, Object as ClrObject, ReadOnlySpan_1, String as ClrString, Type, ValueType } from "../../System/internal/index.js";
|
|
14
14
|
|
|
15
15
|
export interface JsonSchemaExporterContext$instance {
|
|
16
|
-
readonly baseTypeInfo: JsonTypeInfo;
|
|
16
|
+
readonly baseTypeInfo: JsonTypeInfo | undefined;
|
|
17
17
|
readonly path: ReadOnlySpan_1<System_Internal.String>;
|
|
18
|
-
readonly propertyInfo: JsonPropertyInfo;
|
|
18
|
+
readonly propertyInfo: JsonPropertyInfo | undefined;
|
|
19
19
|
readonly typeInfo: JsonTypeInfo;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
export const JsonSchemaExporterContext: {
|
|
24
|
-
new(): JsonSchemaExporterContext
|
|
24
|
+
new(): JsonSchemaExporterContext;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
export type JsonSchemaExporterContext = JsonSchemaExporterContext$instance;
|
|
29
29
|
|
|
30
30
|
export interface JsonSchemaExporterOptions$instance {
|
|
31
|
-
transformSchemaNode: Func_3<JsonSchemaExporterContext, JsonNode, JsonNode
|
|
31
|
+
transformSchemaNode: Func_3<JsonSchemaExporterContext, JsonNode, JsonNode> | undefined;
|
|
32
32
|
treatNullObliviousAsNonNullable: boolean;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
export const JsonSchemaExporterOptions: {
|
|
37
|
-
new(): JsonSchemaExporterOptions
|
|
37
|
+
new(): JsonSchemaExporterOptions;
|
|
38
38
|
readonly default_: JsonSchemaExporterOptions;
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -42,8 +42,8 @@ export const JsonSchemaExporterOptions: {
|
|
|
42
42
|
export type JsonSchemaExporterOptions = JsonSchemaExporterOptions$instance;
|
|
43
43
|
|
|
44
44
|
export abstract class JsonSchemaExporter$instance {
|
|
45
|
-
static getJsonSchemaAsNode(options: JsonSerializerOptions, type_: Type, exporterOptions?: JsonSchemaExporterOptions): JsonNode;
|
|
46
|
-
static getJsonSchemaAsNode(typeInfo: JsonTypeInfo, exporterOptions?: JsonSchemaExporterOptions): JsonNode;
|
|
45
|
+
static getJsonSchemaAsNode(options: JsonSerializerOptions, type_: Type, exporterOptions?: JsonSchemaExporterOptions | undefined): JsonNode;
|
|
46
|
+
static getJsonSchemaAsNode(typeInfo: JsonTypeInfo, exporterOptions?: JsonSchemaExporterOptions | undefined): JsonNode;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
|
|
@@ -125,7 +125,7 @@ export interface JsonConstructorAttribute$instance extends JsonAttribute {
|
|
|
125
125
|
|
|
126
126
|
|
|
127
127
|
export const JsonConstructorAttribute: {
|
|
128
|
-
new(): JsonConstructorAttribute
|
|
128
|
+
new(): JsonConstructorAttribute;
|
|
129
129
|
};
|
|
130
130
|
|
|
131
131
|
|
|
@@ -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): boolean;
|
|
136
|
+
canConvert(typeToConvert: Type | undefined): boolean;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
|
|
@@ -147,7 +147,7 @@ export interface JsonConverter_1$instance<T> extends JsonConverter {
|
|
|
147
147
|
readonly handleNull: boolean;
|
|
148
148
|
readonly type_: Type;
|
|
149
149
|
canConvert(typeToConvert: Type): boolean;
|
|
150
|
-
read(reader: Utf8JsonReader, typeToConvert: Type, options: JsonSerializerOptions): T;
|
|
150
|
+
read(reader: Utf8JsonReader, typeToConvert: Type, options: JsonSerializerOptions): T | undefined;
|
|
151
151
|
readAsPropertyName(reader: Utf8JsonReader, typeToConvert: Type, options: JsonSerializerOptions): T;
|
|
152
152
|
write(writer: Utf8JsonWriter, value: T, options: JsonSerializerOptions): void;
|
|
153
153
|
writeAsPropertyName(writer: Utf8JsonWriter, value: T, options: JsonSerializerOptions): void;
|
|
@@ -161,13 +161,13 @@ export const JsonConverter_1: {
|
|
|
161
161
|
export type JsonConverter_1<T> = JsonConverter_1$instance<T>;
|
|
162
162
|
|
|
163
163
|
export interface JsonConverterAttribute$instance extends JsonAttribute {
|
|
164
|
-
readonly converterType: Type;
|
|
165
|
-
createConverter(typeToConvert: Type): JsonConverter;
|
|
164
|
+
readonly converterType: Type | undefined;
|
|
165
|
+
createConverter(typeToConvert: Type): JsonConverter | undefined;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
|
|
169
169
|
export const JsonConverterAttribute: {
|
|
170
|
-
new(converterType: Type): JsonConverterAttribute
|
|
170
|
+
new(converterType: Type): JsonConverterAttribute;
|
|
171
171
|
};
|
|
172
172
|
|
|
173
173
|
|
|
@@ -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, options: JsonSerializerOptions): JsonConverter;
|
|
178
|
+
createConverter(typeToConvert: Type | undefined, options: JsonSerializerOptions | undefined): JsonConverter | undefined;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
|
|
@@ -187,14 +187,14 @@ export type JsonConverterFactory = JsonConverterFactory$instance;
|
|
|
187
187
|
|
|
188
188
|
export interface JsonDerivedTypeAttribute$instance extends JsonAttribute {
|
|
189
189
|
readonly derivedType: Type;
|
|
190
|
-
readonly typeDiscriminator: unknown;
|
|
190
|
+
readonly typeDiscriminator: unknown | undefined;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
export const JsonDerivedTypeAttribute: {
|
|
195
|
-
new(derivedType: Type): JsonDerivedTypeAttribute
|
|
196
|
-
new(derivedType: Type, typeDiscriminator: string): JsonDerivedTypeAttribute
|
|
197
|
-
new(derivedType: Type, typeDiscriminator: int): JsonDerivedTypeAttribute
|
|
195
|
+
new(derivedType: Type): JsonDerivedTypeAttribute;
|
|
196
|
+
new(derivedType: Type, typeDiscriminator: string): JsonDerivedTypeAttribute;
|
|
197
|
+
new(derivedType: Type, typeDiscriminator: int): JsonDerivedTypeAttribute;
|
|
198
198
|
};
|
|
199
199
|
|
|
200
200
|
|
|
@@ -205,7 +205,7 @@ export interface JsonExtensionDataAttribute$instance extends JsonAttribute {
|
|
|
205
205
|
|
|
206
206
|
|
|
207
207
|
export const JsonExtensionDataAttribute: {
|
|
208
|
-
new(): JsonExtensionDataAttribute
|
|
208
|
+
new(): JsonExtensionDataAttribute;
|
|
209
209
|
};
|
|
210
210
|
|
|
211
211
|
|
|
@@ -217,7 +217,7 @@ export interface JsonIgnoreAttribute$instance extends JsonAttribute {
|
|
|
217
217
|
|
|
218
218
|
|
|
219
219
|
export const JsonIgnoreAttribute: {
|
|
220
|
-
new(): JsonIgnoreAttribute
|
|
220
|
+
new(): JsonIgnoreAttribute;
|
|
221
221
|
};
|
|
222
222
|
|
|
223
223
|
|
|
@@ -228,7 +228,7 @@ export interface JsonIncludeAttribute$instance extends JsonAttribute {
|
|
|
228
228
|
|
|
229
229
|
|
|
230
230
|
export const JsonIncludeAttribute: {
|
|
231
|
-
new(): JsonIncludeAttribute
|
|
231
|
+
new(): JsonIncludeAttribute;
|
|
232
232
|
};
|
|
233
233
|
|
|
234
234
|
|
|
@@ -236,12 +236,12 @@ export type JsonIncludeAttribute = JsonIncludeAttribute$instance;
|
|
|
236
236
|
|
|
237
237
|
export interface JsonNumberEnumConverter_1$instance<TEnum extends number> extends JsonConverterFactory {
|
|
238
238
|
canConvert(typeToConvert: Type): boolean;
|
|
239
|
-
createConverter(typeToConvert: Type, options: JsonSerializerOptions): JsonConverter;
|
|
239
|
+
createConverter(typeToConvert: Type, options: JsonSerializerOptions): JsonConverter | undefined;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
|
|
243
243
|
export const JsonNumberEnumConverter_1: {
|
|
244
|
-
new<TEnum extends number>(): JsonNumberEnumConverter_1
|
|
244
|
+
new<TEnum extends number>(): JsonNumberEnumConverter_1<TEnum>;
|
|
245
245
|
};
|
|
246
246
|
|
|
247
247
|
|
|
@@ -253,7 +253,7 @@ export interface JsonNumberHandlingAttribute$instance extends JsonAttribute {
|
|
|
253
253
|
|
|
254
254
|
|
|
255
255
|
export const JsonNumberHandlingAttribute: {
|
|
256
|
-
new(handling: JsonNumberHandling): JsonNumberHandlingAttribute
|
|
256
|
+
new(handling: JsonNumberHandling): JsonNumberHandlingAttribute;
|
|
257
257
|
};
|
|
258
258
|
|
|
259
259
|
|
|
@@ -265,7 +265,7 @@ export interface JsonObjectCreationHandlingAttribute$instance extends JsonAttrib
|
|
|
265
265
|
|
|
266
266
|
|
|
267
267
|
export const JsonObjectCreationHandlingAttribute: {
|
|
268
|
-
new(handling: JsonObjectCreationHandling): JsonObjectCreationHandlingAttribute
|
|
268
|
+
new(handling: JsonObjectCreationHandling): JsonObjectCreationHandlingAttribute;
|
|
269
269
|
};
|
|
270
270
|
|
|
271
271
|
|
|
@@ -279,7 +279,7 @@ export interface JsonPolymorphicAttribute$instance extends JsonAttribute {
|
|
|
279
279
|
|
|
280
280
|
|
|
281
281
|
export const JsonPolymorphicAttribute: {
|
|
282
|
-
new(): JsonPolymorphicAttribute
|
|
282
|
+
new(): JsonPolymorphicAttribute;
|
|
283
283
|
};
|
|
284
284
|
|
|
285
285
|
|
|
@@ -291,7 +291,7 @@ export interface JsonPropertyNameAttribute$instance extends JsonAttribute {
|
|
|
291
291
|
|
|
292
292
|
|
|
293
293
|
export const JsonPropertyNameAttribute: {
|
|
294
|
-
new(name: string): JsonPropertyNameAttribute
|
|
294
|
+
new(name: string): JsonPropertyNameAttribute;
|
|
295
295
|
};
|
|
296
296
|
|
|
297
297
|
|
|
@@ -303,7 +303,7 @@ export interface JsonPropertyOrderAttribute$instance extends JsonAttribute {
|
|
|
303
303
|
|
|
304
304
|
|
|
305
305
|
export const JsonPropertyOrderAttribute: {
|
|
306
|
-
new(order: int): JsonPropertyOrderAttribute
|
|
306
|
+
new(order: int): JsonPropertyOrderAttribute;
|
|
307
307
|
};
|
|
308
308
|
|
|
309
309
|
|
|
@@ -314,7 +314,7 @@ export interface JsonRequiredAttribute$instance extends JsonAttribute {
|
|
|
314
314
|
|
|
315
315
|
|
|
316
316
|
export const JsonRequiredAttribute: {
|
|
317
|
-
new(): JsonRequiredAttribute
|
|
317
|
+
new(): JsonRequiredAttribute;
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
|
|
@@ -322,12 +322,12 @@ export type JsonRequiredAttribute = JsonRequiredAttribute$instance;
|
|
|
322
322
|
|
|
323
323
|
export interface JsonSerializableAttribute$instance extends JsonAttribute {
|
|
324
324
|
generationMode: JsonSourceGenerationMode;
|
|
325
|
-
typeInfoPropertyName: string;
|
|
325
|
+
typeInfoPropertyName: string | undefined;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
|
|
329
329
|
export const JsonSerializableAttribute: {
|
|
330
|
-
new(type_: Type): JsonSerializableAttribute
|
|
330
|
+
new(type_: Type | undefined): JsonSerializableAttribute;
|
|
331
331
|
};
|
|
332
332
|
|
|
333
333
|
|
|
@@ -382,8 +382,8 @@ export interface JsonSourceGenerationOptionsAttribute$instance extends JsonAttri
|
|
|
382
382
|
|
|
383
383
|
|
|
384
384
|
export const JsonSourceGenerationOptionsAttribute: {
|
|
385
|
-
new(): JsonSourceGenerationOptionsAttribute
|
|
386
|
-
new(defaults: JsonSerializerDefaults): JsonSourceGenerationOptionsAttribute
|
|
385
|
+
new(): JsonSourceGenerationOptionsAttribute;
|
|
386
|
+
new(defaults: JsonSerializerDefaults): JsonSourceGenerationOptionsAttribute;
|
|
387
387
|
};
|
|
388
388
|
|
|
389
389
|
|
|
@@ -396,8 +396,8 @@ export interface JsonStringEnumConverter$instance extends JsonConverterFactory {
|
|
|
396
396
|
|
|
397
397
|
|
|
398
398
|
export const JsonStringEnumConverter: {
|
|
399
|
-
new(): JsonStringEnumConverter
|
|
400
|
-
new(namingPolicy: JsonNamingPolicy, allowIntegerValues: boolean): JsonStringEnumConverter
|
|
399
|
+
new(): JsonStringEnumConverter;
|
|
400
|
+
new(namingPolicy: JsonNamingPolicy, allowIntegerValues: boolean): JsonStringEnumConverter;
|
|
401
401
|
};
|
|
402
402
|
|
|
403
403
|
|
|
@@ -405,13 +405,13 @@ export type JsonStringEnumConverter = JsonStringEnumConverter$instance;
|
|
|
405
405
|
|
|
406
406
|
export interface JsonStringEnumConverter_1$instance<TEnum extends number> extends JsonConverterFactory {
|
|
407
407
|
canConvert(typeToConvert: Type): boolean;
|
|
408
|
-
createConverter(typeToConvert: Type, options: JsonSerializerOptions): JsonConverter;
|
|
408
|
+
createConverter(typeToConvert: Type, options: JsonSerializerOptions): JsonConverter | undefined;
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
|
|
412
412
|
export const JsonStringEnumConverter_1: {
|
|
413
|
-
new<TEnum extends number>(): JsonStringEnumConverter_1
|
|
414
|
-
new<TEnum extends number>(namingPolicy: JsonNamingPolicy, allowIntegerValues: boolean): JsonStringEnumConverter_1
|
|
413
|
+
new<TEnum extends number>(): JsonStringEnumConverter_1<TEnum>;
|
|
414
|
+
new<TEnum extends number>(namingPolicy: JsonNamingPolicy, allowIntegerValues: boolean): JsonStringEnumConverter_1<TEnum>;
|
|
415
415
|
};
|
|
416
416
|
|
|
417
417
|
|
|
@@ -423,7 +423,7 @@ export interface JsonStringEnumMemberNameAttribute$instance extends Attribute {
|
|
|
423
423
|
|
|
424
424
|
|
|
425
425
|
export const JsonStringEnumMemberNameAttribute: {
|
|
426
|
-
new(name: string): JsonStringEnumMemberNameAttribute
|
|
426
|
+
new(name: string): JsonStringEnumMemberNameAttribute;
|
|
427
427
|
};
|
|
428
428
|
|
|
429
429
|
|
|
@@ -435,7 +435,7 @@ export interface JsonUnmappedMemberHandlingAttribute$instance extends JsonAttrib
|
|
|
435
435
|
|
|
436
436
|
|
|
437
437
|
export const JsonUnmappedMemberHandlingAttribute: {
|
|
438
|
-
new(unmappedMemberHandling: JsonUnmappedMemberHandling): JsonUnmappedMemberHandlingAttribute
|
|
438
|
+
new(unmappedMemberHandling: JsonUnmappedMemberHandling): JsonUnmappedMemberHandlingAttribute;
|
|
439
439
|
};
|
|
440
440
|
|
|
441
441
|
|
|
@@ -460,7 +460,7 @@ export interface ReferenceHandler_1$instance<T extends ReferenceResolver> extend
|
|
|
460
460
|
|
|
461
461
|
|
|
462
462
|
export const ReferenceHandler_1: {
|
|
463
|
-
new<T extends ReferenceResolver>(): ReferenceHandler_1
|
|
463
|
+
new<T extends ReferenceResolver>(): ReferenceHandler_1<T>;
|
|
464
464
|
};
|
|
465
465
|
|
|
466
466
|
|