import { type DependencyContainer } from "https://deno.land/x/alosaur@v0.24.1/src/injection/types/index.ts";
Methods
register<T>(token: InjectionToken<T>, provider: ValueProvider<T>): DependencyContainer
register<T>(token: InjectionToken<T>, provider: FactoryProvider<T>): DependencyContainer
register<T>(): DependencyContainer
register<T>(): DependencyContainer
register<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
Check if the given dependency is registered
createChildContainer(): DependencyContainer