AdonisJS API
    Preparing search index...

    Type Alias BindingEntry

    BindingEntry:
        | {
            resolver: BindingResolver<Record<any, any>, any>;
            isSingleton: false;
        }
        | {
            resolver: (
                containerResolver: ContainerResolver<Record<any, any>>,
                runtimeValues?: any[],
            ) => Promise<{ value: any; cached: boolean }>;
            isSingleton: true;
            hooksPromise?: Promise<void>;
        }

    Shape of a single registered binding. The entry holds the resolver alongside the flag to know if the resolved value must be cached after the first resolution.

    The same entry shape is used by the regular and the conditional bindings, so both get identical singleton and hooks behavior.