File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export interface KeqContext {
21
21
*
22
22
* next: to prevent someone invoke `next()` multiple times or forgetting await
23
23
*/
24
- metadata : {
24
+ readonly metadata : {
25
25
// Is middleware running completed
26
26
finished : boolean
27
27
// How many times the next() is called
@@ -40,14 +40,14 @@ export interface KeqContext {
40
40
*/
41
41
readonly identifier : string
42
42
43
- emitter : Emitter < Omit < KeqEvents , never > >
43
+ readonly emitter : Emitter < Omit < KeqEvents , never > >
44
44
45
45
options : KeqContextOptions
46
46
47
47
/**
48
48
* keq request context
49
49
*/
50
- request : KeqContextRequest
50
+ readonly request : KeqContextRequest
51
51
52
52
/**
53
53
* original response
@@ -68,7 +68,7 @@ export interface KeqContext {
68
68
/**
69
69
* share data between requests
70
70
*/
71
- global : KeqGlobal
71
+ readonly global : KeqGlobal
72
72
73
73
// ===================================================
74
74
// The following properties are extends by middleware
You can’t perform that action at this time.
0 commit comments