Page Contents
context package
Classes
| Class | Description |
|---|---|
| [Binding](/doc/en/lb4/apidocs.context.binding.html) | Binding represents an entry in the `Context`. Each binding has a key and a corresponding value getter. |
| [BindingKey](/doc/en/lb4/apidocs.context.bindingkey.html) | |
| [Context](/doc/en/lb4/apidocs.context.context.html) | Context provides an implementation of Inversion of Control (IoC) container |
| [ContextSubscriptionManager](/doc/en/lb4/apidocs.context.contextsubscriptionmanager.html) | Manager for context observer subscriptions |
| [ContextView](/doc/en/lb4/apidocs.context.contextview.html) | `ContextView` provides a view for a given context chain to maintain a live list of matching bindings and their resolved values within the context hierarchy. This class is the key utility to implement dynamic extensions for extension points. For example, the RestServer can react to `controller` bindings even they are added/removed/updated after the application starts. `ContextView` is an event emitter that emits the following events: - 'bind': when a binding is added to the view - 'unbind': when a binding is removed from the view - 'close': when the view is closed (stopped observing context events) - 'refresh': when the view is refreshed as bindings are added/removed - 'resolve': when the cached values are resolved and updated |
| [DefaultConfigurationResolver](/doc/en/lb4/apidocs.context.defaultconfigurationresolver.html) | Resolver for configurations of bindings |
| [GenericInterceptorChain](/doc/en/lb4/apidocs.context.genericinterceptorchain.html) | A chain of generic interceptors to be invoked for the given context |
| [InterceptedInvocationContext](/doc/en/lb4/apidocs.context.interceptedinvocationcontext.html) | A specialized InvocationContext for interceptors |
| [InterceptionHandler](/doc/en/lb4/apidocs.context.interceptionhandler.html) | A proxy handler that applies interceptors See https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global\_Objects/Proxy |
| [InvocationContext](/doc/en/lb4/apidocs.context.invocationcontext.html) | InvocationContext represents the context to invoke interceptors for a method. The context can be used to access metadata about the invocation as well as other dependencies. |
| [ProxySource](/doc/en/lb4/apidocs.context.proxysource.html) | Invocation source for injected proxies. It wraps a snapshot of the `ResolutionSession` that tracks the binding/injection stack. |
| [ResolutionError](/doc/en/lb4/apidocs.context.resolutionerror.html) | Error for context binding resolutions and dependency injections |
| [ResolutionSession](/doc/en/lb4/apidocs.context.resolutionsession.html) | Object to keep states for a session to resolve bindings and their dependencies within a context |
Enumerations
| Enumeration | Description |
|---|---|
| [BindingCreationPolicy](/doc/en/lb4/apidocs.context.bindingcreationpolicy.html) | Policy to control if a binding should be created for the context |
| [BindingScope](/doc/en/lb4/apidocs.context.bindingscope.html) | Scope for binding values |
| [BindingType](/doc/en/lb4/apidocs.context.bindingtype.html) | Type of the binding source |
Functions
| Function | Description |
|---|---|
| [asBindingTemplate(scopeAndTags)](/doc/en/lb4/apidocs.context.asbindingtemplate.html) | Convert binding scope and tags as a template function |
| [asClassOrProvider(target)](/doc/en/lb4/apidocs.context.asclassorprovider.html) | A factory function to create a template function to bind the target class as a class or `Provider`. |
| [asGlobalInterceptor(group)](/doc/en/lb4/apidocs.context.asglobalinterceptor.html) | The `BindingTemplate` function to configure a binding as a global interceptor by tagging it with `ContextTags.INTERCEPTOR` |
| [asProvider(target)](/doc/en/lb4/apidocs.context.asprovider.html) | A factory function to create a template function to bind the target class as a `Provider`. |
| [asResolutionOptions(optionsOrSession)](/doc/en/lb4/apidocs.context.asresolutionoptions.html) | Normalize ResolutionOptionsOrSession to ResolutionOptions |
| [assertTargetType(injection, expectedType, expectedTypeName)](/doc/en/lb4/apidocs.context.asserttargettype.html) | Assert the target type inspected from TypeScript for injection to be the expected type. If the types don't match, an error is thrown. |
| [bind(specs)](/doc/en/lb4/apidocs.context.bind.html) | `@bind` is now an alias to for backward compatibility |
| [bindingTemplateFor(cls, options)](/doc/en/lb4/apidocs.context.bindingtemplatefor.html) | Get the binding template for a class with binding metadata |
| [compareBindingsByTag(phaseTagName, orderOfPhases)](/doc/en/lb4/apidocs.context.comparebindingsbytag.html) | Creates a binding compare function to sort bindings by tagged phase name. |
| [compareByOrder(a, b, order)](/doc/en/lb4/apidocs.context.comparebyorder.html) | Compare two values by the predefined order |
| [composeInterceptors(interceptors)](/doc/en/lb4/apidocs.context.composeinterceptors.html) | Compose a list of interceptors as a single interceptor |
| [config(propertyPath, metadata)](/doc/en/lb4/apidocs.context.config.html) | Inject a property from `config` of the current binding. If no corresponding config value is present, `undefined` will be injected as the configuration binding is resolved with `optional: true` by default. |
| [configBindingKeyFor(key, propertyPath)](/doc/en/lb4/apidocs.context.configbindingkeyfor.html) | Create binding key for configuration of the binding |
| [createBindingFromClass(cls, options)](/doc/en/lb4/apidocs.context.createbindingfromclass.html) | Create a binding from a class with decorated metadata. The class is attached to the binding as follows: - `binding.toClass(cls)`: if `cls` is a plain class such as `MyController` - `binding.toProvider(cls)`: if `cls` is a value provider class with a prototype method `value()` - `binding.toDynamicValue(cls)`: if `cls` is a dynamic value provider class with a static method `value()` |
| [createProxyWithInterceptors(target, context, session, source)](/doc/en/lb4/apidocs.context.createproxywithinterceptors.html) | Create a proxy that applies interceptors for method invocations |
| [createViewGetter(ctx, bindingFilter, session)](/doc/en/lb4/apidocs.context.createviewgetter.html) | Create a context view as a getter with the given filter |
| [createViewGetter(ctx, bindingFilter, bindingComparator, session)](/doc/en/lb4/apidocs.context.createviewgetter_1.html) | Create a context view as a getter with the given filter and sort matched bindings by the comparator. |
| [describeInjectedArguments(target, method)](/doc/en/lb4/apidocs.context.describeinjectedarguments.html) | Return an array of injection objects for parameters |
| [describeInjectedProperties(target)](/doc/en/lb4/apidocs.context.describeinjectedproperties.html) | Return a map of injection objects for properties |
| [filterByKey(keyPattern)](/doc/en/lb4/apidocs.context.filterbykey.html) | Create a binding filter from key pattern |
| [filterByTag(tagPattern)](/doc/en/lb4/apidocs.context.filterbytag.html) | Create a binding filter for the tag pattern |
| [getBindingMetadata(target)](/doc/en/lb4/apidocs.context.getbindingmetadata.html) | Get binding metadata for a class |
| [getDeepProperty(value, path)](/doc/en/lb4/apidocs.context.getdeepproperty.html) | Get nested properties of an object by path |
| [globalInterceptor(group, specs)](/doc/en/lb4/apidocs.context.globalinterceptor.html) | `@globalInterceptor` decorator to mark the class as a global interceptor |
| [hasInjections(cls)](/doc/en/lb4/apidocs.context.hasinjections.html) | Check if the given class has `@inject` or other decorations that map to `@inject`. |
| [includesTagValue(itemValues)](/doc/en/lb4/apidocs.context.includestagvalue.html) | Create a tag value matcher function that returns `true` if the target tag value equals to the item value or is an array that includes the item value. |
| [inject(bindingSelector, metadata, resolve)](/doc/en/lb4/apidocs.context.inject.html) | A decorator to annotate method arguments for automatic injection by LoopBack IoC container. |
| [injectable(specs)](/doc/en/lb4/apidocs.context.injectable.html) | Decorate a class with binding configuration |
| [inspectInjections(binding)](/doc/en/lb4/apidocs.context.inspectinjections.html) | Inspect injections for a binding created with `toClass` or `toProvider` |
| [inspectTargetType(injection)](/doc/en/lb4/apidocs.context.inspecttargettype.html) | Inspect the target type for the injection to find out the corresponding JavaScript type |
| [instantiateClass(ctor, ctx, session, nonInjectedArgs)](/doc/en/lb4/apidocs.context.instantiateclass.html) | Create an instance of a class which constructor has arguments decorated with `@inject`. The function returns a class when all dependencies were resolved synchronously, or a Promise otherwise. |
| [intercept(interceptorOrKeys)](/doc/en/lb4/apidocs.context.intercept.html) | Decorator function `@intercept` for classes/methods to apply interceptors. It can be applied on a class and its public methods. Multiple occurrences of `@intercept` are allowed on the same target class or method. The decorator takes a list of `interceptor` functions or binding keys. |
| [invokeInterceptors(context, interceptors)](/doc/en/lb4/apidocs.context.invokeinterceptors.html) | Invoke a chain of interceptors with the context |
| [invokeMethod(target, method, ctx, nonInjectedArgs, options)](/doc/en/lb4/apidocs.context.invokemethod.html) | Invoke a method using dependency injection. Interceptors are invoked as part of the invocation. |
| [invokeMethodWithInterceptors(context, target, methodName, args, options)](/doc/en/lb4/apidocs.context.invokemethodwithinterceptors.html) | Invoke a method with the given context |
| [isBindingAddress(bindingSelector)](/doc/en/lb4/apidocs.context.isbindingaddress.html) | Type guard for binding address |
| [isBindingTagFilter(filter)](/doc/en/lb4/apidocs.context.isbindingtagfilter.html) | Type guard for BindingTagFilter |
| [isDynamicValueProviderClass(factory)](/doc/en/lb4/apidocs.context.isdynamicvalueproviderclass.html) | Check if the factory is a value factory provider class |
| [isPromiseLike(value)](/doc/en/lb4/apidocs.context.ispromiselike.html) | Check whether a value is a Promise-like instance. Recognizes both native promises and third-party promise libraries. |
| [isProviderClass(cls)](/doc/en/lb4/apidocs.context.isproviderclass.html) | Check if a class implements `Provider` interface |
| [mergeInterceptors(interceptorsFromSpec, existingInterceptors)](/doc/en/lb4/apidocs.context.mergeinterceptors.html) | Adding interceptors from the spec to the front of existing ones. Duplicate entries are eliminated from the spec side. For example: - \[log\] + \[cache, log\] => \[cache, log\] - \[log\] + \[log, cache\] => \[log, cache\] - \[\] + \[cache, log\] => \[cache, log\] - \[cache, log\] + \[\] => \[cache, log\] - \[log\] + \[cache\] => \[log, cache\] |
| [registerInterceptor(ctx, interceptor, options)](/doc/en/lb4/apidocs.context.registerinterceptor.html) | Register an interceptor function or provider class to the given context |
| [removeNameAndKeyTags(binding)](/doc/en/lb4/apidocs.context.removenameandkeytags.html) | A binding template function to delete `name` and `key` tags |
| [resolveInjectedArguments(target, method, ctx, session, nonInjectedArgs)](/doc/en/lb4/apidocs.context.resolveinjectedarguments.html) | Given a function with arguments decorated with `@inject`, return the list of arguments resolved using the values bound in `ctx`. The function returns an argument array when all dependencies were resolved synchronously, or a Promise otherwise. |
| [resolveInjectedProperties(constructor, ctx, session)](/doc/en/lb4/apidocs.context.resolveinjectedproperties.html) | Given a class with properties decorated with `@inject`, return the map of properties resolved using the values bound in `ctx`. The function returns an argument array when all dependencies were resolved synchronously, or a Promise otherwise. |
| [resolveList(list, resolver)](/doc/en/lb4/apidocs.context.resolvelist.html) | Resolve entries of an array into a new array with the same indexes. If one or more entries of the source array are resolved to a promise by the `resolver` function, this method returns a promise which will be resolved to the new array with fully resolved entries. |
| [resolveMap(map, resolver)](/doc/en/lb4/apidocs.context.resolvemap.html) | Resolve entries of an object into a new object with the same keys. If one or more entries of the source object are resolved to a promise by the `resolver` function, this method returns a promise which will be resolved to the new object with fully resolved entries. |
| [resolveUntil(source, resolver, evaluator)](/doc/en/lb4/apidocs.context.resolveuntil.html) | Resolve an iterator of source values into a result until the evaluator returns `true` |
| [sortBindingsByPhase(bindings, phaseTagName, orderOfPhases)](/doc/en/lb4/apidocs.context.sortbindingsbyphase.html) | Sort bindings by phase names denoted by a tag and the predefined order |
| [transformValueOrPromise(valueOrPromise, transformer)](/doc/en/lb4/apidocs.context.transformvalueorpromise.html) | Transform a value or promise with a function that produces a new value or promise |
| [tryCatchFinally(action, errorAction, finalAction)](/doc/en/lb4/apidocs.context.trycatchfinally.html) | Try to run an action that returns a promise or a value with error and final actions to mimic `try {} catch(err) {} finally {}` for a value or promise. |
| [tryWithFinally(action, finalAction)](/doc/en/lb4/apidocs.context.trywithfinally.html) | Try to run an action that returns a promise or a value |
| [uuid()](/doc/en/lb4/apidocs.context.uuid.html) | A utility to generate uuid v4 |
Interfaces
| Interface | Description |
|---|---|
| [BindingComparator](/doc/en/lb4/apidocs.context.bindingcomparator.html) | Compare function to sort an array of bindings. It is used by `Array.prototype.sort()`. |
| [BindingElement](/doc/en/lb4/apidocs.context.bindingelement.html) | Wrapper for bindings tracked by resolution sessions |
| [BindingFilter](/doc/en/lb4/apidocs.context.bindingfilter.html) | A function that filters bindings. It returns `true` to select a given binding. |
| [BindingInspectOptions](/doc/en/lb4/apidocs.context.bindinginspectoptions.html) | Options for binding.inspect() |
| [BindingTagFilter](/doc/en/lb4/apidocs.context.bindingtagfilter.html) | Binding filter function that holds a binding tag pattern. `Context.find()` uses the `bindingTagPattern` to optimize the matching of bindings by tag to avoid expensive check for all bindings. |
| [ConfigInjectionMetadata](/doc/en/lb4/apidocs.context.configinjectionmetadata.html) | Injection metadata for `@config.*` |
| [ConfigurationResolver](/doc/en/lb4/apidocs.context.configurationresolver.html) | Resolver for configuration of bindings. It's responsible for finding corresponding configuration for a given binding key. By default, `undefined` is expected if no configuration is provided. The behavior can be overridden by setting `optional` to `false` in resolution options. |
| [ContextInspectOptions](/doc/en/lb4/apidocs.context.contextinspectoptions.html) | Options for context.inspect() |
| [ContextObserver](/doc/en/lb4/apidocs.context.contextobserver.html) | Observers of context bind/unbind events |
| [ContextViewEvent](/doc/en/lb4/apidocs.context.contextviewevent.html) | An event emitted by a `ContextView` |
| [DynamicValueProviderClass](/doc/en/lb4/apidocs.context.dynamicvalueproviderclass.html) | A class with a static `value` method as the factory function for `toDynamicValue`. |
| [InjectBindingMetadata](/doc/en/lb4/apidocs.context.injectbindingmetadata.html) | Metadata for `@inject.binding` |
| [Injection](/doc/en/lb4/apidocs.context.injection.html) | Descriptor for an injection point |
| [InjectionDescriptor](/doc/en/lb4/apidocs.context.injectiondescriptor.html) | |
| [InjectionElement](/doc/en/lb4/apidocs.context.injectionelement.html) | Wrapper for injections tracked by resolution sessions |
| [InjectionMetadata](/doc/en/lb4/apidocs.context.injectionmetadata.html) | An object to provide metadata for `@inject` |
| [Interceptor](/doc/en/lb4/apidocs.context.interceptor.html) | Interceptor function to intercept method invocations |
| [InterceptorBindingOptions](/doc/en/lb4/apidocs.context.interceptorbindingoptions.html) | Options for an interceptor binding |
| [InvocationSource](/doc/en/lb4/apidocs.context.invocationsource.html) | An interface to represent the caller of the invocation |
| [JSONArray](/doc/en/lb4/apidocs.context.jsonarray.html) | JSON array |
| [JSONObject](/doc/en/lb4/apidocs.context.jsonobject.html) | JSON object |
| [Notification](/doc/en/lb4/apidocs.context.notification.html) | Event data for observer notifications |
| [Provider](/doc/en/lb4/apidocs.context.provider.html) | Providers allow developers to compute injected values dynamically, with any dependencies required by the value getter injected automatically from the Context. |
| [ResolutionContext](/doc/en/lb4/apidocs.context.resolutioncontext.html) | Contextual metadata for resolution |
| [ResolutionOptions](/doc/en/lb4/apidocs.context.resolutionoptions.html) | Options for binding/dependency resolution |
| [ResolverFunction](/doc/en/lb4/apidocs.context.resolverfunction.html) | A function to provide resolution of injected values. |
| [Subscription](/doc/en/lb4/apidocs.context.subscription.html) | Subscription of context events. It's modeled after https://github.com/tc39/proposal-observable. |
| [TagValueMatcher](/doc/en/lb4/apidocs.context.tagvaluematcher.html) | A function to check if a given tag value is matched for `filterByTag` |
Namespaces
| Namespace | Description |
|---|---|
| [bind](/doc/en/lb4/apidocs.context.bind.html) | Alias namespace `bind` to `injectable` for backward compatibility It should have the same members as `bind`. |
| [config](/doc/en/lb4/apidocs.context.config.html) | |
| [ContextBindings](/doc/en/lb4/apidocs.context.contextbindings.html) | Namespace for context bindings |
| [ContextTags](/doc/en/lb4/apidocs.context.contexttags.html) | Namespace for context tags |
| [Getter](/doc/en/lb4/apidocs.context.getter.html) | |
| [inject](/doc/en/lb4/apidocs.context.inject.html) | |
| [injectable](/doc/en/lb4/apidocs.context.injectable.html) | A namespace to host shortcuts for `@injectable` |
Variables
| Variable | Description |
|---|---|
| [ANY\_TAG\_VALUE](/doc/en/lb4/apidocs.context.any_tag_value.html) | A symbol that can be used to match binding tags by name regardless of the value. |
| [BINDING\_METADATA\_KEY](/doc/en/lb4/apidocs.context.binding_metadata_key.html) | Metadata key for binding metadata |
| [DEFAULT\_TYPE\_NAMESPACES](/doc/en/lb4/apidocs.context.default_type_namespaces.html) | |
| [GLOBAL\_INTERCEPTOR\_NAMESPACE](/doc/en/lb4/apidocs.context.global_interceptor_namespace.html) | Default namespace for global interceptors |
| [INTERCEPT\_CLASS\_KEY](/doc/en/lb4/apidocs.context.intercept_class_key.html) | Metadata key for method-level interceptors |
| [INTERCEPT\_METHOD\_KEY](/doc/en/lb4/apidocs.context.intercept_method_key.html) | Metadata key for method-level interceptors |
| [LOCAL\_INTERCEPTOR\_NAMESPACE](/doc/en/lb4/apidocs.context.local_interceptor_namespace.html) | Default namespace for local interceptors |
| [UUID\_PATTERN](/doc/en/lb4/apidocs.context.uuid_pattern.html) | A regular expression for testing uuid v4 PATTERN |
Type Aliases
| Type Alias | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| [AliasBindingSource](/doc/en/lb4/apidocs.context.aliasbindingsource.html) | Binding source for `toAlias` | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [AsInterceptedFunction](/doc/en/lb4/apidocs.context.asinterceptedfunction.html) |
The intercepted variant of a function to return `ValueOrPromise|
[AsValueOrPromise](/doc/en/lb4/apidocs.context.asvalueorpromise.html)
|
Create the Promise type for `T`. If `T` extends `Promise`, the type is `T`, otherwise the type is `ValueOrPromise |
[AsyncProxy](/doc/en/lb4/apidocs.context.asyncproxy.html)
|
The proxy type for `T`. The return type for any method of `T` with original return type `R` becomes `ValueOrPromise |
[BindingAddress](/doc/en/lb4/apidocs.context.bindingaddress.html)
|
|
[BindingEvent](/doc/en/lb4/apidocs.context.bindingevent.html)
|
Information for a binding event
|
[BindingEventListener](/doc/en/lb4/apidocs.context.bindingeventlistener.html)
|
Event listeners for binding events
|
[BindingFromClassOptions](/doc/en/lb4/apidocs.context.bindingfromclassoptions.html)
|
Options to customize the binding created from a class
|
[BindingMetadata](/doc/en/lb4/apidocs.context.bindingmetadata.html)
|
Binding metadata from `@injectable`
|
[BindingScopeAndTags](/doc/en/lb4/apidocs.context.bindingscopeandtags.html)
|
An object to configure binding scope and tags
|
[BindingSelector](/doc/en/lb4/apidocs.context.bindingselector.html)
|
Select binding(s) by key or a filter function
|
[BindingSource](/doc/en/lb4/apidocs.context.bindingsource.html)
|
Source for the binding, including the type and value
|
[BindingSpec](/doc/en/lb4/apidocs.context.bindingspec.html)
|
Specification of parameters for `@injectable()`
|
[BindingTag](/doc/en/lb4/apidocs.context.bindingtag.html)
|
Binding tag can be a simple name or name/value pairs
|
[BindingTemplate](/doc/en/lb4/apidocs.context.bindingtemplate.html)
|
A function as the template to configure bindings
|
[BoundValue](/doc/en/lb4/apidocs.context.boundvalue.html)
|
|
[ClassBindingSource](/doc/en/lb4/apidocs.context.classbindingsource.html)
|
Binding source for `toClass`
|
[ConstantBindingSource](/doc/en/lb4/apidocs.context.constantbindingsource.html)
|
Binding source for `to`
|
[Constructor](/doc/en/lb4/apidocs.context.constructor.html)
|
A class constructor accepting arbitrary arguments.
|
[ContextEvent](/doc/en/lb4/apidocs.context.contextevent.html)
|
Events emitted by a context
|
[ContextEventListener](/doc/en/lb4/apidocs.context.contexteventlistener.html)
|
Synchronous listener for context events
|
[ContextEventObserver](/doc/en/lb4/apidocs.context.contexteventobserver.html)
|
Context event observer type - An instance of `ContextObserver` or a function
|
[ContextEventType](/doc/en/lb4/apidocs.context.contexteventtype.html)
|
Context event types. We support `bind` and `unbind` for now but keep it open for new types
|
[ContextObserverFn](/doc/en/lb4/apidocs.context.contextobserverfn.html)
|
Listen on `bind`, `unbind`, or other events
|
[DynamicValueBindingSource](/doc/en/lb4/apidocs.context.dynamicvaluebindingsource.html)
|
Binding source for `toDynamicValue`
|
[GenericInterceptor](/doc/en/lb4/apidocs.context.genericinterceptor.html)
|
An interceptor function to be invoked in a chain for the given context. It serves as the base interface for various types of interceptors, such as method invocation interceptor or request/response processing interceptor.
|
[GenericInterceptorOrKey](/doc/en/lb4/apidocs.context.genericinterceptororkey.html)
|
Interceptor function or a binding key that resolves a generic interceptor function
|
[Getter](/doc/en/lb4/apidocs.context.getter.html)
|
The function injected by `@inject.getter(bindingSelector)`. It can be used to fetch bound value(s) from the underlying binding(s). The return value will be an array if the `bindingSelector` is a `BindingFilter` function.
|
[InterceptorOrKey](/doc/en/lb4/apidocs.context.interceptororkey.html)
|
Interceptor function or binding key that can be used as parameters for `@intercept()`
|
[InvocationArgs](/doc/en/lb4/apidocs.context.invocationargs.html)
|
Array of arguments for a method invocation
|
[InvocationOptions](/doc/en/lb4/apidocs.context.invocationoptions.html)
|
Options to control invocations
|
[InvocationResult](/doc/en/lb4/apidocs.context.invocationresult.html)
|
Return value for a method invocation
|
[JSONPrimitive](/doc/en/lb4/apidocs.context.jsonprimitive.html)
|
JSON primitive types: - string - number - boolean - null
|
[JSONValue](/doc/en/lb4/apidocs.context.jsonvalue.html)
|
JSON values - primitive - object - array
|
[MapObject](/doc/en/lb4/apidocs.context.mapobject.html)
|
|
[Next](/doc/en/lb4/apidocs.context.next.html)
|
The `next` function that can be used to invoke next generic interceptor in the chain
|
[NonVoid](/doc/en/lb4/apidocs.context.nonvoid.html)
|
Any type except `void`. We use this type to enforce that interceptor functions always return a value (including undefined or null).
|
[ProviderBindingSource](/doc/en/lb4/apidocs.context.providerbindingsource.html)
|
Binding source for `toProvider`
|
[ResolutionAction](/doc/en/lb4/apidocs.context.resolutionaction.html)
|
A function to be executed with the resolution session
|
[ResolutionElement](/doc/en/lb4/apidocs.context.resolutionelement.html)
|
Binding or injection elements tracked by resolution sessions
|
[ResolutionOptionsOrSession](/doc/en/lb4/apidocs.context.resolutionoptionsorsession.html)
|
Resolution options or session
|
[Setter](/doc/en/lb4/apidocs.context.setter.html)
|
The function injected by `@inject.setter(bindingKey)`. It sets the underlying binding to a constant value using `binding.to(value)`.
|
[TagMap](/doc/en/lb4/apidocs.context.tagmap.html)
|
|
[TypeNamespaceMapping](/doc/en/lb4/apidocs.context.typenamespacemapping.html)
|
Mapping artifact types to binding key namespaces (prefixes).
|
[ValueFactory](/doc/en/lb4/apidocs.context.valuefactory.html)
|
A factory function for `toDynamicValue`
|
[ValueOrPromise](/doc/en/lb4/apidocs.context.valueorpromise.html)
|
Representing a value or promise. This type is used to represent results of synchronous/asynchronous resolution of values.
Note that we are using PromiseLike instead of native Promise to describe the asynchronous variant. This allows producers of async values to use any Promise implementation (e.g. Bluebird) instead of native Promises provided by JavaScript runtime.
| |