UNPKG

@tsonic/dotnet-types

Version:

TypeScript declarations and metadata for .NET 10.0 assemblies

90 lines (83 loc) 14.7 kB
// Auto-generated by generatedts on 2025-11-02T09:57:40Z - do not edit by hand. type int = number & { __brand: "int" }; type uint = number & { __brand: "uint" }; type byte = number & { __brand: "byte" }; type sbyte = number & { __brand: "sbyte" }; type short = number & { __brand: "short" }; type ushort = number & { __brand: "ushort" }; type long = number & { __brand: "long" }; type ulong = number & { __brand: "ulong" }; type float = number & { __brand: "float" }; type double = number & { __brand: "double" }; type decimal = number & { __brand: "decimal" }; declare namespace System.Net.Http.Json { class HttpClientJsonExtensions { static GetFromJsonAsAsyncEnumerable<TValue>(client: System.Net.Http.HttpClient, requestUri: string, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): System.Collections.Generic.IAsyncEnumerable<TValue>; static GetFromJsonAsAsyncEnumerable<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): System.Collections.Generic.IAsyncEnumerable<TValue>; static GetFromJsonAsAsyncEnumerable<TValue>(client: System.Net.Http.HttpClient, requestUri: string, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): System.Collections.Generic.IAsyncEnumerable<TValue>; static GetFromJsonAsAsyncEnumerable<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): System.Collections.Generic.IAsyncEnumerable<TValue>; static GetFromJsonAsAsyncEnumerable<TValue>(client: System.Net.Http.HttpClient, requestUri: string, cancellationToken?: System.Threading.CancellationToken): System.Collections.Generic.IAsyncEnumerable<TValue>; static GetFromJsonAsAsyncEnumerable<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, cancellationToken?: System.Threading.CancellationToken): System.Collections.Generic.IAsyncEnumerable<TValue>; static DeleteFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: string, type: System.Type, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static DeleteFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: System.Uri, type: System.Type, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static DeleteFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static DeleteFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static DeleteFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: string, type: System.Type, context: System.Text.Json.Serialization.JsonSerializerContext, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static DeleteFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: System.Uri, type: System.Type, context: System.Text.Json.Serialization.JsonSerializerContext, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static DeleteFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static DeleteFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static DeleteFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: string, type: System.Type, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static DeleteFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: System.Uri, type: System.Type, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static DeleteFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static DeleteFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static GetFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: string, type: System.Type, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static GetFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: System.Uri, type: System.Type, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static GetFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static GetFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static GetFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: string, type: System.Type, context: System.Text.Json.Serialization.JsonSerializerContext, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static GetFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: System.Uri, type: System.Type, context: System.Text.Json.Serialization.JsonSerializerContext, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static GetFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static GetFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static GetFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: string, type: System.Type, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static GetFromJsonAsync(client: System.Net.Http.HttpClient, requestUri: System.Uri, type: System.Type, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static GetFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static GetFromJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, cancellationToken?: System.Threading.CancellationToken): Promise<TValue>; static PostAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, value: TValue, options?: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PostAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, value: TValue, options?: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PostAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, value: TValue, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PostAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, value: TValue, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PostAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, value: TValue, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PostAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, value: TValue, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PutAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, value: TValue, options?: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PutAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, value: TValue, options?: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PutAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, value: TValue, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PutAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, value: TValue, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PutAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, value: TValue, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PutAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, value: TValue, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PatchAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, value: TValue, options?: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PatchAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, value: TValue, options?: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PatchAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, value: TValue, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PatchAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, value: TValue, cancellationToken: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PatchAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: string, value: TValue, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; static PatchAsJsonAsync<TValue>(client: System.Net.Http.HttpClient, requestUri: System.Uri, value: TValue, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): Promise<System.Net.Http.HttpResponseMessage>; } class HttpContentJsonExtensions { static ReadFromJsonAsAsyncEnumerable<TValue>(content: System.Net.Http.HttpContent, cancellationToken?: System.Threading.CancellationToken): System.Collections.Generic.IAsyncEnumerable<TValue>; static ReadFromJsonAsAsyncEnumerable<TValue>(content: System.Net.Http.HttpContent, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): System.Collections.Generic.IAsyncEnumerable<TValue>; static ReadFromJsonAsAsyncEnumerable<TValue>(content: System.Net.Http.HttpContent, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<TValue>, cancellationToken?: System.Threading.CancellationToken): System.Collections.Generic.IAsyncEnumerable<TValue>; static ReadFromJsonAsync(content: System.Net.Http.HttpContent, type: System.Type, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static ReadFromJsonAsync(content: System.Net.Http.HttpContent, type: System.Type, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static ReadFromJsonAsync<T>(content: System.Net.Http.HttpContent, options: System.Text.Json.JsonSerializerOptions, cancellationToken?: System.Threading.CancellationToken): Promise<T>; static ReadFromJsonAsync<T>(content: System.Net.Http.HttpContent, cancellationToken?: System.Threading.CancellationToken): Promise<T>; static ReadFromJsonAsync(content: System.Net.Http.HttpContent, type: System.Type, context: System.Text.Json.Serialization.JsonSerializerContext, cancellationToken?: System.Threading.CancellationToken): Promise<any>; static ReadFromJsonAsync<T>(content: System.Net.Http.HttpContent, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<T>, cancellationToken?: System.Threading.CancellationToken): Promise<T>; } class JsonContent extends System.Net.Http.HttpContent implements System.IDisposable { readonly ObjectType: System.Type; readonly Value: any; static Create<T>(inputValue: T, mediaType?: System.Net.Http.Headers.MediaTypeHeaderValue, options?: System.Text.Json.JsonSerializerOptions): System.Net.Http.Json.JsonContent; static Create(inputValue: any, inputType: System.Type, mediaType?: System.Net.Http.Headers.MediaTypeHeaderValue, options?: System.Text.Json.JsonSerializerOptions): System.Net.Http.Json.JsonContent; static Create<T>(inputValue: T, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo<T>, mediaType?: System.Net.Http.Headers.MediaTypeHeaderValue): System.Net.Http.Json.JsonContent; static Create(inputValue: any, jsonTypeInfo: System.Text.Json.Serialization.Metadata.JsonTypeInfo, mediaType?: System.Net.Http.Headers.MediaTypeHeaderValue): System.Net.Http.Json.JsonContent; } }