core package
The core foundation for LoopBack 4. It can also serve as the platform to build large-scale Node.js applications and frameworks.
Remarks
For examples of how to leverage @loopback/core to build composable and extensible projects, check out the core tutorial.
Classes
| Class | Description |
|---|---|
|
Application is the container for various types of artifacts, such as components, servers, controllers, repositories, datasources, connectors, and models. | |
|
A context-based registry for life cycle observers |
Functions
| Function | Description |
|---|---|
|
addExtension(context, extensionPointName, extensionClass, options) |
Register an extension for the given extension point to the context |
|
A | |
|
Create a binding template for a service interface | |
|
Create a service binding from a class or provider | |
|
A factory function to create binding filter for extensions of a named extension point | |
|
A factory function to create binding template for extensions of the given extension point | |
|
Decorate a class as a named extension point. If the decoration is not present, the name of the class will be used. | |
|
Shortcut to inject extensions for the given extension point. | |
|
Create a binding filter by service class | |
|
Test if an object implements LifeCycleObserver | |
|
Test if a class implements LifeCycleObserver | |
|
Sugar decorator to mark a class as life cycle observer | |
|
Mount a component to an Application. | |
|
|
Interfaces
| Interface | Description |
|---|---|
|
Configuration for application | |
|
Type description for | |
|
A map of classes to be bound to a context | |
|
A component declares a set of artifacts so that they can be contributed to an application as a group | |
|
Observers to handle life cycle init/start/stop events | |
|
A map of provider classes to be bound to a context | |
|
Defines the requirements to implement a Server for LoopBack applications: start() : Promise | |
|
Options to register a service binding |
Namespaces
| Namespace | Description |
|---|---|
|
Namespace for core binding keys | |
Variables
| Variable | Description |
|---|---|
|
Find all life cycle observer bindings. By default, a binding tagged with |
Type Aliases
| Type Alias | Description |
|---|---|
|
A group of life cycle observers | |
|
A replacement for | |
|
Representing an interface for services. In TypeScript, the | |
|
Options to set up application shutdown |