@adonisjs/fold
Version:
Simplest and straightforward implementation of IoC container in JavaScript
17 lines (16 loc) • 580 B
TypeScript
import diagnostics_channel from 'node:diagnostics_channel';
import type { ContainerMakeTracingData } from './types.ts';
/**
* Tracing channel for container.make method calls
*
* This channel emits events when the container resolves dependencies,
* providing data about the binding being resolved.
*
* @example
* ```ts
* containerMake.subscribe('start', (message) => {
* console.log('Starting resolution for:', message.binding)
* })
* ```
*/
export declare const containerMake: diagnostics_channel.TracingChannel<"adonisjs.container.make", ContainerMakeTracingData>;