UNPKG

knifecycle

Version:

Manage your NodeJS processes's lifecycle automatically with an unobtrusive dependency injection implementation.

7 lines (5 loc) 214 B
import { type DependencyDeclaration } from './util.js'; export const INJECTOR = '$injector'; export interface Injector<T extends Record<string, unknown>> { (dependencies: DependencyDeclaration[]): Promise<T>; }