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

x/alosaur/src/injection/factories/predicate-aware-class-factory.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.30.0/src/injection/factories/predicate-aware-class-factory.ts";

Parameters

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