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

x/alosaur/src/injection/index.ts

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
import * as alosaur from "https://deno.land/x/alosaur@v0.35.2/src/injection/index.ts";

Functions

Class decorator factory that replaces the decorated class' constructor with a parameter less constructor that has dependencies auto-resolved

Parameter decorator factory that allows for interface information to be stored in the constructor's metadata

Class decorator factory that allows the class' dependencies to be injected at runtime.

Parameter decorator factory that allows for interface information to be stored in the constructor's metadata

Class decorator factory that allows constructor dependencies to be registered at runtime.

Class decorator factory that registers the class as a scoped dependency within the global container.

Class decorator factory that registers the class as a singleton within the global container.

Interfaces

Provide a dependency using a factory. Unlike the other providers, this does not support instance caching. If you need instance caching, your factory method must implement it.