@eggjs/core 7.0.0-beta.34 → 7.0.0-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base_context_class.d.ts +19 -14
- package/dist/base_context_class.js +39 -36
- package/dist/egg.d.ts +279 -277
- package/dist/egg.js +394 -426
- package/dist/index.d.ts +12 -12
- package/dist/index.js +12 -12
- package/dist/lifecycle.d.ts +79 -75
- package/dist/lifecycle.js +280 -306
- package/dist/loader/context_loader.d.ts +34 -30
- package/dist/loader/context_loader.js +76 -99
- package/dist/loader/egg_loader.d.ts +370 -366
- package/dist/loader/egg_loader.js +1170 -1568
- package/dist/loader/file_loader.d.ts +99 -95
- package/dist/loader/file_loader.js +190 -241
- package/dist/singleton.d.ts +31 -27
- package/dist/singleton.js +107 -117
- package/dist/types.d.ts +54 -51
- package/dist/utils/index.d.ts +16 -14
- package/dist/utils/index.js +96 -105
- package/dist/utils/sequencify.d.ts +13 -10
- package/dist/utils/sequencify.js +44 -58
- package/dist/utils/timing.d.ts +22 -19
- package/dist/utils/timing.js +85 -92
- package/package.json +36 -41
- package/dist/types.js +0 -2
package/dist/egg.d.ts
CHANGED
|
@@ -1,282 +1,284 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { Fun } from "./utils/index.js";
|
|
2
|
+
import { BaseContextClass } from "./base_context_class.js";
|
|
3
|
+
import { Timing } from "./utils/timing.js";
|
|
4
|
+
import { Lifecycle } from "./lifecycle.js";
|
|
5
|
+
import { EggAppConfig } from "./types.js";
|
|
6
|
+
import { EggLoader } from "./loader/egg_loader.js";
|
|
7
|
+
import { SingletonCreateMethod } from "./singleton.js";
|
|
8
|
+
import { Application as KoaApplication, Context as KoaContext, MiddlewareFunc as KoaMiddlewareFunc, Next, Request as KoaRequest, Response as KoaResponse } from "@eggjs/koa";
|
|
9
|
+
import { EggRouter as Router, RegisterOptions, ResourcesController } from "@eggjs/router";
|
|
10
|
+
import { EggConsoleLogger, Logger } from "egg-logger";
|
|
11
|
+
import { ReadyFunctionArg } from "get-ready";
|
|
12
|
+
|
|
13
|
+
//#region src/egg.d.ts
|
|
14
|
+
declare const EGG_LOADER: symbol;
|
|
15
|
+
interface EggCoreOptions {
|
|
16
|
+
baseDir: string;
|
|
17
|
+
type: "application" | "agent";
|
|
18
|
+
plugins?: any;
|
|
19
|
+
serverScope?: string;
|
|
20
|
+
env?: string;
|
|
19
21
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
app: EggCore;
|
|
26
|
-
response: Response;
|
|
22
|
+
type EggCoreInitOptions = Partial<EggCoreOptions>;
|
|
23
|
+
declare class Request$1 extends KoaRequest {
|
|
24
|
+
ctx: Context$1;
|
|
25
|
+
app: EggCore;
|
|
26
|
+
response: Response$1;
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
declare class Response$1 extends KoaResponse {
|
|
29
|
+
app: EggCore;
|
|
30
|
+
request: Request$1;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
32
|
+
declare class Context$1 extends KoaContext {
|
|
33
|
+
app: EggCore;
|
|
34
|
+
request: Request$1;
|
|
35
|
+
response: Response$1;
|
|
36
|
+
service: Record<string, any>;
|
|
37
|
+
/**
|
|
38
|
+
* Returns map of URL parameters for given `path` and `paramNames`.
|
|
39
|
+
* @example
|
|
40
|
+
* ##### ctx.params.id {string}
|
|
41
|
+
*
|
|
42
|
+
* `GET /api/users/1` => `'1'`
|
|
43
|
+
*
|
|
44
|
+
* ##### ctx.params.per_page {string}
|
|
45
|
+
*
|
|
46
|
+
* The number of every page, `GET /api/users?per_page=20` => `20`
|
|
47
|
+
*/
|
|
48
|
+
params?: Record<string, string>;
|
|
49
|
+
/**
|
|
50
|
+
* Returns array of router regexp url path captures.
|
|
51
|
+
*/
|
|
52
|
+
captures?: string[];
|
|
53
|
+
/**
|
|
54
|
+
* Returns the name of the matched router.
|
|
55
|
+
*/
|
|
56
|
+
routerName?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Returns the path of the matched router.
|
|
59
|
+
*/
|
|
60
|
+
routerPath?: string | RegExp;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
62
|
+
type MiddlewareFunc<T extends KoaContext = Context$1> = KoaMiddlewareFunc<T>;
|
|
63
|
+
declare class EggCore extends KoaApplication {
|
|
64
|
+
#private;
|
|
65
|
+
options: EggCoreOptions;
|
|
66
|
+
timing: Timing;
|
|
67
|
+
console: EggConsoleLogger;
|
|
68
|
+
BaseContextClass: typeof BaseContextClass;
|
|
69
|
+
Controller: typeof BaseContextClass;
|
|
70
|
+
Service: typeof BaseContextClass;
|
|
71
|
+
Helper?: typeof BaseContextClass;
|
|
72
|
+
lifecycle: Lifecycle;
|
|
73
|
+
loader: EggLoader;
|
|
74
|
+
/** auto inject on loadService() */
|
|
75
|
+
readonly serviceClasses: Record<string, any>;
|
|
76
|
+
/** auto inject on loadController() */
|
|
77
|
+
readonly controller: Record<string, any>;
|
|
78
|
+
/** auto inject on loadMiddleware() */
|
|
79
|
+
readonly middlewares: Record<string, (opt: unknown, app: EggCore) => MiddlewareFunc>;
|
|
80
|
+
/**
|
|
81
|
+
* @class
|
|
82
|
+
* @param {Object} options - options
|
|
83
|
+
* @param {String} [options.baseDir] - the directory of application
|
|
84
|
+
* @param {String} [options.type] - whether it's running in app worker or agent worker
|
|
85
|
+
* @param {Object} [options.plugins] - custom plugins
|
|
86
|
+
* @since 1.0.0
|
|
87
|
+
*/
|
|
88
|
+
constructor(options?: EggCoreInitOptions);
|
|
89
|
+
get logger(): Logger;
|
|
90
|
+
get coreLogger(): Logger;
|
|
91
|
+
/**
|
|
92
|
+
* create a singleton instance
|
|
93
|
+
* @param {String} name - unique name for singleton
|
|
94
|
+
* @param {Function|AsyncFunction} create - method will be invoked when singleton instance create
|
|
95
|
+
*/
|
|
96
|
+
addSingleton(name: string, create: SingletonCreateMethod): void;
|
|
97
|
+
/**
|
|
98
|
+
* override koa's app.use, support generator function
|
|
99
|
+
* @since 1.0.0
|
|
100
|
+
*/
|
|
101
|
+
use<T extends KoaContext = Context$1>(fn: MiddlewareFunc<T>): this;
|
|
102
|
+
/**
|
|
103
|
+
* Whether `application` or `agent`
|
|
104
|
+
* @member {String}
|
|
105
|
+
* @since 1.0.0
|
|
106
|
+
*/
|
|
107
|
+
get type(): "application" | "agent";
|
|
108
|
+
/**
|
|
109
|
+
* The current directory of application
|
|
110
|
+
* @member {String}
|
|
111
|
+
* @see {@link AppInfo#baseDir}
|
|
112
|
+
* @since 1.0.0
|
|
113
|
+
*/
|
|
114
|
+
get baseDir(): string;
|
|
115
|
+
/**
|
|
116
|
+
* Alias to {@link https://npmjs.com/package/depd}
|
|
117
|
+
* @member {Function}
|
|
118
|
+
* @since 1.0.0
|
|
119
|
+
*/
|
|
120
|
+
get deprecate(): (message: string) => void;
|
|
121
|
+
/**
|
|
122
|
+
* The name of application
|
|
123
|
+
* @member {String}
|
|
124
|
+
* @see {@link AppInfo#name}
|
|
125
|
+
* @since 1.0.0
|
|
126
|
+
*/
|
|
127
|
+
get name(): string;
|
|
128
|
+
/**
|
|
129
|
+
* Retrieve enabled plugins
|
|
130
|
+
* @member {Object}
|
|
131
|
+
* @since 1.0.0
|
|
132
|
+
*/
|
|
133
|
+
get plugins(): Record<string, any>;
|
|
134
|
+
/**
|
|
135
|
+
* The configuration of application
|
|
136
|
+
* @member {Config}
|
|
137
|
+
* @since 1.0.0
|
|
138
|
+
*/
|
|
139
|
+
get config(): EggAppConfig;
|
|
140
|
+
/**
|
|
141
|
+
* Execute scope after loaded and before app start.
|
|
142
|
+
*
|
|
143
|
+
* Notice:
|
|
144
|
+
* This method is now NOT recommended and regarded as a deprecated one,
|
|
145
|
+
* For plugin development, we should use `didLoad` instead.
|
|
146
|
+
* For application development, we should use `willReady` instead.
|
|
147
|
+
*
|
|
148
|
+
* @see https://eggjs.org/en/advanced/loader.html#beforestart
|
|
149
|
+
*
|
|
150
|
+
* @param {Function} scope function will execute before app start
|
|
151
|
+
* @param {string} [name] scope name, default is empty string
|
|
152
|
+
*/
|
|
153
|
+
beforeStart(scope: Fun, name?: string): void;
|
|
154
|
+
/**
|
|
155
|
+
* register an callback function that will be invoked when application is ready.
|
|
156
|
+
* @see https://github.com/node-modules/get-ready
|
|
157
|
+
* @since 1.0.0
|
|
158
|
+
* @example
|
|
159
|
+
* const app = new Application(...);
|
|
160
|
+
* app.ready(err => {
|
|
161
|
+
* if (err) throw err;
|
|
162
|
+
* console.log('done');
|
|
163
|
+
* });
|
|
164
|
+
*/
|
|
165
|
+
ready(): Promise<void>;
|
|
166
|
+
ready(flagOrFunction: ReadyFunctionArg): void;
|
|
167
|
+
/**
|
|
168
|
+
* If a client starts asynchronously, you can register `readyCallback`,
|
|
169
|
+
* then the application will wait for the callback to ready
|
|
170
|
+
*
|
|
171
|
+
* It will log when the callback is not invoked after 10s
|
|
172
|
+
*
|
|
173
|
+
* Recommend to use {@link EggCore#beforeStart}
|
|
174
|
+
* @since 1.0.0
|
|
175
|
+
*
|
|
176
|
+
* @param {String} name - readyCallback task name
|
|
177
|
+
* @param {object} opts -
|
|
178
|
+
* - {Number} [timeout=10000] - emit `ready_timeout` when it doesn't finish but reach the timeout
|
|
179
|
+
* - {Boolean} [isWeakDep=false] - whether it's a weak dependency
|
|
180
|
+
* @returns {Function} - a callback
|
|
181
|
+
* @example
|
|
182
|
+
* const done = app.readyCallback('mysql');
|
|
183
|
+
* mysql.ready(done);
|
|
184
|
+
*/
|
|
185
|
+
readyCallback(name: string, opts: object): (...args: unknown[]) => void;
|
|
186
|
+
/**
|
|
187
|
+
* Register a function that will be called when app close.
|
|
188
|
+
*
|
|
189
|
+
* Notice:
|
|
190
|
+
* This method is now NOT recommended directly used,
|
|
191
|
+
* Developers SHOULDN'T use app.beforeClose directly now,
|
|
192
|
+
* but in the form of class to implement beforeClose instead.
|
|
193
|
+
*
|
|
194
|
+
* @see https://eggjs.org/en/advanced/loader.html#beforeclose
|
|
195
|
+
*
|
|
196
|
+
* @param {Function} fn - the function that can be generator function or async function.
|
|
197
|
+
*/
|
|
198
|
+
beforeClose(fn: Fun, name?: string): void;
|
|
199
|
+
/**
|
|
200
|
+
* Close all, it will close
|
|
201
|
+
* - callbacks registered by beforeClose
|
|
202
|
+
* - emit `close` event
|
|
203
|
+
* - remove add listeners
|
|
204
|
+
*
|
|
205
|
+
* If error is thrown when it's closing, the promise will reject.
|
|
206
|
+
* It will also reject after following call.
|
|
207
|
+
* @returns {Promise} promise
|
|
208
|
+
* @since 1.0.0
|
|
209
|
+
*/
|
|
210
|
+
close(): Promise<void>;
|
|
211
|
+
/**
|
|
212
|
+
* get router
|
|
213
|
+
* @member {Router} EggCore#router
|
|
214
|
+
* @since 1.0.0
|
|
215
|
+
*/
|
|
216
|
+
get router(): Router;
|
|
217
|
+
/**
|
|
218
|
+
* Alias to {@link Router#url}
|
|
219
|
+
* @param {String} name - Router name
|
|
220
|
+
* @param {Object} params - more parameters
|
|
221
|
+
* @returns {String} url
|
|
222
|
+
*/
|
|
223
|
+
url(name: string, params?: Parameters<Router["url"]>[1]): string;
|
|
224
|
+
head(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
225
|
+
head(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
226
|
+
get(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
227
|
+
get(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
228
|
+
put(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
229
|
+
put(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
230
|
+
patch(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
231
|
+
patch(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
232
|
+
post(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
233
|
+
post(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
234
|
+
delete(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
235
|
+
delete(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
236
|
+
del(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
237
|
+
del(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
238
|
+
all(path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
239
|
+
all(name: string, path: string | RegExp | (string | RegExp)[], ...middlewares: (MiddlewareFunc | string)[]): EggCore;
|
|
240
|
+
resources(prefix: string, controller: string | ResourcesController): EggCore;
|
|
241
|
+
resources(prefix: string, middleware: MiddlewareFunc, controller: string | ResourcesController): EggCore;
|
|
242
|
+
resources(name: string, prefix: string, controller: string | ResourcesController): EggCore;
|
|
243
|
+
resources(name: string, prefix: string, middleware: MiddlewareFunc, controller: string | ResourcesController): EggCore;
|
|
244
|
+
redirect(source: string, destination: string, status?: number): this;
|
|
245
|
+
register(path: string | RegExp | (string | RegExp)[], methods: string[], middleware: MiddlewareFunc | MiddlewareFunc[], opts?: RegisterOptions): this;
|
|
246
|
+
/**
|
|
247
|
+
* Override this method to customize the loader
|
|
248
|
+
*
|
|
249
|
+
* ```ts
|
|
250
|
+
* // src/ExampleApplication.ts
|
|
251
|
+
* import { Application } from 'egg';
|
|
252
|
+
*
|
|
253
|
+
* class ExampleApplication extends Application {
|
|
254
|
+
* protected override customEggLoader() {
|
|
255
|
+
* return ExampleLoader;
|
|
256
|
+
* }
|
|
257
|
+
* }
|
|
258
|
+
* ```
|
|
259
|
+
*
|
|
260
|
+
* @since 4.0.0
|
|
261
|
+
* @returns {typeof EggLoader}
|
|
262
|
+
*/
|
|
263
|
+
protected customEggLoader(): typeof EggLoader;
|
|
264
|
+
/**
|
|
265
|
+
* Override this method to customize the egg paths
|
|
266
|
+
*
|
|
267
|
+
* ```ts
|
|
268
|
+
* // src/ExampleApplication.ts
|
|
269
|
+
* import { Application } from 'egg';
|
|
270
|
+
*
|
|
271
|
+
* class ExampleApplication extends Application {
|
|
272
|
+
* protected override customEggPaths() {
|
|
273
|
+
* return [path.dirname(import.meta.dirname), ...super.customEggPaths()];
|
|
274
|
+
* }
|
|
275
|
+
* }
|
|
276
|
+
* ```
|
|
277
|
+
*
|
|
278
|
+
* @since 4.0.0
|
|
279
|
+
* @returns {string[]}
|
|
280
|
+
*/
|
|
281
|
+
protected customEggPaths(): string[];
|
|
282
282
|
}
|
|
283
|
+
//#endregion
|
|
284
|
+
export { Context$1 as Context, EGG_LOADER, EggCore, EggCoreInitOptions, EggCoreOptions, KoaApplication, KoaContext, type KoaMiddlewareFunc, KoaRequest, KoaResponse, MiddlewareFunc, type Next, Request$1 as Request, Response$1 as Response, Router };
|