Page Contents

Home > @loopback/context > ResolutionSession > describeInjection

ResolutionSession.describeInjection() method

Describe the injection for debugging purpose

Signature:

static describeInjection(injection?: Readonly<Injection>): {
        targetName?: undefined;
        bindingSelector?: undefined;
        metadata?: undefined;
    } | {
        targetName: string;
        bindingSelector: import("./binding-filter").BindingSelector<any>;
        metadata: object;
    };

Parameters

Parameter Type Description
injection Readonly<Injection> Injection object

Returns:

{ targetName?: undefined; bindingSelector?: undefined; metadata?: undefined; } | { targetName: string; bindingSelector: import("./binding-filter").BindingSelector<any>; metadata: object; }