UNPKG

@tsonic/dotnet-types

Version:

TypeScript declarations and metadata for .NET 10.0 assemblies

91 lines (76 loc) 3.68 kB
// Auto-generated by generatedts on 2025-11-02T09:57:45Z - 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.Threading.Channels { enum BoundedChannelFullMode { Wait = 0, DropNewest = 1, DropOldest = 2, DropWrite = 3 } class BoundedChannelOptions extends System.Threading.Channels.ChannelOptions { constructor(capacity: int); Capacity: int; FullMode: System.Threading.Channels.BoundedChannelFullMode; } class Channel { static CreateUnbounded<T>(): System.Threading.Channels.Channel<T>; static CreateUnbounded<T>(options: System.Threading.Channels.UnboundedChannelOptions): System.Threading.Channels.Channel<T>; static CreateBounded<T>(capacity: int): System.Threading.Channels.Channel<T>; static CreateBounded<T>(options: System.Threading.Channels.BoundedChannelOptions): System.Threading.Channels.Channel<T>; static CreateBounded<T>(options: System.Threading.Channels.BoundedChannelOptions, itemDropped: System.Action<T>): System.Threading.Channels.Channel<T>; static CreateUnboundedPrioritized<T>(): System.Threading.Channels.Channel<T>; static CreateUnboundedPrioritized<T>(options: System.Threading.Channels.UnboundedPrioritizedChannelOptions<T>): System.Threading.Channels.Channel<T>; } class Channel<T> extends System.Threading.Channels.Channel<T, T> { } class Channel<TWrite, TRead> { Reader: System.Threading.Channels.ChannelReader<TRead>; Writer: System.Threading.Channels.ChannelWriter<TWrite>; } class ChannelClosedException extends System.InvalidOperationException implements System.Runtime.Serialization.ISerializable { constructor(); constructor(message: string); constructor(innerException: System.Exception); constructor(message: string, innerException: System.Exception); } class ChannelOptions { SingleWriter: boolean; SingleReader: boolean; AllowSynchronousContinuations: boolean; } class ChannelReader<T> { readonly Completion: System.Threading.Tasks.Task; readonly CanCount: boolean; readonly CanPeek: boolean; readonly Count: int; TryRead(item: T): boolean; TryPeek(item: T): boolean; WaitToReadAsync(cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<boolean>; ReadAsync(cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<T>; ReadAllAsync(cancellationToken?: System.Threading.CancellationToken): System.Collections.Generic.IAsyncEnumerable<T>; } class ChannelWriter<T> { TryComplete(error?: System.Exception): boolean; TryWrite(item: T): boolean; WaitToWriteAsync(cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask<boolean>; WriteAsync(item: T, cancellationToken?: System.Threading.CancellationToken): System.Threading.Tasks.ValueTask; Complete(error?: System.Exception): void; } class UnboundedChannelOptions extends System.Threading.Channels.ChannelOptions { constructor(); } class UnboundedPrioritizedChannelOptions<T> extends System.Threading.Channels.ChannelOptions { constructor(); Comparer: System.Collections.Generic.IComparer<T>; } }