egg 4.0.9 → 4.0.10
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.
|
@@ -53,4 +53,15 @@ export declare class Application extends EggApplicationCore {
|
|
|
53
53
|
*/
|
|
54
54
|
toAsyncFunction(fn: (...args: any[]) => any): (...args: any[]) => any;
|
|
55
55
|
}
|
|
56
|
+
declare module '@eggjs/core' {
|
|
57
|
+
interface EggCore {
|
|
58
|
+
onClientError(err: any, socket: Socket): void;
|
|
59
|
+
onServer(server: http.Server): void;
|
|
60
|
+
locals: Record<string, any>;
|
|
61
|
+
runInBackground(scope: (ctx: Context) => Promise<void>, req?: unknown): void;
|
|
62
|
+
toAsyncFunction(fn: (...args: any[]) => any): (...args: any[]) => any;
|
|
63
|
+
dumpConfig(): void;
|
|
64
|
+
get keys(): string[];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
56
67
|
export {};
|
|
@@ -53,4 +53,15 @@ export declare class Application extends EggApplicationCore {
|
|
|
53
53
|
*/
|
|
54
54
|
toAsyncFunction(fn: (...args: any[]) => any): (...args: any[]) => any;
|
|
55
55
|
}
|
|
56
|
+
declare module '@eggjs/core' {
|
|
57
|
+
interface EggCore {
|
|
58
|
+
onClientError(err: any, socket: Socket): void;
|
|
59
|
+
onServer(server: http.Server): void;
|
|
60
|
+
locals: Record<string, any>;
|
|
61
|
+
runInBackground(scope: (ctx: Context) => Promise<void>, req?: unknown): void;
|
|
62
|
+
toAsyncFunction(fn: (...args: any[]) => any): (...args: any[]) => any;
|
|
63
|
+
dumpConfig(): void;
|
|
64
|
+
get keys(): string[];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
56
67
|
export {};
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "egg",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.10",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">= 18.19.0"
|
|
6
6
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@arethetypeswrong/cli": "^0.17.3",
|
|
56
56
|
"@eggjs/bin": "^7.0.2",
|
|
57
57
|
"@eggjs/koa": "^2.20.6",
|
|
58
|
-
"@eggjs/mock": "^6.0.
|
|
58
|
+
"@eggjs/mock": "^6.0.7",
|
|
59
59
|
"@eggjs/supertest": "^8.2.0",
|
|
60
60
|
"@eggjs/tsconfig": "1",
|
|
61
61
|
"@types/koa-bodyparser": "^4.3.12",
|
package/src/lib/application.ts
CHANGED
|
@@ -294,3 +294,15 @@ export class Application extends EggApplicationCore {
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
|
|
297
|
+
declare module '@eggjs/core' {
|
|
298
|
+
// add EggApplicationCore overrides types
|
|
299
|
+
interface EggCore {
|
|
300
|
+
onClientError(err: any, socket: Socket): void;
|
|
301
|
+
onServer(server: http.Server): void;
|
|
302
|
+
locals: Record<string, any>;
|
|
303
|
+
runInBackground(scope: (ctx: Context) => Promise<void>, req?: unknown): void;
|
|
304
|
+
toAsyncFunction(fn: (...args: any[]) => any): (...args: any[]) => any;
|
|
305
|
+
dumpConfig(): void;
|
|
306
|
+
get keys(): string[];
|
|
307
|
+
}
|
|
308
|
+
}
|