UNPKG

@tsonic/dotnet-pure

Version:

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

78 lines (66 loc) 3.74 kB
// Generated by tsbindgen - Architecture // Namespace: System.Xml.Resolvers // Assembly: System.Private.Xml // 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 { IEnumerable_1, IEqualityComparer_1 } from "../../System.Collections.Generic/internal/index.js"; import type { Stream } from "../../System.IO/internal/index.js"; import type { ICredentials } from "../../System.Net/internal/index.js"; import type { Task_1 } from "../../System.Threading.Tasks/internal/index.js"; import * as System_Xml_Internal from "../../System.Xml/internal/index.js"; import type { XmlResolver } from "../../System.Xml/internal/index.js"; import * as System_Internal from "../../System/internal/index.js"; import type { Boolean as ClrBoolean, Byte, Enum, IComparable, IConvertible, IFormatProvider, IFormattable, Int32, ISpanFormattable, Object as ClrObject, String as ClrString, Type, TypeCode, Uri, 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 enum XmlKnownDtds { None = 0, Xhtml10 = 1, Rss091 = 2, All = 65535 } export interface XmlPreloadedResolver$instance extends XmlResolver { Credentials: ICredentials; readonly PreloadedUris: IEnumerable_1<Uri>; Add(uri: Uri, value: byte[]): void; Add(uri: Uri, value: byte[], offset: int, count: int): void; Add(uri: Uri, value: Stream): void; Add(uri: Uri, value: string): void; GetEntity(absoluteUri: Uri, role: string, ofObjectToReturn: Type): unknown; GetEntityAsync(absoluteUri: Uri, role: string, ofObjectToReturn: Type): Task_1<unknown>; GetEntityAsync(absoluteUri: Uri, role: string, ofObjectToReturn: Type): Task_1<unknown>; Remove(uri: Uri): void; ResolveUri(baseUri: Uri, relativeUri: string): Uri; SupportsType(absoluteUri: Uri, type_: Type): boolean; } export const XmlPreloadedResolver: { new(): XmlPreloadedResolver$instance; new(preloadedDtds: XmlKnownDtds): XmlPreloadedResolver$instance; new(fallbackResolver: XmlResolver): XmlPreloadedResolver$instance; new(fallbackResolver: XmlResolver, preloadedDtds: XmlKnownDtds): XmlPreloadedResolver$instance; new(fallbackResolver: XmlResolver, preloadedDtds: XmlKnownDtds, uriComparer: IEqualityComparer_1<Uri>): XmlPreloadedResolver$instance; }; export type XmlPreloadedResolver = XmlPreloadedResolver$instance;