UNPKG

@tsonic/dotnet-pure

Version:

TypeScript type definitions for .NET 10 BCL (Base Class Library) - CLR naming

144 lines (127 loc) 6.43 kB
// Generated by tsbindgen - Architecture // Namespace: System.CodeDom.Compiler // Assembly: System.Private.CoreLib // Branded primitive types are sourced from @tsonic/types import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types'; // Import types from other namespaces import * as System_IO_Internal from "../../System.IO/internal/index.js"; import type { TextWriter } from "../../System.IO/internal/index.js"; import type { Encoding, StringBuilder } from "../../System.Text/internal/index.js"; import type { Task, ValueTask } from "../../System.Threading.Tasks/internal/index.js"; import type { CancellationToken } from "../../System.Threading/internal/index.js"; import * as System_Internal from "../../System/internal/index.js"; import type { Attribute, Boolean as ClrBoolean, Char, Decimal, Double, IAsyncDisposable, IDisposable, IFormatProvider, Int32, Int64, Object as ClrObject, ReadOnlyMemory_1, ReadOnlySpan_1, Single, String as ClrString, Type, UInt32, UInt64, Void } from "../../System/internal/index.js"; // CLROf<T> - Maps ergonomic primitives to their CLR types for generic constraints // This utility is used ONLY in generic type arguments to satisfy CLR interface constraints // Value positions (parameters, return types) use lowercase primitives for ergonomics export type CLROf<T> = T extends sbyte ? System_Internal.SByte : T extends short ? System_Internal.Int16 : T extends int ? System_Internal.Int32 : T extends long ? System_Internal.Int64 : T extends int128 ? System_Internal.Int128 : T extends nint ? System_Internal.IntPtr : T extends byte ? System_Internal.Byte : T extends ushort ? System_Internal.UInt16 : T extends uint ? System_Internal.UInt32 : T extends ulong ? System_Internal.UInt64 : T extends uint128 ? System_Internal.UInt128 : T extends nuint ? System_Internal.UIntPtr : T extends half ? System_Internal.Half : T extends float ? System_Internal.Single : T extends double ? System_Internal.Double : T extends decimal ? System_Internal.Decimal : T extends char ? System_Internal.Char : T extends boolean ? System_Internal.Boolean : T extends string ? System_Internal.String : T; // Identity fallback for non-primitive types export interface GeneratedCodeAttribute$instance extends Attribute { readonly Tool: string; readonly Version: string; } export const GeneratedCodeAttribute: { new(tool: string, version: string): GeneratedCodeAttribute$instance; }; export type GeneratedCodeAttribute = GeneratedCodeAttribute$instance; export interface IndentedTextWriter$instance extends TextWriter { readonly Encoding: Encoding; Indent: int; readonly InnerWriter: TextWriter; NewLine: string; Close(): void; Dispose(): void; DisposeAsync(): ValueTask; Flush(): void; FlushAsync(): Task; FlushAsync(cancellationToken: CancellationToken): Task; Write(s: string): void; Write(value: boolean): void; Write(value: char): void; Write(buffer: char[]): void; Write(buffer: char[], index: int, count: int): void; Write(value: double): void; Write(value: float): void; Write(value: int): void; Write(value: long): void; Write(value: unknown): void; Write(format: string, arg0: unknown): void; Write(format: string, arg0: unknown, arg1: unknown): void; Write(format: string, arg: unknown[]): void; Write(format: string, arg: ReadOnlySpan_1<unknown>): void; Write(buffer: ReadOnlySpan_1<CLROf<char>>): void; Write(value: uint): void; Write(value: ulong): void; Write(value: decimal): void; Write(value: StringBuilder): void; Write(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void; Write(format: string, arg: ReadOnlySpan_1<unknown>): void; WriteAsync(value: char): Task; WriteAsync(buffer: char[], index: int, count: int): Task; WriteAsync(value: string): Task; WriteAsync(buffer: ReadOnlyMemory_1<CLROf<char>>, cancellationToken?: CancellationToken): Task; WriteAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task; WriteAsync(buffer: char[]): Task; WriteAsync(buffer: ReadOnlyMemory_1<CLROf<char>>, cancellationToken?: CancellationToken): Task; WriteLine(s: string): void; WriteLine(): void; WriteLine(value: boolean): void; WriteLine(value: char): void; WriteLine(buffer: char[]): void; WriteLine(buffer: char[], index: int, count: int): void; WriteLine(value: double): void; WriteLine(value: float): void; WriteLine(value: int): void; WriteLine(value: long): void; WriteLine(value: unknown): void; WriteLine(format: string, arg0: unknown): void; WriteLine(format: string, arg0: unknown, arg1: unknown): void; WriteLine(format: string, arg: unknown[]): void; WriteLine(format: string, arg: ReadOnlySpan_1<unknown>): void; WriteLine(value: uint): void; WriteLine(buffer: ReadOnlySpan_1<CLROf<char>>): void; WriteLine(value: ulong): void; WriteLine(value: decimal): void; WriteLine(value: StringBuilder): void; WriteLine(format: string, arg0: unknown, arg1: unknown, arg2: unknown): void; WriteLine(format: string, arg: ReadOnlySpan_1<unknown>): void; WriteLineAsync(): Task; WriteLineAsync(value: char): Task; WriteLineAsync(buffer: char[], index: int, count: int): Task; WriteLineAsync(value: string): Task; WriteLineAsync(buffer: ReadOnlyMemory_1<CLROf<char>>, cancellationToken?: CancellationToken): Task; WriteLineAsync(value: StringBuilder, cancellationToken?: CancellationToken): Task; WriteLineAsync(buffer: char[]): Task; WriteLineAsync(buffer: ReadOnlyMemory_1<CLROf<char>>, cancellationToken?: CancellationToken): Task; WriteLineNoTabs(s: string): void; WriteLineNoTabsAsync(s: string): Task; } export const IndentedTextWriter: { new(writer: TextWriter): IndentedTextWriter$instance; new(writer: TextWriter, tabString: string): IndentedTextWriter$instance; readonly DefaultTabString: string; }; export interface __IndentedTextWriter$views { As_IAsyncDisposable(): System_Internal.IAsyncDisposable$instance; As_IDisposable(): System_Internal.IDisposable$instance; } export type IndentedTextWriter = IndentedTextWriter$instance & __IndentedTextWriter$views;