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

x/alosaur/src/injection/decorators/singleton.ts>default

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

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

Returns

(target: constructor<T>) => void

The class decorator