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

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

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

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

Returns

(target: constructor<T>) => void

The class decorator