Skip to main content
Module

x/alosaur/mod.ts>Scoped

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
function Scoped
import { Scoped } from "https://deno.land/x/alosaur@v0.38.0/mod.ts";

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

Parameters

lifecycle: Lifecycle.ContainerScoped | Lifecycle.ResolutionScoped
optional
token: InjectionToken<T>

Returns

(target: constructor<T>) => void

The class decorator