@@ -66,22 +66,32 @@ declare global {
66
66
// Needed in the cache adapter
67
67
/**
68
68
* The cache adapter for incremental static regeneration.
69
- * Only available in main functions or in the external middleware with `enableCacheInterception` set to `true`.
70
- * Defined in `createMainHandler` or in `adapter /middleware.ts`.
69
+ * Only available in main functions and in the external middleware when `enableCacheInterception` is `true`.
70
+ * Defined in `createMainHandler` and in `adapters /middleware.ts`.
71
71
*/
72
72
var incrementalCache : IncrementalCache ;
73
+
73
74
/**
74
75
* The cache adapter for the tag cache.
75
- * Only available in main functions, the initializationFunction or in the external middleware with `enableCacheInterception` set to `true`.
76
- * Defined in `createMainHandler` or in `adapter /middleware.ts`.
76
+ * Only available in main functions and in the external middleware when `enableCacheInterception` is `true`.
77
+ * Defined in `createMainHandler` and in `adapters /middleware.ts`.
77
78
*/
78
79
var tagCache : TagCache ;
80
+
81
+ /**
82
+ * The queue that is used to handle ISR revalidation requests.
83
+ * Only available in main functions and in the external middleware when `enableCacheInterception` is `true`.
84
+ * Defined in `createMainHandler` and in `adapters/middleware.ts`.
85
+ */
86
+ var queue : Queue ;
87
+
79
88
/**
80
89
* A boolean that indicates if the DynamoDB cache is disabled.
81
90
* @deprecated This will be removed, use `globalThis.openNextConfig.dangerous?.disableTagCache` instead.
82
91
* Defined in esbuild banner for the cache adapter.
83
92
*/
84
93
var disableDynamoDBCache : boolean ;
94
+
85
95
/**
86
96
* A boolean that indicates if the incremental cache is disabled.
87
97
* @deprecated This will be removed, use `globalThis.openNextConfig.dangerous?.disableIncrementalCache` instead.
@@ -107,7 +117,7 @@ declare global {
107
117
/**
108
118
* A boolean that indicates if the runtime is Edge.
109
119
* Only available in `edge` runtime functions (i.e. external middleware or function with edge runtime).
110
- * Defined in the ` edge-adapter.ts`.
120
+ * Defined in `adapters/ edge-adapter.ts`.
111
121
*/
112
122
var isEdgeRuntime : true ;
113
123
@@ -121,35 +131,34 @@ declare global {
121
131
/**
122
132
* The fetch function that should be used to make requests during the execution of the function.
123
133
* Used to bypass Next intercepting and caching the fetch calls. Only available in main functions.
124
- * Defined in the ` server-adapter.ts` and in `adapters/middleware.ts`.
134
+ * Defined in `adapters/ server-adapter.ts` and in `adapters/middleware.ts`.
125
135
*/
126
136
var internalFetch : typeof fetch ;
127
137
128
138
/**
129
139
* The Open Next configuration object.
130
140
* Available in all functions.
131
- * Defined in the `createMainHandler` or in the `createGenericHandler`.
141
+ * Defined in `createMainHandler` and in the `createGenericHandler`.
132
142
*/
133
143
var openNextConfig : Partial < OpenNextConfig > ;
134
144
135
145
/**
136
146
* The name of the function that is currently being executed.
137
147
* Only available in main functions.
138
- * Defined in the `createMainHandler`.
148
+ * Defined in `createMainHandler`.
139
149
*/
140
150
var fnName : string | undefined ;
141
151
/**
142
152
* The unique identifier of the server.
143
153
* Only available in main functions.
144
- * Defined in the `createMainHandler`.
154
+ * Defined in `createMainHandler`.
145
155
*/
146
156
var serverId : string ;
147
157
148
158
/**
149
159
* The AsyncLocalStorage instance that is used to store the request context.
150
160
* Only available in main, middleware and edge functions.
151
- * TODO: should be available everywhere in the future.
152
- * Defined in `requestHandler.ts`, `middleware.ts` and `edge-adapter.ts`.
161
+ * Defined in `requestHandler.ts`, `adapters/middleware.ts` and `adapters/edge-adapter.ts`.
153
162
*/
154
163
var __openNextAls : AsyncLocalStorage < OpenNextRequestContext > ;
155
164
@@ -159,22 +168,26 @@ declare global {
159
168
* Defined in the esbuild edge plugin.
160
169
*/
161
170
var _ENTRIES : Entries ;
171
+
162
172
/**
163
173
* The routes object that contains the routes that are available in the function.
164
174
* Only available in edge runtime functions.
165
175
* Defined in the esbuild edge plugin.
166
176
*/
167
177
var _ROUTES : EdgeRoute [ ] ;
178
+
168
179
/**
169
180
* A map that is used in the edge runtime.
170
181
* Only available in edge runtime functions.
171
182
*/
172
183
var __storage__ : Map < unknown , unknown > ;
184
+
173
185
/**
174
186
* AsyncContext available globally in the edge runtime.
175
187
* Only available in edge runtime functions.
176
188
*/
177
189
var AsyncContext : any ;
190
+
178
191
/**
179
192
* AsyncLocalStorage available globally in the edge runtime.
180
193
* Only available in edge runtime functions.
@@ -190,13 +203,6 @@ declare global {
190
203
*/
191
204
var openNextVersion : string ;
192
205
193
- /**
194
- * The queue that is used to handle ISR revalidation requests.
195
- * Only available in main functions and in the external middleware with `enableCacheInterception` set to `true`.
196
- * Defined in `createMainHandler` or in `adapter/middleware.ts`.
197
- */
198
- var queue : Queue ;
199
-
200
206
/**
201
207
* The function that is used when resolving external rewrite requests.
202
208
* Only available in main functions
0 commit comments