talawa-api / Exports / libraries/requestContext
- getRequestContextValue
- init
- middleware
- setRequestContext
- setRequestContextValue
- translate
- translatePlural
• Const
requestContextNamespace: Namespace
<Record
<string
, any
>>
src/libraries/requestContext.ts:8
▸ getRequestContextValue<T
>(key
): T
Name |
---|
T |
Name | Type |
---|---|
key |
string |
T
src/libraries/requestContext.ts:19
▸ init<T
>(options?
): T
Name |
---|
T |
Name | Type |
---|---|
options |
InterfaceInitOptions <T > |
T
src/libraries/requestContext.ts:45
▸ middleware(): (req
: Request
<ParamsDictionary
, any
, any
, ParsedQs
, Record
<string
, any
>>, res
: Response
<any
, Record
<string
, any
>>, next
: NextFunction
) => void
fn
▸ (req
, res
, next
): void
Name | Type |
---|---|
req |
Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >> |
res |
Response <any , Record <string , any >> |
next |
NextFunction |
void
src/libraries/requestContext.ts:28
▸ setRequestContext(obj
): void
Name | Type |
---|---|
obj |
any |
void
src/libraries/requestContext.ts:23
▸ setRequestContextValue<T
>(key
, value
): T
Name |
---|
T |
Name | Type |
---|---|
key |
string |
value |
T |
T
src/libraries/requestContext.ts:14
▸ translate(...args
): any
Name | Type |
---|---|
...args |
any |
any
src/libraries/requestContext.ts:62
▸ translatePlural(...args
): any
Name | Type |
---|---|
...args |
any |
any