TypeDoc all the thngs
This commit is contained in:
@@ -10,10 +10,27 @@ import {error} from "../response/ErrorResponseFactory";
|
||||
* Interface for fluently registering kernel modules into the kernel.
|
||||
*/
|
||||
export interface ModuleRegistrationFluency {
|
||||
/**
|
||||
* If no argument is provided, the module will be registered before the core module.
|
||||
* If an argument is provided, the module will be registered before the other specified module.
|
||||
* @param other
|
||||
*/
|
||||
before: (other?: Instantiable<HTTPKernelModule>) => HTTPKernel,
|
||||
|
||||
/**
|
||||
* If no argument is provided, the module will be registered after the core module.
|
||||
* If an argument is provided, the module will be registered after the other specified module.
|
||||
* @param other
|
||||
*/
|
||||
after: (other?: Instantiable<HTTPKernelModule>) => HTTPKernel,
|
||||
|
||||
/** The module will be registered as the first module in the preflight. */
|
||||
first: () => HTTPKernel,
|
||||
|
||||
/** The module will be registered as the last module in the postflight. */
|
||||
last: () => HTTPKernel,
|
||||
|
||||
/** The module will be registered as the core handler for the request. */
|
||||
core: () => HTTPKernel,
|
||||
}
|
||||
|
||||
@@ -27,6 +44,9 @@ export class KernelModuleNotFoundError extends Error {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A singleton class that handles requests, applying logic in modular layers.
|
||||
*/
|
||||
@Singleton()
|
||||
export class HTTPKernel extends AppClass {
|
||||
@Inject()
|
||||
|
||||
Reference in New Issue
Block a user