UNPKG

@tsonic/dotnet-pure

Version:

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

181 lines (143 loc) 5.72 kB
// Generated by tsbindgen - Architecture // Namespace: System.Net.Mime // Assembly: System.Net.Mail // 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 type { StringDictionary } from "../../System.Collections.Specialized/internal/index.js"; import * as System_Internal from "../../System/internal/index.js"; import type { Boolean as ClrBoolean, DateTime, Enum, IComparable, IConvertible, IFormatProvider, IFormattable, Int32, Int64, ISpanFormattable, Object as ClrObject, String as ClrString, Type, TypeCode } 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 enum TransferEncoding { Unknown = -1, QuotedPrintable = 0, Base64 = 1, SevenBit = 2, EightBit = 3 } export interface ContentDisposition$instance { CreationDate: DateTime; DispositionType: string; FileName: string; Inline: boolean; ModificationDate: DateTime; readonly Parameters: StringDictionary; ReadDate: DateTime; Size: long; Equals(rparam: unknown): boolean; GetHashCode(): int; ToString(): string; } export const ContentDisposition: { new(): ContentDisposition$instance; new(disposition: string): ContentDisposition$instance; }; export type ContentDisposition = ContentDisposition$instance; export interface ContentType$instance { Boundary: string; CharSet: string; MediaType: string; Name: string; readonly Parameters: StringDictionary; Equals(rparam: unknown): boolean; GetHashCode(): int; ToString(): string; } export const ContentType: { new(): ContentType$instance; new(contentType: string): ContentType$instance; }; export type ContentType = ContentType$instance; export abstract class DispositionTypeNames$instance { static readonly Inline: string; static readonly Attachment: string; } export type DispositionTypeNames = DispositionTypeNames$instance; export abstract class MediaTypeNames$instance { } export type MediaTypeNames = MediaTypeNames$instance; export abstract class MediaTypeNames_Application$instance { static readonly FormUrlEncoded: string; static readonly GZip: string; static readonly Json: string; static readonly JsonPatch: string; static readonly JsonSequence: string; static readonly Manifest: string; static readonly Octet: string; static readonly Pdf: string; static readonly ProblemJson: string; static readonly ProblemXml: string; static readonly Rtf: string; static readonly Soap: string; static readonly Wasm: string; static readonly Xml: string; static readonly XmlDtd: string; static readonly XmlPatch: string; static readonly Yaml: string; static readonly Zip: string; } export type MediaTypeNames_Application = MediaTypeNames_Application$instance; export abstract class MediaTypeNames_Font$instance { static readonly Collection: string; static readonly Otf: string; static readonly Sfnt: string; static readonly Ttf: string; static readonly Woff: string; static readonly Woff2: string; } export type MediaTypeNames_Font = MediaTypeNames_Font$instance; export abstract class MediaTypeNames_Image$instance { static readonly Avif: string; static readonly Bmp: string; static readonly Gif: string; static readonly Icon: string; static readonly Jpeg: string; static readonly Png: string; static readonly Svg: string; static readonly Tiff: string; static readonly Webp: string; } export type MediaTypeNames_Image = MediaTypeNames_Image$instance; export abstract class MediaTypeNames_Multipart$instance { static readonly ByteRanges: string; static readonly FormData: string; static readonly Mixed: string; static readonly Related: string; } export type MediaTypeNames_Multipart = MediaTypeNames_Multipart$instance; export abstract class MediaTypeNames_Text$instance { static readonly Css: string; static readonly Csv: string; static readonly EventStream: string; static readonly Html: string; static readonly JavaScript: string; static readonly Markdown: string; static readonly Plain: string; static readonly RichText: string; static readonly Rtf: string; static readonly Xml: string; } export type MediaTypeNames_Text = MediaTypeNames_Text$instance;