Page Contents

Home > @loopback/context > config > getter

config.getter variable

@inject.getter decorator to inject a config getter function

Signature:

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