Options accepted by the register* functions.

interface RegisterOptions {
    cacheProvidedValue?: boolean;
    overwrite?: boolean;
}

Properties

cacheProvidedValue?: boolean

If true and the value is a provider function, it is only invoked once. Otherwise the function is invoked for every call for key. Default is true.

overwrite?: boolean

If true and there is a provider already, the existing provider is replaced. Otherwise an error is thrown.