import { type DependencyContainer } from "https://deno.land/x/alosaur@v0.1.1/src/injection/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
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
isRegistered<T>(token: InjectionToken<T>): boolean
createChildContainer(): DependencyContainer