import { type default } from "https://deno.land/x/alosaur@v0.30.0/src/injection/types/dependency-container.ts";
Methods
register<T>(token: InjectionToken<T>, provider: ValueProvider<T>): DependencyContainer
register<T>(token: InjectionToken<T>, provider: FactoryProvider<T>): DependencyContainer
registerSingleton<T>(from: InjectionToken<T>, to: InjectionToken<T>): DependencyContainer
registerSingleton<T>(token: constructor<T>): DependencyContainer
registerType<T>(from: InjectionToken<T>, to: InjectionToken<T>): DependencyContainer
registerInstance<T>(token: InjectionToken<T>, instance: T): DependencyContainer
resolve<T>(token: InjectionToken<T>): T
Resolve a token into an instance
resolveAll<T>(token: InjectionToken<T>): T[]
isRegistered<T>(token: InjectionToken<T>, recursive?: boolean): boolean
Check if the given dependency is registered