Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/tappin/core/container/container.ts>Container

🦖 Powerful application framework for Deno
Latest
interface Container
import { type Container } from "https://deno.land/x/tappin@0.5.0/core/container/container.ts";

Dependency injection container

Methods

register<T>(provider: Provider<T>): Promise<void> | void

Adds a new provider to container

resolve<T>(token: string | symbol): Promise<T>

Resolves a provider

clearSingletons(): void

Cleans up singletons

clearProviders(): void

Clean up providers

reset(): void

Resets container

initialize(which?: Array<string | symbol>): Promise<any[]>

Initializes given singletons