@tsonic/dotnet 10.0.39 → 10.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Internal/internal/index.d.ts +4 -3
- package/Microsoft.CSharp.RuntimeBinder/internal/index.d.ts +19 -18
- package/Microsoft.VisualBasic/internal/index.d.ts +52 -54
- package/Microsoft.VisualBasic.CompilerServices/internal/index.d.ts +117 -119
- package/Microsoft.VisualBasic.FileIO/internal/index.d.ts +3 -2
- package/Microsoft.Win32/internal/index.d.ts +19 -18
- package/Microsoft.Win32.SafeHandles/internal/index.d.ts +3 -2
- package/README.md +76 -104
- package/System/bindings.json +1520 -2039
- package/System/internal/index.d.ts +1549 -1602
- package/System.Buffers/bindings.json +12 -3
- package/System.Buffers/internal/index.d.ts +12 -14
- package/System.Buffers.Binary/internal/index.d.ts +2 -4
- package/System.Buffers.Text/internal/index.d.ts +2 -4
- package/System.CodeDom.Compiler/internal/index.d.ts +32 -31
- package/System.Collections/internal/index.d.ts +129 -131
- package/System.Collections.Concurrent/bindings.json +218 -218
- package/System.Collections.Concurrent/internal/index.d.ts +34 -36
- package/System.Collections.Frozen/bindings.json +413 -611
- package/System.Collections.Frozen/internal/index.d.ts +81 -97
- package/System.Collections.Frozen.d.ts +14 -2
- package/System.Collections.Generic/bindings.json +9420 -14155
- package/System.Collections.Generic/internal/index.d.ts +547 -758
- package/System.Collections.Generic.d.ts +1 -1
- package/System.Collections.Immutable/bindings.json +6000 -9080
- package/System.Collections.Immutable/internal/index.d.ts +265 -354
- package/System.Collections.Immutable.d.ts +49 -12
- package/System.Collections.ObjectModel/bindings.json +132 -654
- package/System.Collections.ObjectModel/internal/index.d.ts +10 -30
- package/System.Collections.Specialized/bindings.json +0 -123
- package/System.Collections.Specialized/internal/index.d.ts +88 -101
- package/System.ComponentModel/bindings.json +163 -102
- package/System.ComponentModel/internal/index.d.ts +618 -608
- package/System.ComponentModel.DataAnnotations/internal/index.d.ts +133 -132
- package/System.ComponentModel.DataAnnotations.Schema/internal/index.d.ts +8 -7
- package/System.ComponentModel.Design/bindings.json +22 -292
- package/System.ComponentModel.Design/internal/index.d.ts +101 -109
- package/System.ComponentModel.Design.Serialization/internal/index.d.ts +61 -60
- package/System.ComponentModel.d.ts +1 -0
- package/System.Configuration.Assemblies/internal/index.d.ts +3 -2
- package/System.Data/bindings.json +4 -1
- package/System.Data/internal/index.d.ts +351 -350
- package/System.Data.Common/internal/index.d.ts +151 -152
- package/System.Data.SqlTypes/internal/index.d.ts +68 -67
- package/System.Diagnostics/bindings.json +7044 -7249
- package/System.Diagnostics/internal/index.d.ts +446 -461
- package/System.Diagnostics.CodeAnalysis/internal/index.d.ts +44 -43
- package/System.Diagnostics.Contracts/internal/index.d.ts +16 -18
- package/System.Diagnostics.Metrics/internal/index.d.ts +92 -94
- package/System.Diagnostics.Metrics.d.ts +1 -1
- package/System.Diagnostics.SymbolStore/internal/index.d.ts +12 -11
- package/System.Diagnostics.Tracing/bindings.json +81 -21
- package/System.Diagnostics.Tracing/internal/index.d.ts +69 -56
- package/System.Diagnostics.Tracing.d.ts +2 -1
- package/System.Drawing/internal/index.d.ts +76 -75
- package/System.Dynamic/internal/index.d.ts +55 -57
- package/System.Formats.Asn1/bindings.json +48 -69
- package/System.Formats.Asn1/internal/index.d.ts +21 -28
- package/System.Formats.Tar/internal/index.d.ts +8 -7
- package/System.Globalization/internal/index.d.ts +40 -42
- package/System.IO/internal/index.d.ts +187 -189
- package/System.IO.Compression/internal/index.d.ts +29 -31
- package/System.IO.Enumeration/bindings.json +250 -250
- package/System.IO.Enumeration/internal/index.d.ts +15 -17
- package/System.IO.IsolatedStorage/internal/index.d.ts +19 -18
- package/System.IO.MemoryMappedFiles/internal/index.d.ts +11 -10
- package/System.IO.Pipelines/internal/index.d.ts +15 -17
- package/System.IO.Pipes/internal/index.d.ts +8 -7
- package/System.Linq/internal/index.d.ts +223 -225
- package/System.Linq.Expressions/internal/index.d.ts +205 -207
- package/System.Linq.Expressions.Interpreter/internal/index.d.ts +5 -4
- package/System.Net/bindings.json +104 -104
- package/System.Net/internal/index.d.ts +279 -281
- package/System.Net.Cache/internal/index.d.ts +3 -2
- package/System.Net.Http/internal/index.d.ts +128 -130
- package/System.Net.Http.Headers/bindings.json +0 -204
- package/System.Net.Http.Headers/internal/index.d.ts +111 -127
- package/System.Net.Http.Json/internal/index.d.ts +67 -69
- package/System.Net.Http.Metrics/internal/index.d.ts +6 -5
- package/System.Net.Mail/internal/index.d.ts +76 -78
- package/System.Net.Mime/internal/index.d.ts +11 -10
- package/System.Net.NetworkInformation/internal/index.d.ts +30 -32
- package/System.Net.Quic/internal/index.d.ts +10 -9
- package/System.Net.Security/internal/index.d.ts +87 -89
- package/System.Net.ServerSentEvents/internal/index.d.ts +6 -5
- package/System.Net.Sockets/internal/index.d.ts +91 -93
- package/System.Net.WebSockets/internal/index.d.ts +47 -46
- package/System.Numerics/bindings.json +544 -116
- package/System.Numerics/internal/index.d.ts +110 -112
- package/System.Reflection/internal/index.d.ts +270 -272
- package/System.Reflection.Emit/internal/index.d.ts +114 -116
- package/System.Reflection.Metadata/bindings.json +166 -3169
- package/System.Reflection.Metadata/internal/index.d.ts +154 -361
- package/System.Reflection.Metadata.Ecma335/internal/index.d.ts +13 -15
- package/System.Reflection.PortableExecutable/bindings.json +58 -0
- package/System.Reflection.PortableExecutable/internal/index.d.ts +24 -11
- package/System.Reflection.PortableExecutable.d.ts +1 -0
- package/System.Resources/internal/index.d.ts +33 -35
- package/System.Runtime/internal/index.d.ts +12 -11
- package/System.Runtime.CompilerServices/bindings.json +519 -717
- package/System.Runtime.CompilerServices/internal/index.d.ts +113 -137
- package/System.Runtime.CompilerServices.d.ts +14 -4
- package/System.Runtime.ConstrainedExecution/internal/index.d.ts +3 -2
- package/System.Runtime.ExceptionServices/internal/index.d.ts +4 -3
- package/System.Runtime.InteropServices/bindings.json +101 -101
- package/System.Runtime.InteropServices/internal/index.d.ts +234 -236
- package/System.Runtime.InteropServices.ComTypes/internal/index.d.ts +34 -36
- package/System.Runtime.InteropServices.Java/internal/index.d.ts +4 -6
- package/System.Runtime.InteropServices.JavaScript/bindings.json +328 -328
- package/System.Runtime.InteropServices.JavaScript/internal/index.d.ts +67 -69
- package/System.Runtime.InteropServices.JavaScript.d.ts +8 -26
- package/System.Runtime.InteropServices.Marshalling/bindings.json +2619 -2619
- package/System.Runtime.InteropServices.Marshalling/internal/index.d.ts +308 -310
- package/System.Runtime.InteropServices.ObjectiveC/bindings.json +141 -141
- package/System.Runtime.InteropServices.ObjectiveC/internal/index.d.ts +17 -19
- package/System.Runtime.InteropServices.Swift/internal/index.d.ts +4 -6
- package/System.Runtime.InteropServices.Swift.d.ts +1 -1
- package/System.Runtime.Intrinsics/bindings.json +64 -16
- package/System.Runtime.Intrinsics/internal/index.d.ts +22 -24
- package/System.Runtime.Intrinsics.Arm/internal/index.d.ts +12 -13
- package/System.Runtime.Intrinsics.Wasm/internal/index.d.ts +2 -4
- package/System.Runtime.Intrinsics.X86/internal/index.d.ts +42 -41
- package/System.Runtime.Loader/bindings.json +48 -69
- package/System.Runtime.Loader/internal/index.d.ts +30 -34
- package/System.Runtime.Remoting/internal/index.d.ts +5 -4
- package/System.Runtime.Serialization/internal/index.d.ts +175 -177
- package/System.Runtime.Serialization.DataContracts/internal/index.d.ts +29 -31
- package/System.Runtime.Serialization.Formatters/internal/index.d.ts +7 -6
- package/System.Runtime.Serialization.Formatters.Binary/internal/index.d.ts +10 -9
- package/System.Runtime.Serialization.Json/internal/index.d.ts +37 -36
- package/System.Runtime.Versioning/internal/index.d.ts +20 -19
- package/System.Security/internal/index.d.ts +64 -66
- package/System.Security.AccessControl/bindings.json +104 -0
- package/System.Security.AccessControl/internal/index.d.ts +59 -58
- package/System.Security.AccessControl.d.ts +6 -5
- package/System.Security.Authentication/internal/index.d.ts +7 -6
- package/System.Security.Authentication.ExtendedProtection/internal/index.d.ts +12 -11
- package/System.Security.Claims/internal/index.d.ts +45 -44
- package/System.Security.Cryptography/bindings.json +469 -469
- package/System.Security.Cryptography/internal/index.d.ts +269 -271
- package/System.Security.Cryptography.X509Certificates/bindings.json +0 -62
- package/System.Security.Cryptography.X509Certificates/internal/index.d.ts +98 -105
- package/System.Security.Permissions/internal/index.d.ts +5 -4
- package/System.Security.Policy/internal/index.d.ts +11 -10
- package/System.Security.Principal/internal/index.d.ts +28 -27
- package/System.Text/bindings.json +1562 -1562
- package/System.Text/internal/index.d.ts +119 -121
- package/System.Text.Encodings.Web/internal/index.d.ts +2 -4
- package/System.Text.Json/bindings.json +0 -290
- package/System.Text.Json/internal/index.d.ts +135 -153
- package/System.Text.Json.Nodes/internal/index.d.ts +60 -62
- package/System.Text.Json.Schema/internal/index.d.ts +9 -8
- package/System.Text.Json.Serialization/internal/index.d.ts +32 -34
- package/System.Text.Json.Serialization.Metadata/internal/index.d.ts +86 -85
- package/System.Text.Json.Serialization.d.ts +1 -1
- package/System.Text.RegularExpressions/bindings.json +198 -402
- package/System.Text.RegularExpressions/internal/index.d.ts +48 -64
- package/System.Text.Unicode/bindings.json +508 -508
- package/System.Text.Unicode/internal/index.d.ts +29 -31
- package/System.Threading/bindings.json +42 -42
- package/System.Threading/internal/index.d.ts +157 -159
- package/System.Threading.Channels/internal/index.d.ts +10 -12
- package/System.Threading.Tasks/bindings.json +4 -1
- package/System.Threading.Tasks/internal/index.d.ts +115 -114
- package/System.Threading.Tasks.Dataflow/internal/index.d.ts +32 -33
- package/System.Threading.Tasks.Sources/internal/index.d.ts +6 -5
- package/System.Timers/internal/index.d.ts +8 -7
- package/System.Transactions/internal/index.d.ts +31 -30
- package/System.Web/internal/index.d.ts +32 -31
- package/System.Windows.Input/internal/index.d.ts +5 -4
- package/System.Windows.Markup/internal/index.d.ts +3 -2
- package/System.Xml/internal/index.d.ts +383 -385
- package/System.Xml.Linq/internal/index.d.ts +103 -102
- package/System.Xml.Resolvers/internal/index.d.ts +10 -9
- package/System.Xml.Schema/bindings.json +76 -76
- package/System.Xml.Schema/internal/index.d.ts +233 -232
- package/System.Xml.Serialization/bindings.json +193 -0
- package/System.Xml.Serialization/internal/index.d.ts +277 -245
- package/System.Xml.Serialization.d.ts +2 -0
- package/System.Xml.XPath/internal/index.d.ts +46 -45
- package/System.Xml.Xsl/internal/index.d.ts +53 -52
- package/System.Xml.Xsl.Runtime/bindings.json +4 -1
- package/System.Xml.Xsl.Runtime/internal/index.d.ts +35 -37
- package/System.d.ts +2 -2
- package/__internal/extensions/index.d.ts +517 -515
- package/families.json +63 -7
- package/package.json +2 -2
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
// Namespace: System.Net.Http.Json
|
|
3
3
|
// Assembly: System.Net.Http.Json
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
5
|
+
// Core type aliases from @tsonic/core
|
|
6
|
+
import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
7
7
|
|
|
8
|
-
// Import support types from @tsonic/core
|
|
9
|
-
import type { ptr } from "@tsonic/core/types.js";
|
|
10
8
|
|
|
11
9
|
// Import types from other namespaces
|
|
12
10
|
import type { IAsyncEnumerable_1 } from "../../System.Collections.Generic/internal/index.js";
|
|
@@ -29,19 +27,19 @@ export interface JsonContent$instance extends HttpContent {
|
|
|
29
27
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
30
28
|
|
|
31
29
|
readonly ObjectType: Type;
|
|
32
|
-
readonly Value:
|
|
33
|
-
SerializeToStream(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): void;
|
|
34
|
-
SerializeToStreamAsync(stream: Stream, context: TransportContext): Task;
|
|
35
|
-
SerializeToStreamAsync(stream: Stream, context: TransportContext, cancellationToken: CancellationToken): Task;
|
|
30
|
+
readonly Value: JsValue | null;
|
|
31
|
+
SerializeToStream(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): void;
|
|
32
|
+
SerializeToStreamAsync(stream: Stream, context: TransportContext | null): Task;
|
|
33
|
+
SerializeToStreamAsync(stream: Stream, context: TransportContext | null, cancellationToken: CancellationToken): Task;
|
|
36
34
|
TryComputeLength(length: long): boolean;
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
|
|
40
38
|
export const JsonContent: {
|
|
41
|
-
Create(inputValue:
|
|
42
|
-
Create(inputValue:
|
|
43
|
-
Create<T>(inputValue: T, jsonTypeInfo: JsonTypeInfo_1<T>, mediaType?: MediaTypeHeaderValue): JsonContent;
|
|
44
|
-
Create<T>(inputValue: T, mediaType?: MediaTypeHeaderValue, options?: JsonSerializerOptions): JsonContent;
|
|
39
|
+
Create(inputValue: JsValue | null, jsonTypeInfo: JsonTypeInfo, mediaType?: MediaTypeHeaderValue | null): JsonContent;
|
|
40
|
+
Create(inputValue: JsValue | null, inputType: Type, mediaType?: MediaTypeHeaderValue | null, options?: JsonSerializerOptions | null): JsonContent;
|
|
41
|
+
Create<T>(inputValue: T | null, jsonTypeInfo: JsonTypeInfo_1<T>, mediaType?: MediaTypeHeaderValue | null): JsonContent;
|
|
42
|
+
Create<T>(inputValue: T, mediaType?: MediaTypeHeaderValue | null, options?: JsonSerializerOptions | null): JsonContent;
|
|
45
43
|
};
|
|
46
44
|
|
|
47
45
|
|
|
@@ -53,69 +51,69 @@ export type JsonContent = JsonContent$instance & __JsonContent$views;
|
|
|
53
51
|
|
|
54
52
|
|
|
55
53
|
export abstract class HttpClientJsonExtensions$instance {
|
|
56
|
-
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: string, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
57
|
-
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: string, options: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
58
|
-
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: string, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
59
|
-
static DeleteFromJsonAsync(client: HttpClient, requestUri: string, type: Type, options: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<
|
|
60
|
-
static DeleteFromJsonAsync(client: HttpClient, requestUri: string, type: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task_1<
|
|
61
|
-
static DeleteFromJsonAsync(client: HttpClient, requestUri: string, type: Type, cancellationToken?: CancellationToken): Task_1<
|
|
62
|
-
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
63
|
-
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri, options: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
64
|
-
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
65
|
-
static DeleteFromJsonAsync(client: HttpClient, requestUri: Uri, type: Type, options: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<
|
|
66
|
-
static DeleteFromJsonAsync(client: HttpClient, requestUri: Uri, type: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task_1<
|
|
67
|
-
static DeleteFromJsonAsync(client: HttpClient, requestUri: Uri, type: Type, cancellationToken?: CancellationToken): Task_1<
|
|
68
|
-
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: string, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue |
|
|
69
|
-
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: string, options: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue |
|
|
70
|
-
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: string, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue |
|
|
71
|
-
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: Uri, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue |
|
|
72
|
-
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: Uri, options: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue |
|
|
73
|
-
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: Uri, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue |
|
|
74
|
-
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: string, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
75
|
-
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: string, options: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
76
|
-
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: string, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
77
|
-
static GetFromJsonAsync(client: HttpClient, requestUri: string, type: Type, options: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<
|
|
78
|
-
static GetFromJsonAsync(client: HttpClient, requestUri: string, type: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task_1<
|
|
79
|
-
static GetFromJsonAsync(client: HttpClient, requestUri: string, type: Type, cancellationToken?: CancellationToken): Task_1<
|
|
80
|
-
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
81
|
-
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri, options: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
82
|
-
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri, cancellationToken?: CancellationToken): Task_1<TValue |
|
|
83
|
-
static GetFromJsonAsync(client: HttpClient, requestUri: Uri, type: Type, options: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<
|
|
84
|
-
static GetFromJsonAsync(client: HttpClient, requestUri: Uri, type: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task_1<
|
|
85
|
-
static GetFromJsonAsync(client: HttpClient, requestUri: Uri, type: Type, cancellationToken?: CancellationToken): Task_1<
|
|
86
|
-
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: string, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
87
|
-
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: string, value: TValue, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
88
|
-
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: string, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
89
|
-
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
90
|
-
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri, value: TValue, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
91
|
-
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
92
|
-
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: string, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
93
|
-
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: string, value: TValue, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
94
|
-
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: string, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
95
|
-
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
96
|
-
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri, value: TValue, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
97
|
-
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
98
|
-
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: string, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
99
|
-
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: string, value: TValue, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
100
|
-
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: string, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
101
|
-
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
102
|
-
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri, value: TValue, options?: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
103
|
-
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
54
|
+
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: string | null, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
55
|
+
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: string | null, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
56
|
+
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: string | null, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
57
|
+
static DeleteFromJsonAsync(client: HttpClient, requestUri: string | null, type: Type, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
58
|
+
static DeleteFromJsonAsync(client: HttpClient, requestUri: string | null, type: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
59
|
+
static DeleteFromJsonAsync(client: HttpClient, requestUri: string | null, type: Type, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
60
|
+
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
61
|
+
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
62
|
+
static DeleteFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
63
|
+
static DeleteFromJsonAsync(client: HttpClient, requestUri: Uri | null, type: Type, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
64
|
+
static DeleteFromJsonAsync(client: HttpClient, requestUri: Uri | null, type: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
65
|
+
static DeleteFromJsonAsync(client: HttpClient, requestUri: Uri | null, type: Type, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
66
|
+
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: string | null, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | null>;
|
|
67
|
+
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: string | null, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | null>;
|
|
68
|
+
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: string | null, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | null>;
|
|
69
|
+
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: Uri | null, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | null>;
|
|
70
|
+
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: Uri | null, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | null>;
|
|
71
|
+
static GetFromJsonAsAsyncEnumerable<TValue>(client: HttpClient, requestUri: Uri | null, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | null>;
|
|
72
|
+
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: string | null, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
73
|
+
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: string | null, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
74
|
+
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: string | null, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
75
|
+
static GetFromJsonAsync(client: HttpClient, requestUri: string | null, type: Type, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
76
|
+
static GetFromJsonAsync(client: HttpClient, requestUri: string | null, type: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
77
|
+
static GetFromJsonAsync(client: HttpClient, requestUri: string | null, type: Type, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
78
|
+
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
79
|
+
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
80
|
+
static GetFromJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, cancellationToken?: CancellationToken): Task_1<TValue | null>;
|
|
81
|
+
static GetFromJsonAsync(client: HttpClient, requestUri: Uri | null, type: Type, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
82
|
+
static GetFromJsonAsync(client: HttpClient, requestUri: Uri | null, type: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
83
|
+
static GetFromJsonAsync(client: HttpClient, requestUri: Uri | null, type: Type, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
84
|
+
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: string | null, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
85
|
+
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: string | null, value: TValue, options?: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
86
|
+
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: string | null, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
87
|
+
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
88
|
+
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, value: TValue, options?: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
89
|
+
static PatchAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
90
|
+
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: string | null, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
91
|
+
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: string | null, value: TValue, options?: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
92
|
+
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: string | null, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
93
|
+
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
94
|
+
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, value: TValue, options?: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
95
|
+
static PostAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
96
|
+
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: string | null, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
97
|
+
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: string | null, value: TValue, options?: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
98
|
+
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: string | null, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
99
|
+
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, value: TValue, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
100
|
+
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, value: TValue, options?: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<HttpResponseMessage>;
|
|
101
|
+
static PutAsJsonAsync<TValue>(client: HttpClient, requestUri: Uri | null, value: TValue, cancellationToken: CancellationToken): Task_1<HttpResponseMessage>;
|
|
104
102
|
}
|
|
105
103
|
|
|
106
104
|
|
|
107
105
|
export type HttpClientJsonExtensions = HttpClientJsonExtensions$instance;
|
|
108
106
|
|
|
109
107
|
export abstract class HttpContentJsonExtensions$instance {
|
|
110
|
-
static ReadFromJsonAsAsyncEnumerable<TValue>(content: HttpContent, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue |
|
|
111
|
-
static ReadFromJsonAsAsyncEnumerable<TValue>(content: HttpContent, options: JsonSerializerOptions, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue |
|
|
112
|
-
static ReadFromJsonAsAsyncEnumerable<TValue>(content: HttpContent, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue |
|
|
113
|
-
static ReadFromJsonAsync<T>(content: HttpContent, jsonTypeInfo: JsonTypeInfo_1<T>, cancellationToken?: CancellationToken): Task_1<T |
|
|
114
|
-
static ReadFromJsonAsync<T>(content: HttpContent, options: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<T |
|
|
115
|
-
static ReadFromJsonAsync<T>(content: HttpContent, cancellationToken?: CancellationToken): Task_1<T |
|
|
116
|
-
static ReadFromJsonAsync(content: HttpContent, type: Type, options: JsonSerializerOptions, cancellationToken?: CancellationToken): Task_1<
|
|
117
|
-
static ReadFromJsonAsync(content: HttpContent, type: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task_1<
|
|
118
|
-
static ReadFromJsonAsync(content: HttpContent, type: Type, cancellationToken?: CancellationToken): Task_1<
|
|
108
|
+
static ReadFromJsonAsAsyncEnumerable<TValue>(content: HttpContent, jsonTypeInfo: JsonTypeInfo_1<TValue>, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | null>;
|
|
109
|
+
static ReadFromJsonAsAsyncEnumerable<TValue>(content: HttpContent, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | null>;
|
|
110
|
+
static ReadFromJsonAsAsyncEnumerable<TValue>(content: HttpContent, cancellationToken?: CancellationToken): IAsyncEnumerable_1<TValue | null>;
|
|
111
|
+
static ReadFromJsonAsync<T>(content: HttpContent, jsonTypeInfo: JsonTypeInfo_1<T>, cancellationToken?: CancellationToken): Task_1<T | null>;
|
|
112
|
+
static ReadFromJsonAsync<T>(content: HttpContent, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<T | null>;
|
|
113
|
+
static ReadFromJsonAsync<T>(content: HttpContent, cancellationToken?: CancellationToken): Task_1<T | null>;
|
|
114
|
+
static ReadFromJsonAsync(content: HttpContent, type: Type, options: JsonSerializerOptions | null, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
115
|
+
static ReadFromJsonAsync(content: HttpContent, type: Type, context: JsonSerializerContext, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
116
|
+
static ReadFromJsonAsync(content: HttpContent, type: Type, cancellationToken?: CancellationToken): Task_1<JsValue | null>;
|
|
119
117
|
}
|
|
120
118
|
|
|
121
119
|
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Namespace: System.Net.Http.Metrics
|
|
3
3
|
// Assembly: System.Net.Http
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
5
|
+
// Core type aliases from @tsonic/core
|
|
6
|
+
import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
7
|
+
|
|
7
8
|
|
|
8
9
|
// Import types from other namespaces
|
|
9
10
|
import type { HttpRequestMessage, HttpResponseMessage } from "../../System.Net.Http/internal/index.js";
|
|
@@ -13,10 +14,10 @@ import type { Action_1, Boolean as ClrBoolean, Exception, Int32, Object as ClrOb
|
|
|
13
14
|
export interface HttpMetricsEnrichmentContext$instance {
|
|
14
15
|
readonly __tsonic_type_System_Net_Http_Metrics_HttpMetricsEnrichmentContext: never;
|
|
15
16
|
|
|
16
|
-
readonly Exception: Exception |
|
|
17
|
+
readonly Exception: Exception | null;
|
|
17
18
|
readonly Request: HttpRequestMessage;
|
|
18
|
-
readonly Response: HttpResponseMessage |
|
|
19
|
-
AddCustomTag(name: string, value:
|
|
19
|
+
readonly Response: HttpResponseMessage | null;
|
|
20
|
+
AddCustomTag(name: string, value: JsValue | null): void;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
// Namespace: System.Net.Mail
|
|
3
3
|
// Assembly: System.Net.Mail
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
5
|
+
// Core type aliases from @tsonic/core
|
|
6
|
+
import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
7
7
|
|
|
8
|
-
// Import support types from @tsonic/core
|
|
9
|
-
import type { ptr } from "@tsonic/core/types.js";
|
|
10
8
|
|
|
11
9
|
// Import types from other namespaces
|
|
12
10
|
import * as System_Collections_Generic_Internal from "../../System.Collections.Generic/internal/index.js";
|
|
@@ -88,7 +86,7 @@ export enum SmtpStatusCode {
|
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
|
|
91
|
-
export type SendCompletedEventHandler = (sender:
|
|
89
|
+
export type SendCompletedEventHandler = (sender: JsValue, e: AsyncCompletedEventArgs) => void;
|
|
92
90
|
|
|
93
91
|
|
|
94
92
|
export interface AlternateView$instance extends AttachmentBase$instance {
|
|
@@ -96,8 +94,8 @@ export interface AlternateView$instance extends AttachmentBase$instance {
|
|
|
96
94
|
|
|
97
95
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
98
96
|
|
|
99
|
-
get BaseUri(): Uri |
|
|
100
|
-
set BaseUri(value: Uri |
|
|
97
|
+
get BaseUri(): Uri | null;
|
|
98
|
+
set BaseUri(value: Uri | null);
|
|
101
99
|
readonly LinkedResources: LinkedResourceCollection;
|
|
102
100
|
Dispose(disposing: boolean): void;
|
|
103
101
|
Dispose(): void;
|
|
@@ -106,13 +104,13 @@ export interface AlternateView$instance extends AttachmentBase$instance {
|
|
|
106
104
|
|
|
107
105
|
export const AlternateView: {
|
|
108
106
|
new(fileName: string): AlternateView;
|
|
109
|
-
new(fileName: string, mediaType: string): AlternateView;
|
|
110
|
-
new(fileName: string, contentType: ContentType): AlternateView;
|
|
107
|
+
new(fileName: string, mediaType: string | null): AlternateView;
|
|
108
|
+
new(fileName: string, contentType: ContentType | null): AlternateView;
|
|
111
109
|
new(contentStream: Stream): AlternateView;
|
|
112
|
-
new(contentStream: Stream, mediaType: string): AlternateView;
|
|
113
|
-
new(contentStream: Stream, contentType: ContentType): AlternateView;
|
|
114
|
-
CreateAlternateViewFromString(content: string, contentType: ContentType): AlternateView;
|
|
115
|
-
CreateAlternateViewFromString(content: string, contentEncoding: Encoding, mediaType: string): AlternateView;
|
|
110
|
+
new(contentStream: Stream, mediaType: string | null): AlternateView;
|
|
111
|
+
new(contentStream: Stream, contentType: ContentType | null): AlternateView;
|
|
112
|
+
CreateAlternateViewFromString(content: string, contentType: ContentType | null): AlternateView;
|
|
113
|
+
CreateAlternateViewFromString(content: string, contentEncoding: Encoding | null, mediaType: string | null): AlternateView;
|
|
116
114
|
CreateAlternateViewFromString(content: string): AlternateView;
|
|
117
115
|
};
|
|
118
116
|
|
|
@@ -168,24 +166,24 @@ export interface Attachment$instance extends AttachmentBase$instance {
|
|
|
168
166
|
|
|
169
167
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
170
168
|
|
|
171
|
-
readonly ContentDisposition: ContentDisposition |
|
|
172
|
-
get Name(): string |
|
|
173
|
-
set Name(value: string |
|
|
174
|
-
get NameEncoding(): Encoding |
|
|
175
|
-
set NameEncoding(value: Encoding |
|
|
169
|
+
readonly ContentDisposition: ContentDisposition | null;
|
|
170
|
+
get Name(): string | null;
|
|
171
|
+
set Name(value: string | null);
|
|
172
|
+
get NameEncoding(): Encoding | null;
|
|
173
|
+
set NameEncoding(value: Encoding | null);
|
|
176
174
|
}
|
|
177
175
|
|
|
178
176
|
|
|
179
177
|
export const Attachment: {
|
|
180
178
|
new(fileName: string): Attachment;
|
|
181
|
-
new(fileName: string, mediaType: string): Attachment;
|
|
179
|
+
new(fileName: string, mediaType: string | null): Attachment;
|
|
182
180
|
new(fileName: string, contentType: ContentType): Attachment;
|
|
183
|
-
new(contentStream: Stream, name: string): Attachment;
|
|
184
|
-
new(contentStream: Stream, name: string, mediaType: string): Attachment;
|
|
181
|
+
new(contentStream: Stream, name: string | null): Attachment;
|
|
182
|
+
new(contentStream: Stream, name: string | null, mediaType: string | null): Attachment;
|
|
185
183
|
new(contentStream: Stream, contentType: ContentType): Attachment;
|
|
186
184
|
CreateAttachmentFromString(content: string, contentType: ContentType): Attachment;
|
|
187
|
-
CreateAttachmentFromString(content: string, name: string, contentEncoding: Encoding, mediaType: string): Attachment;
|
|
188
|
-
CreateAttachmentFromString(content: string, name: string): Attachment;
|
|
185
|
+
CreateAttachmentFromString(content: string, name: string | null, contentEncoding: Encoding | null, mediaType: string | null): Attachment;
|
|
186
|
+
CreateAttachmentFromString(content: string, name: string | null): Attachment;
|
|
189
187
|
};
|
|
190
188
|
|
|
191
189
|
|
|
@@ -210,7 +208,7 @@ export interface AttachmentBase$instance {
|
|
|
210
208
|
}
|
|
211
209
|
|
|
212
210
|
|
|
213
|
-
export const AttachmentBase: (abstract new(fileName: string) => AttachmentBase) & (abstract new(fileName: string, mediaType: string) => AttachmentBase) & (abstract new(fileName: string, contentType: ContentType) => AttachmentBase) & (abstract new(contentStream: Stream) => AttachmentBase) & (abstract new(contentStream: Stream, mediaType: string) => AttachmentBase) & (abstract new(contentStream: Stream, contentType: ContentType) => AttachmentBase) & {
|
|
211
|
+
export const AttachmentBase: (abstract new(fileName: string) => AttachmentBase) & (abstract new(fileName: string, mediaType: string | null) => AttachmentBase) & (abstract new(fileName: string, contentType: ContentType | null) => AttachmentBase) & (abstract new(contentStream: Stream) => AttachmentBase) & (abstract new(contentStream: Stream, mediaType: string | null) => AttachmentBase) & (abstract new(contentStream: Stream, contentType: ContentType | null) => AttachmentBase) & {
|
|
214
212
|
};
|
|
215
213
|
|
|
216
214
|
|
|
@@ -265,20 +263,20 @@ export interface LinkedResource$instance extends AttachmentBase$instance {
|
|
|
265
263
|
|
|
266
264
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
267
265
|
|
|
268
|
-
get ContentLink(): Uri |
|
|
269
|
-
set ContentLink(value: Uri |
|
|
266
|
+
get ContentLink(): Uri | null;
|
|
267
|
+
set ContentLink(value: Uri | null);
|
|
270
268
|
}
|
|
271
269
|
|
|
272
270
|
|
|
273
271
|
export const LinkedResource: {
|
|
274
272
|
new(fileName: string): LinkedResource;
|
|
275
|
-
new(fileName: string, mediaType: string): LinkedResource;
|
|
276
|
-
new(fileName: string, contentType: ContentType): LinkedResource;
|
|
273
|
+
new(fileName: string, mediaType: string | null): LinkedResource;
|
|
274
|
+
new(fileName: string, contentType: ContentType | null): LinkedResource;
|
|
277
275
|
new(contentStream: Stream): LinkedResource;
|
|
278
|
-
new(contentStream: Stream, mediaType: string): LinkedResource;
|
|
279
|
-
new(contentStream: Stream, contentType: ContentType): LinkedResource;
|
|
280
|
-
CreateLinkedResourceFromString(content: string, contentType: ContentType): LinkedResource;
|
|
281
|
-
CreateLinkedResourceFromString(content: string, contentEncoding: Encoding, mediaType: string): LinkedResource;
|
|
276
|
+
new(contentStream: Stream, mediaType: string | null): LinkedResource;
|
|
277
|
+
new(contentStream: Stream, contentType: ContentType | null): LinkedResource;
|
|
278
|
+
CreateLinkedResourceFromString(content: string, contentType: ContentType | null): LinkedResource;
|
|
279
|
+
CreateLinkedResourceFromString(content: string, contentEncoding: Encoding | null, mediaType: string | null): LinkedResource;
|
|
282
280
|
CreateLinkedResourceFromString(content: string): LinkedResource;
|
|
283
281
|
};
|
|
284
282
|
|
|
@@ -336,7 +334,7 @@ export interface MailAddress$instance {
|
|
|
336
334
|
readonly DisplayName: string;
|
|
337
335
|
readonly Host: string;
|
|
338
336
|
readonly User: string;
|
|
339
|
-
Equals(value:
|
|
337
|
+
Equals(value: JsValue | null): boolean;
|
|
340
338
|
GetHashCode(): int;
|
|
341
339
|
ToString(): string;
|
|
342
340
|
}
|
|
@@ -344,11 +342,11 @@ export interface MailAddress$instance {
|
|
|
344
342
|
|
|
345
343
|
export const MailAddress: {
|
|
346
344
|
new(address: string): MailAddress;
|
|
347
|
-
new(address: string, displayName: string): MailAddress;
|
|
348
|
-
new(address: string, displayName: string, displayNameEncoding: Encoding): MailAddress;
|
|
349
|
-
TryCreate(address: string, result: MailAddress): boolean;
|
|
350
|
-
TryCreate(address: string, displayName: string, result: MailAddress): boolean;
|
|
351
|
-
TryCreate(address: string, displayName: string, displayNameEncoding: Encoding, result: MailAddress): boolean;
|
|
345
|
+
new(address: string, displayName: string | null): MailAddress;
|
|
346
|
+
new(address: string, displayName: string | null, displayNameEncoding: Encoding | null): MailAddress;
|
|
347
|
+
TryCreate(address: string | null, result: MailAddress | null): boolean;
|
|
348
|
+
TryCreate(address: string | null, displayName: string | null, result: MailAddress | null): boolean;
|
|
349
|
+
TryCreate(address: string | null, displayName: string | null, displayNameEncoding: Encoding | null, result: MailAddress | null): boolean;
|
|
352
350
|
};
|
|
353
351
|
|
|
354
352
|
|
|
@@ -401,26 +399,26 @@ export interface MailMessage$instance {
|
|
|
401
399
|
readonly Attachments: AttachmentCollection;
|
|
402
400
|
readonly Bcc: MailAddressCollection;
|
|
403
401
|
Body: string;
|
|
404
|
-
get BodyEncoding(): Encoding |
|
|
405
|
-
set BodyEncoding(value: Encoding |
|
|
402
|
+
get BodyEncoding(): Encoding | null;
|
|
403
|
+
set BodyEncoding(value: Encoding | null);
|
|
406
404
|
BodyTransferEncoding: TransferEncoding;
|
|
407
405
|
readonly CC: MailAddressCollection;
|
|
408
406
|
DeliveryNotificationOptions: DeliveryNotificationOptions;
|
|
409
|
-
get From(): MailAddress |
|
|
410
|
-
set From(value: MailAddress |
|
|
407
|
+
get From(): MailAddress | null;
|
|
408
|
+
set From(value: MailAddress | null);
|
|
411
409
|
readonly Headers: NameValueCollection;
|
|
412
|
-
get HeadersEncoding(): Encoding |
|
|
413
|
-
set HeadersEncoding(value: Encoding |
|
|
410
|
+
get HeadersEncoding(): Encoding | null;
|
|
411
|
+
set HeadersEncoding(value: Encoding | null);
|
|
414
412
|
IsBodyHtml: boolean;
|
|
415
413
|
Priority: MailPriority;
|
|
416
|
-
get ReplyTo(): MailAddress |
|
|
417
|
-
set ReplyTo(value: MailAddress |
|
|
414
|
+
get ReplyTo(): MailAddress | null;
|
|
415
|
+
set ReplyTo(value: MailAddress | null);
|
|
418
416
|
readonly ReplyToList: MailAddressCollection;
|
|
419
|
-
get Sender(): MailAddress |
|
|
420
|
-
set Sender(value: MailAddress |
|
|
417
|
+
get Sender(): MailAddress | null;
|
|
418
|
+
set Sender(value: MailAddress | null);
|
|
421
419
|
Subject: string;
|
|
422
|
-
get SubjectEncoding(): Encoding |
|
|
423
|
-
set SubjectEncoding(value: Encoding |
|
|
420
|
+
get SubjectEncoding(): Encoding | null;
|
|
421
|
+
set SubjectEncoding(value: Encoding | null);
|
|
424
422
|
readonly To: MailAddressCollection;
|
|
425
423
|
Dispose(): void;
|
|
426
424
|
Dispose(disposing: boolean): void;
|
|
@@ -430,7 +428,7 @@ export interface MailMessage$instance {
|
|
|
430
428
|
export const MailMessage: {
|
|
431
429
|
new(): MailMessage;
|
|
432
430
|
new(from: string, to: string): MailMessage;
|
|
433
|
-
new(from: string, to: string, subject: string, body: string): MailMessage;
|
|
431
|
+
new(from: string, to: string, subject: string | null, body: string | null): MailMessage;
|
|
434
432
|
new(from: MailAddress, to: MailAddress): MailMessage;
|
|
435
433
|
};
|
|
436
434
|
|
|
@@ -448,39 +446,39 @@ export interface SmtpClient$instance {
|
|
|
448
446
|
readonly __tsonic_iface_System_IDisposable: never;
|
|
449
447
|
|
|
450
448
|
readonly ClientCertificates: X509CertificateCollection;
|
|
451
|
-
get Credentials(): ICredentialsByHost |
|
|
452
|
-
set Credentials(value: ICredentialsByHost |
|
|
449
|
+
get Credentials(): ICredentialsByHost | null;
|
|
450
|
+
set Credentials(value: ICredentialsByHost | null);
|
|
453
451
|
DeliveryFormat: SmtpDeliveryFormat;
|
|
454
452
|
DeliveryMethod: SmtpDeliveryMethod;
|
|
455
453
|
EnableSsl: boolean;
|
|
456
|
-
get Host(): string |
|
|
457
|
-
set Host(value: string |
|
|
458
|
-
get PickupDirectoryLocation(): string |
|
|
459
|
-
set PickupDirectoryLocation(value: string |
|
|
454
|
+
get Host(): string | null;
|
|
455
|
+
set Host(value: string | null);
|
|
456
|
+
get PickupDirectoryLocation(): string | null;
|
|
457
|
+
set PickupDirectoryLocation(value: string | null);
|
|
460
458
|
Port: int;
|
|
461
459
|
readonly ServicePoint: ServicePoint;
|
|
462
|
-
get TargetName(): string |
|
|
463
|
-
set TargetName(value: string |
|
|
460
|
+
get TargetName(): string | null;
|
|
461
|
+
set TargetName(value: string | null);
|
|
464
462
|
Timeout: int;
|
|
465
463
|
UseDefaultCredentials: boolean;
|
|
466
464
|
Dispose(): void;
|
|
467
465
|
Dispose(disposing: boolean): void;
|
|
468
|
-
Send(from: string, recipients: string, subject: string, body: string): void;
|
|
466
|
+
Send(from: string, recipients: string, subject: string | null, body: string | null): void;
|
|
469
467
|
Send(message: MailMessage): void;
|
|
470
|
-
SendAsync(from: string, recipients: string, subject: string, body: string, userToken:
|
|
471
|
-
SendAsync(message: MailMessage, userToken:
|
|
468
|
+
SendAsync(from: string, recipients: string, subject: string | null, body: string | null, userToken: JsValue | null): void;
|
|
469
|
+
SendAsync(message: MailMessage, userToken: JsValue | null): void;
|
|
472
470
|
SendAsyncCancel(): void;
|
|
473
|
-
SendMailAsync(from: string, recipients: string, subject: string, body: string): Task;
|
|
471
|
+
SendMailAsync(from: string, recipients: string, subject: string | null, body: string | null): Task;
|
|
474
472
|
SendMailAsync(message: MailMessage): Task;
|
|
475
|
-
SendMailAsync(from: string, recipients: string, subject: string, body: string, cancellationToken: CancellationToken): Task;
|
|
473
|
+
SendMailAsync(from: string, recipients: string, subject: string | null, body: string | null, cancellationToken: CancellationToken): Task;
|
|
476
474
|
SendMailAsync(message: MailMessage, cancellationToken: CancellationToken): Task;
|
|
477
475
|
}
|
|
478
476
|
|
|
479
477
|
|
|
480
478
|
export const SmtpClient: {
|
|
481
479
|
new(): SmtpClient;
|
|
482
|
-
new(host: string): SmtpClient;
|
|
483
|
-
new(host: string, port: int): SmtpClient;
|
|
480
|
+
new(host: string | null): SmtpClient;
|
|
481
|
+
new(host: string | null, port: int): SmtpClient;
|
|
484
482
|
};
|
|
485
483
|
|
|
486
484
|
|
|
@@ -503,10 +501,10 @@ export interface SmtpException$instance extends Exception {
|
|
|
503
501
|
|
|
504
502
|
export const SmtpException: {
|
|
505
503
|
new(statusCode: SmtpStatusCode): SmtpException;
|
|
506
|
-
new(statusCode: SmtpStatusCode, message: string): SmtpException;
|
|
504
|
+
new(statusCode: SmtpStatusCode, message: string | null): SmtpException;
|
|
507
505
|
new(): SmtpException;
|
|
508
|
-
new(message: string): SmtpException;
|
|
509
|
-
new(message: string, innerException: Exception): SmtpException;
|
|
506
|
+
new(message: string | null): SmtpException;
|
|
507
|
+
new(message: string | null, innerException: Exception | null): SmtpException;
|
|
510
508
|
};
|
|
511
509
|
|
|
512
510
|
|
|
@@ -522,18 +520,18 @@ export interface SmtpFailedRecipientException$instance extends SmtpException$ins
|
|
|
522
520
|
|
|
523
521
|
readonly __tsonic_iface_System_Runtime_Serialization_ISerializable: never;
|
|
524
522
|
|
|
525
|
-
readonly FailedRecipient: string |
|
|
523
|
+
readonly FailedRecipient: string | null;
|
|
526
524
|
GetObjectData(serializationInfo: SerializationInfo, streamingContext: StreamingContext): void;
|
|
527
525
|
}
|
|
528
526
|
|
|
529
527
|
|
|
530
528
|
export const SmtpFailedRecipientException: {
|
|
531
529
|
new(): SmtpFailedRecipientException;
|
|
532
|
-
new(message: string): SmtpFailedRecipientException;
|
|
533
|
-
new(message: string, innerException: Exception): SmtpFailedRecipientException;
|
|
534
|
-
new(statusCode: SmtpStatusCode, failedRecipient: string): SmtpFailedRecipientException;
|
|
535
|
-
new(statusCode: SmtpStatusCode, failedRecipient: string, serverResponse: string): SmtpFailedRecipientException;
|
|
536
|
-
new(message: string, failedRecipient: string, innerException: Exception): SmtpFailedRecipientException;
|
|
530
|
+
new(message: string | null): SmtpFailedRecipientException;
|
|
531
|
+
new(message: string | null, innerException: Exception | null): SmtpFailedRecipientException;
|
|
532
|
+
new(statusCode: SmtpStatusCode, failedRecipient: string | null): SmtpFailedRecipientException;
|
|
533
|
+
new(statusCode: SmtpStatusCode, failedRecipient: string | null, serverResponse: string | null): SmtpFailedRecipientException;
|
|
534
|
+
new(message: string | null, failedRecipient: string | null, innerException: Exception | null): SmtpFailedRecipientException;
|
|
537
535
|
};
|
|
538
536
|
|
|
539
537
|
|
|
@@ -556,9 +554,9 @@ export interface SmtpFailedRecipientsException$instance extends SmtpFailedRecipi
|
|
|
556
554
|
|
|
557
555
|
export const SmtpFailedRecipientsException: {
|
|
558
556
|
new(): SmtpFailedRecipientsException;
|
|
559
|
-
new(message: string): SmtpFailedRecipientsException;
|
|
560
|
-
new(message: string, innerException: Exception): SmtpFailedRecipientsException;
|
|
561
|
-
new(message: string, innerExceptions: SmtpFailedRecipientException[]): SmtpFailedRecipientsException;
|
|
557
|
+
new(message: string | null): SmtpFailedRecipientsException;
|
|
558
|
+
new(message: string | null, innerException: Exception | null): SmtpFailedRecipientsException;
|
|
559
|
+
new(message: string | null, innerExceptions: SmtpFailedRecipientException[]): SmtpFailedRecipientsException;
|
|
562
560
|
};
|
|
563
561
|
|
|
564
562
|
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// Namespace: System.Net.Mime
|
|
3
3
|
// Assembly: System.Net.Mail
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
5
|
+
// Core type aliases from @tsonic/core
|
|
6
|
+
import type { JsValue, fnptr, ptr, sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/core/types.js';
|
|
7
|
+
|
|
7
8
|
|
|
8
9
|
// Import types from other namespaces
|
|
9
10
|
import type { StringDictionary } from "../../System.Collections.Specialized/internal/index.js";
|
|
@@ -24,14 +25,14 @@ export interface ContentDisposition$instance {
|
|
|
24
25
|
|
|
25
26
|
CreationDate: DateTime;
|
|
26
27
|
DispositionType: string;
|
|
27
|
-
get FileName(): string |
|
|
28
|
-
set FileName(value: string |
|
|
28
|
+
get FileName(): string | null;
|
|
29
|
+
set FileName(value: string | null);
|
|
29
30
|
Inline: boolean;
|
|
30
31
|
ModificationDate: DateTime;
|
|
31
32
|
readonly Parameters: StringDictionary;
|
|
32
33
|
ReadDate: DateTime;
|
|
33
34
|
Size: long;
|
|
34
|
-
Equals(rparam:
|
|
35
|
+
Equals(rparam: JsValue | null): boolean;
|
|
35
36
|
GetHashCode(): int;
|
|
36
37
|
ToString(): string;
|
|
37
38
|
}
|
|
@@ -48,14 +49,14 @@ export type ContentDisposition = ContentDisposition$instance;
|
|
|
48
49
|
export interface ContentType$instance {
|
|
49
50
|
readonly __tsonic_type_System_Net_Mime_ContentType: never;
|
|
50
51
|
|
|
51
|
-
get Boundary(): string |
|
|
52
|
-
set Boundary(value: string |
|
|
53
|
-
get CharSet(): string |
|
|
54
|
-
set CharSet(value: string |
|
|
52
|
+
get Boundary(): string | null;
|
|
53
|
+
set Boundary(value: string | null);
|
|
54
|
+
get CharSet(): string | null;
|
|
55
|
+
set CharSet(value: string | null);
|
|
55
56
|
MediaType: string;
|
|
56
57
|
Name: string;
|
|
57
58
|
readonly Parameters: StringDictionary;
|
|
58
|
-
Equals(rparam:
|
|
59
|
+
Equals(rparam: JsValue | null): boolean;
|
|
59
60
|
GetHashCode(): int;
|
|
60
61
|
ToString(): string;
|
|
61
62
|
}
|