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

x/alosaur/src/injection/index.ts>AutoInjectable

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
function AutoInjectable
import { AutoInjectable } from "https://deno.land/x/alosaur@v0.24.1/src/injection/index.ts";

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

Note: Resolution is performed using the global container

Returns

(target: constructor<any>) => any

The class decorator