UNPKG

@tsonic/dotnet

Version:

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

102 lines (79 loc) 4.45 kB
// Generated by tsbindgen - Architecture // Namespace: System.Runtime.Loader // 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 type { IEnumerable_1 } from "../../System.Collections.Generic/internal/index.js"; import type { Stream } from "../../System.IO/internal/index.js"; import type { Assembly, AssemblyName } from "../../System.Reflection/internal/index.js"; import * as System_Internal from "../../System/internal/index.js"; import type { Action_1, Boolean as ClrBoolean, Func_3, IDisposable, Int32, IntPtr, Object as ClrObject, String as ClrString, Type, ValueType, 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 AssemblyLoadContext_ContextualReflectionScope$instance { dispose(): void; } export const AssemblyLoadContext_ContextualReflectionScope: { new(): AssemblyLoadContext_ContextualReflectionScope$instance; }; export interface __AssemblyLoadContext_ContextualReflectionScope$views { As_IDisposable(): System_Internal.IDisposable$instance; } export interface AssemblyLoadContext_ContextualReflectionScope$instance extends System_Internal.IDisposable$instance {} export type AssemblyLoadContext_ContextualReflectionScope = AssemblyLoadContext_ContextualReflectionScope$instance & __AssemblyLoadContext_ContextualReflectionScope$views; export interface AssemblyDependencyResolver$instance { resolveAssemblyToPath(assemblyName: AssemblyName): string; resolveUnmanagedDllToPath(unmanagedDllName: string): string; } export const AssemblyDependencyResolver: { new(componentAssemblyPath: string): AssemblyDependencyResolver$instance; }; export type AssemblyDependencyResolver = AssemblyDependencyResolver$instance; export interface AssemblyLoadContext$instance { readonly assemblies: IEnumerable_1<Assembly>; readonly isCollectible: boolean; readonly name: string; enterContextualReflection(): AssemblyLoadContext_ContextualReflectionScope; loadFromAssemblyName(assemblyName: AssemblyName): Assembly; loadFromAssemblyPath(assemblyPath: string): Assembly; loadFromNativeImagePath(nativeImagePath: string, assemblyPath: string): Assembly; loadFromStream(assembly: Stream): Assembly; loadFromStream(assembly: Stream, assemblySymbols: Stream): Assembly; setProfileOptimizationRoot(directoryPath: string): void; startProfileOptimization(profile: string): void; toString(): string; unload(): void; } export const AssemblyLoadContext: { new(name: string, isCollectible: boolean): AssemblyLoadContext$instance; readonly default_: AssemblyLoadContext; readonly all: IEnumerable_1<AssemblyLoadContext>; readonly currentContextualReflectionContext: AssemblyLoadContext; enterContextualReflection(activating: Assembly): AssemblyLoadContext_ContextualReflectionScope; getAssemblyName(assemblyPath: string): AssemblyName; getLoadContext(assembly: Assembly): AssemblyLoadContext; }; export type AssemblyLoadContext = AssemblyLoadContext$instance;