@loopback/docs
Version:
Documentation for LoopBack 4
1,541 lines • 128 kB
JSON
{
"metadata": {
"toolPackage": "@microsoft/api-extractor",
"toolVersion": "7.3.8",
"schemaVersion": 1003,
"oldestForwardsCompatibleVersion": 1001
},
"kind": "Package",
"canonicalReference": "@loopback/boot!",
"docComment": "",
"name": "@loopback/boot",
"members": [
{
"kind": "EntryPoint",
"canonicalReference": "@loopback/boot!",
"name": "",
"members": [
{
"kind": "Function",
"canonicalReference": "@loopback/boot!_bindBooter:function(1)",
"docComment": "/**\n * Method which binds a given Booter to a given Context with the Prefix and Tags expected by the Bootstrapper\n *\n * @param ctx - The Context to bind the Booter Class\n *\n * @param booterCls - Booter class to be bound\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare function "
},
{
"kind": "Reference",
"text": "_bindBooter"
},
{
"kind": "Content",
"text": "("
},
{
"kind": "Reference",
"text": "ctx"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "Context"
},
{
"kind": "Content",
"text": ", "
},
{
"kind": "Reference",
"text": "booterCls"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "Constructor"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "Booter"
},
{
"kind": "Content",
"text": ">"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Reference",
"text": "Binding"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 14,
"endIndex": 15
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "ctx",
"parameterTypeTokenRange": {
"startIndex": 5,
"endIndex": 6
}
},
{
"parameterName": "booterCls",
"parameterTypeTokenRange": {
"startIndex": 9,
"endIndex": 13
}
}
],
"name": "_bindBooter"
},
{
"kind": "Class",
"canonicalReference": "@loopback/boot!ApplicationMetadataBooter:class",
"docComment": "/**\n * Configure the application with metadata from `package.json`\n *\n * @param app - Application instance\n *\n * @param projectRoot - Root of User Project\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare class "
},
{
"kind": "Reference",
"text": "ApplicationMetadataBooter"
},
{
"kind": "Content",
"text": " implements "
},
{
"kind": "Reference",
"text": "Booter"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "ApplicationMetadataBooter",
"members": [
{
"kind": "Constructor",
"canonicalReference": "@loopback/boot!ApplicationMetadataBooter:constructor(1)",
"docComment": "/**\n * Constructs a new instance of the `ApplicationMetadataBooter` class\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "constructor("
},
{
"kind": "Reference",
"text": "app"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "Application"
},
{
"kind": "Content",
"text": ", "
},
{
"kind": "Reference",
"text": "projectRoot"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ");"
}
],
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "app",
"parameterTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
}
},
{
"parameterName": "projectRoot",
"parameterTypeTokenRange": {
"startIndex": 7,
"endIndex": 8
}
}
]
},
{
"kind": "Property",
"canonicalReference": "@loopback/boot!ApplicationMetadataBooter#app:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "app"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "Application"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "app",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
},
"isStatic": false
},
{
"kind": "Method",
"canonicalReference": "@loopback/boot!ApplicationMetadataBooter#configure:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "configure"
},
{
"kind": "Content",
"text": "(): "
},
{
"kind": "Reference",
"text": "Promise"
},
{
"kind": "Content",
"text": "<void>"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "configure"
}
],
"implementsTokenRanges": [
{
"startIndex": 3,
"endIndex": 5
}
]
},
{
"kind": "TypeAlias",
"canonicalReference": "@loopback/boot!ArtifactOptions:type",
"docComment": "/**\n * Type definition for ArtifactOptions. These are the options supported by this Booter.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare type "
},
{
"kind": "Reference",
"text": "ArtifactOptions"
},
{
"kind": "Content",
"text": " = "
},
{
"kind": "Content",
"text": "{\n "
},
{
"kind": "Reference",
"text": "dirs"
},
{
"kind": "Content",
"text": "?: string | string[];\n "
},
{
"kind": "Reference",
"text": "extensions"
},
{
"kind": "Content",
"text": "?: string | string[];\n "
},
{
"kind": "Reference",
"text": "nested"
},
{
"kind": "Content",
"text": "?: boolean;\n "
},
{
"kind": "Reference",
"text": "glob"
},
{
"kind": "Content",
"text": "?: string;\n}"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "ArtifactOptions",
"typeTokenRange": {
"startIndex": 3,
"endIndex": 12
}
},
{
"kind": "Class",
"canonicalReference": "@loopback/boot!BaseArtifactBooter:class",
"docComment": "/**\n * This class serves as a base class for Booters which follow a pattern of configure, discover files in a folder(s) using explicit folder / extensions or a glob pattern and lastly identifying exported classes from such files and performing an action on such files such as binding them.\n *\n * Any Booter extending this base class is expected to\n *\n * 1. Set the 'options' property to a object of ArtifactOptions type. (Each extending class should provide defaults for the ArtifactOptions and use Object.assign to merge the properties with user provided Options). 2. Provide it's own logic for 'load' after calling 'await super.load()' to actually boot the Artifact classes.\n *\n * Currently supports the following boot phases: configure, discover, load.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare class "
},
{
"kind": "Reference",
"text": "BaseArtifactBooter"
},
{
"kind": "Content",
"text": " implements "
},
{
"kind": "Reference",
"text": "Booter"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "BaseArtifactBooter",
"members": [
{
"kind": "Constructor",
"canonicalReference": "@loopback/boot!BaseArtifactBooter:constructor(1)",
"docComment": "/**\n * Constructs a new instance of the `BaseArtifactBooter` class\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "constructor("
},
{
"kind": "Reference",
"text": "projectRoot"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ", "
},
{
"kind": "Reference",
"text": "options"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "ArtifactOptions"
},
{
"kind": "Content",
"text": ");"
}
],
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "projectRoot",
"parameterTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
}
},
{
"parameterName": "options",
"parameterTypeTokenRange": {
"startIndex": 7,
"endIndex": 8
}
}
]
},
{
"kind": "Property",
"canonicalReference": "@loopback/boot!BaseArtifactBooter#artifactName:member",
"docComment": "/**\n * Get the name of the artifact loaded by this booter, e.g. \"Controller\". Subclasses can override the default logic based on the class name.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly "
},
{
"kind": "Reference",
"text": "artifactName"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "artifactName",
"propertyTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"isStatic": false
},
{
"kind": "Property",
"canonicalReference": "@loopback/boot!BaseArtifactBooter#classes:member",
"docComment": "/**\n * List of exported classes discovered in the files\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "classes"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "Constructor"
},
{
"kind": "Content",
"text": "<{}>[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "classes",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
},
"isStatic": false
},
{
"kind": "Method",
"canonicalReference": "@loopback/boot!BaseArtifactBooter#configure:member(1)",
"docComment": "/**\n * Configure the Booter by initializing the 'dirs', 'extensions' and 'glob' properties.\n *\n * NOTE: All properties are configured even if all aren't used.\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "configure"
},
{
"kind": "Content",
"text": "(): "
},
{
"kind": "Reference",
"text": "Promise"
},
{
"kind": "Content",
"text": "<void>"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "configure"
},
{
"kind": "Property",
"canonicalReference": "@loopback/boot!BaseArtifactBooter#dirs:member",
"docComment": "/**\n * Relative paths of directories to be searched\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "dirs"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "dirs",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
},
"isStatic": false
},
{
"kind": "Method",
"canonicalReference": "@loopback/boot!BaseArtifactBooter#discover:member(1)",
"docComment": "/**\n * Discover files based on the 'glob' property relative to the 'projectRoot'. Discovered artifact files matching the pattern are saved to the 'discovered' property.\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "discover"
},
{
"kind": "Content",
"text": "(): "
},
{
"kind": "Reference",
"text": "Promise"
},
{
"kind": "Content",
"text": "<void>"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "discover"
},
{
"kind": "Property",
"canonicalReference": "@loopback/boot!BaseArtifactBooter#discovered:member",
"docComment": "/**\n * List of files discovered by the Booter that matched artifact requirements\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "discovered"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "discovered",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
},
"isStatic": false
},
{
"kind": "Property",
"canonicalReference": "@loopback/boot!BaseArtifactBooter#extensions:member",
"docComment": "/**\n * File extensions to be searched\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "extensions"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "extensions",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
},
"isStatic": false
},
{
"kind": "Property",
"canonicalReference": "@loopback/boot!BaseArtifactBooter#glob:member",
"docComment": "/**\n * `glob` pattern to match artifact paths\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "glob"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "glob",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
},
"isStatic": false
},
{
"kind": "Method",
"canonicalReference": "@loopback/boot!BaseArtifactBooter#load:member(1)",
"docComment": "/**\n * Filters the exports of 'discovered' files to only be Classes (in case function / types are exported) as an artifact is a Class. The filtered artifact Classes are saved in the 'classes' property.\n *\n * NOTE: Booters extending this class should call this method (await super.load()) and then process the artifact classes as appropriate.\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "load"
},
{
"kind": "Content",
"text": "(): "
},
{
"kind": "Reference",
"text": "Promise"
},
{
"kind": "Content",
"text": "<void>"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "load"
},
{
"kind": "Property",
"canonicalReference": "@loopback/boot!BaseArtifactBooter#options:member",
"docComment": "/**\n * Options being used by the Booter.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly "
},
{
"kind": "Reference",
"text": "options"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "ArtifactOptions"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "options",
"propertyTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"isStatic": false
},
{
"kind": "Property",
"canonicalReference": "@loopback/boot!BaseArtifactBooter#projectRoot:member",
"docComment": "/**\n * Project root relative to which all other paths are resolved\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly "
},
{
"kind": "Reference",
"text": "projectRoot"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "projectRoot",
"propertyTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"isStatic": false
}
],
"implementsTokenRanges": [
{
"startIndex": 3,
"endIndex": 5
}
]
},
{
"kind": "Interface",
"canonicalReference": "@loopback/boot!Bootable:interface",
"docComment": "/**\n * Interface to describe the additions made available to an Application that uses BootMixin.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface "
},
{
"kind": "Reference",
"text": "Bootable"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "Bootable",
"members": [
{
"kind": "MethodSignature",
"canonicalReference": "@loopback/boot!Bootable#boot:member(1)",
"docComment": "/**\n * Boot up the project\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "boot"
},
{
"kind": "Content",
"text": "(): "
},
{
"kind": "Reference",
"text": "Promise"
},
{
"kind": "Content",
"text": "<void>"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "boot"
},
{
"kind": "MethodSignature",
"canonicalReference": "@loopback/boot!Bootable#booters:member(1)",
"docComment": "/**\n * Register booters\n *\n * @param booterClasses - A list of booter classes\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "booters"
},
{
"kind": "Content",
"text": "(..."
},
{
"kind": "Reference",
"text": "booterClasses"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "Constructor"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "Booter"
},
{
"kind": "Content",
"text": ">[]"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Reference",
"text": "Binding"
},
{
"kind": "Content",
"text": "[]"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 9,
"endIndex": 11
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "booterClasses",
"parameterTypeTokenRange": {
"startIndex": 4,
"endIndex": 8
}
}
],
"name": "booters"
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/boot!Bootable#bootOptions:member",
"docComment": "/**\n * Options for boot\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "bootOptions"
},
{
"kind": "Content",
"text": "?: "
},
{
"kind": "Reference",
"text": "BootOptions"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "bootOptions",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/boot!Bootable#projectRoot:member",
"docComment": "/**\n * Root directory for the project to be booted\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "projectRoot"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "projectRoot",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
}
],
"extendsTokenRanges": []
},
{
"kind": "Namespace",
"canonicalReference": "@loopback/boot!BootBindings:namespace",
"docComment": "/**\n * Namespace for boot related binding keys\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare namespace "
},
{
"kind": "Reference",
"text": "BootBindings"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "BootBindings",
"members": [
{
"kind": "Variable",
"canonicalReference": "@loopback/boot!BootBindings.BOOT_OPTIONS:var",
"docComment": "/**\n * Binding key for boot options\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "BOOT_OPTIONS"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "BindingKey"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "BootOptions"
},
{
"kind": "Content",
"text": ">"
}
],
"releaseTag": "Public",
"name": "BOOT_OPTIONS",
"variableTypeTokenRange": {
"startIndex": 2,
"endIndex": 6
}
},
{
"kind": "Variable",
"canonicalReference": "@loopback/boot!BootBindings.BOOTER_PREFIX:var",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "BOOTER_PREFIX"
},
{
"kind": "Content",
"text": " = \"booters\""
}
],
"releaseTag": "Public",
"name": "BOOTER_PREFIX",
"variableTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
},
{
"kind": "Variable",
"canonicalReference": "@loopback/boot!BootBindings.BOOTSTRAPPER_KEY:var",
"docComment": "/**\n * Binding key for binding the BootStrapper class\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "BOOTSTRAPPER_KEY"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "BindingKey"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "Bootstrapper"
},
{
"kind": "Content",
"text": ">"
}
],
"releaseTag": "Public",
"name": "BOOTSTRAPPER_KEY",
"variableTypeTokenRange": {
"startIndex": 2,
"endIndex": 6
}
},
{
"kind": "Variable",
"canonicalReference": "@loopback/boot!BootBindings.PROJECT_ROOT:var",
"docComment": "/**\n * Binding key for determining project root directory\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "PROJECT_ROOT"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "BindingKey"
},
{
"kind": "Content",
"text": "<string>"
}
],
"releaseTag": "Public",
"name": "PROJECT_ROOT",
"variableTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
}
}
]
},
{
"kind": "Class",
"canonicalReference": "@loopback/boot!BootComponent:class",
"docComment": "/**\n * BootComponent is used to export the default list of Booter's made available by this module as well as bind the BootStrapper to the app so it can be used to run the Booters.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare class "
},
{
"kind": "Reference",
"text": "BootComponent"
},
{
"kind": "Content",
"text": " implements "
},
{
"kind": "Reference",
"text": "Component"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "BootComponent",
"members": [
{
"kind": "Constructor",
"canonicalReference": "@loopback/boot!BootComponent:constructor(1)",
"docComment": "/**\n * Constructs a new instance of the `BootComponent` class\n *\n * @param app - Application instance\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "constructor("
},
{
"kind": "Reference",
"text": "app"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "Application"
},
{
"kind": "Content",
"text": ");"
}
],
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "app",
"parameterTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
}
}
]
},
{
"kind": "Property",
"canonicalReference": "@loopback/boot!BootComponent#booters:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Reference",
"text": "booters"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "(typeof "
},
{
"kind": "Reference",
"text": "ApplicationMetadataBooter"
},
{
"kind": "Content",
"text": " | typeof "
},
{
"kind": "Reference",
"text": "ControllerBooter"
},
{
"kind": "Content",
"text": " | typeof "
},
{
"kind": "Reference",
"text": "RepositoryBooter"
},
{
"kind": "Content",
"text": " | typeof "
},
{
"kind": "Reference",
"text": "ServiceBooter"
},
{
"kind": "Content",
"text": " | typeof "
},
{
"kind": "Reference",
"text": "DataSourceBooter"
},
{
"kind": "Content",
"text": " | typeof "
},
{
"kind": "Reference",
"text": "LifeCycleObserverBooter"
},
{
"kind": "Content",
"text": " | typeof "
},
{
"kind": "Reference",
"text": "InterceptorProviderBooter"
},
{
"kind": "Content",
"text": ")[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "booters",
"propertyTypeTokenRange": {
"startIndex": 2,
"endIndex": 17
},
"isStatic": false
}
],
"implementsTokenRanges": [
{
"startIndex": 3,
"endIndex": 5
}
]
},
{
"kind": "Variable",
"canonicalReference": "@loopback/boot!BOOTER_PHASES:var",
"docComment": "/**\n * Export of an array of all the Booter phases supported by the interface above, in the order they should be run.\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "BOOTER_PHASES"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string[]"
}
],
"releaseTag": "Public",
"name": "BOOTER_PHASES",
"variableTypeTokenRange": {
"startIndex": 2,
"endIndex": 3
}
},
{
"kind": "Function",
"canonicalReference": "@loopback/boot!booter:function(1)",
"docComment": "/**\n * `@booter` decorator to mark a class as a `Booter` and specify the artifact namespace for the configuration of the booter\n *\n * @param artifactNamespace - Namespace for the artifact. It will be used to inject configuration from boot options. For example, the Booter class decorated with `@booter('controllers')` can receive its configuration via `@config()` from the `controllers` property of boot options.\n *\n * @param specs - Extra specs for the binding\n *\n * @example\n * ```ts\n * @booter('controllers')\n * export class ControllerBooter extends BaseArtifactBooter {\n * constructor(\n * @inject(CoreBindings.APPLICATION_INSTANCE) public app: Application,\n * @inject(BootBindings.PROJECT_ROOT) projectRoot: string,\n * @config()\n * public controllerConfig: ArtifactOptions = {},\n * ) {\n * // ...\n * }\n * }\n * ```\n *\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare function "
},
{
"kind": "Reference",
"text": "booter"
},
{
"kind": "Content",
"text": "("
},
{
"kind": "Reference",
"text": "artifactNamespace"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ", ..."
},
{
"kind": "Reference",
"text": "specs"
},
{
"kind": "Content",
"text": ": "
},
{
"kind": "Reference",
"text": "BindingSpec"
},
{
"kind": "Content",
"text": "[]"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Reference",
"text": "ClassDecorator"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 12,
"endIndex": 13
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "artifactNamespace",
"parameterTypeTokenRange": {
"startIndex": 5,
"endIndex": 6
}
},
{
"parameterName": "specs",
"parameterTypeTokenRange": {
"startIndex": 9,
"endIndex": 11
}
}
],
"name": "booter"
},
{
"kind": "Interface",
"canonicalReference": "@loopback/boot!Booter:interface",
"docComment": "/**\n * Defines the requirements to implement a Booter for LoopBack applications: - configure() - discover() - load()\n *\n * A Booter will run through the above methods in order.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface "
},
{
"kind": "Reference",
"text": "Booter"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "Booter",
"members": [
{
"kind": "MethodSignature",
"canonicalReference": "@loopback/boot!Booter#configure:member(1)",
"docComment": "/**\n * Configure phase of the Booter. It should set options / defaults in this phase.\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "configure"
},
{
"kind": "Content",
"text": "?(): "
},
{
"kind": "Reference",
"text": "Promise"
},
{
"kind": "Content",
"text": "<void>"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "configure"
},
{
"kind": "MethodSignature",
"canonicalReference": "@loopback/boot!Booter#discover:member(1)",
"docComment": "/**\n * Discover phase of the Booter. It should search for artifacts in this phase.\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "discover"
},
{
"kind": "Content",
"text": "?(): "
},
{
"kind": "Reference",
"text": "Promise"
},
{
"kind": "Content",
"text": "<void>"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "discover"
},
{
"kind": "MethodSignature",
"canonicalReference": "@loopback/boot!Booter#load:member(1)",
"docComment": "/**\n * Load phase of the Booter. It should bind the artifacts in this phase.\n */\n",
"excerptTokens": [
{
"kind": "Reference",
"text": "load"
},
{
"kind": "Content",
"text": "?(): "
},
{
"kind": "Reference",
"text": "Promise"
},
{
"kind": "Content",
"text": "<void>"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 2,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "load"
}
],
"extendsTokenRanges": []
},
{
"kind": "TypeAlias",
"canonicalReference": "@l