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

x/alosaur/src/injection/factories/index.ts>predicateAwareClassFactory

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

Parameters

predicate: (dependencyContainer: DependencyContainer) => boolean
trueConstructor: constructor<T>
falseConstructor: constructor<T>
optional
useCaching = [UNSUPPORTED]