| bootstrap |
bootstrap()
|
|
Bootstrap function to initialize the NestJS application. |
| extractConditionsFromKeyDesc | ||||||||
extractConditionsFromKeyDesc(keyDesc: any)
|
||||||||
|
Extracts the conditions from a given key description.
Parameters :
Returns :
string[]
An array of strings representing the extracted conditions. |
| flattenMetas | ||||||||
flattenMetas(desc: any)
|
||||||||
|
Flattens the meta information from a given description object.
Parameters :
Returns :
Record<string, any>
A record containing the flattened meta information. |
| isEffectivelyRequired | ||||||||||||
isEffectivelyRequired(key: string, rawEnv: Record)
|
||||||||||||
|
Tests if a config key is effectively required in the current environment.
Parameters :
Returns :
boolean
True if the key is effectively required, false otherwise. |
| summarizeFlags | ||||||||
summarizeFlags(flags?: any)
|
||||||||
|
Summarizes the flags for a given configuration key.
Parameters :
Returns :
string
A string representation of the flags. |
| summarizeSchemaShape | ||||||||
summarizeSchemaShape(s?: any)
|
||||||||
|
Summarizes the shape of a given schema.
Parameters :
Returns :
string
A string representation of the schema shape. |
| summarizeWhenEntry | ||||||||
summarizeWhenEntry(w: any)
|
||||||||
|
Summarizes the conditions for a given "when" entry.
Parameters :
Returns :
string
A string representation of the "when" entry. |
| getHeadersFromRequest | ||||||
getHeadersFromRequest(req: Request)
|
||||||
|
Utility function to extract headers from an Express request
Parameters :
Returns :
globalThis.Headers
|
| Secured | ||||
Secured(roles)
|
||||
|
Parameters :
|
| SessionEntity |
SessionEntity()
|
|
Returns :
ParameterDecorator
|