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

x/danet/src/mod.ts>Injector

A Savory web framework for Deno heavily inspired by Nest
Go to Latest
class Injector
Re-export
import { Injector } from "https://deno.land/x/danet@1.3.3/src/mod.ts";

Properties

private
availableTypes: Map<InjectableConstructor, boolean>
private
logger: Logger
private
resolved: Map<Constructor | string, (ctx?: HttpContext) => Promise<unknown> | unknown>

Methods

private
getParamToken(Type: Constructor, paramIndex: number)
private
resolveDependencies(Dependencies: Constructor[], ParentConstructor: Constructor)
private
setNonSingleton(
key: string | InjectableConstructor,
dependencies: Array<Constructor>,
)
get<T>(Type: Constructor<T> | string, ctx?: HttpContext): T
has<T>(Type: Constructor<T> | string): boolean