Page Contents

Home > @loopback/context > config > getter

config.getter variable

@inject.getter decorator to inject a config getter function

Signature:

getter: (configPath?: string | undefined, metadata?: InjectionMetadata | undefined) => (target: Object, member: string, methodDescriptorOrParameterIndex?: number | TypedPropertyDescriptor<any> | undefined) => void