Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

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

Returns

(target: constructor<T>) => void

The class decorator