File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -1069,4 +1069,48 @@ declare module 'egg' {
1069
1069
*/
1070
1070
sendToApp ( action : string , data : any ) : void ;
1071
1071
}
1072
+
1073
+ export interface EggLoaderOptions {
1074
+ baseDir : string ;
1075
+ typescript ?: boolean ;
1076
+ app : Application ;
1077
+ logger : Logger ;
1078
+ plugins ?: any ;
1079
+ }
1080
+
1081
+ // egg-core
1082
+ export class EggLoader {
1083
+ options : EggLoaderOptions ;
1084
+
1085
+ constructor ( options : EggLoaderOptions ) ;
1086
+
1087
+ getHomedir ( ) : EggAppInfo [ 'HOME' ]
1088
+
1089
+ getAppInfo ( ) : EggAppInfo ;
1090
+ }
1091
+
1092
+ /**
1093
+ * App worker process Loader, will load plugins
1094
+ * @see https://github.com/eggjs/egg-core
1095
+ */
1096
+ export class AppWorkerLoader extends EggLoader {
1097
+ constructor ( options : EggLoaderOptions ) ;
1098
+
1099
+ loadConfig ( ) : void ;
1100
+
1101
+ load ( ) : void ;
1102
+ }
1103
+
1104
+ /**
1105
+ * Agent worker process loader
1106
+ * @see https://github.com/eggjs/egg-loader
1107
+ */
1108
+ export class AgentWorkerLoader extends EggLoader {
1109
+ constructor ( options : EggLoaderOptions ) ;
1110
+
1111
+ loadConfig ( ) : void ;
1112
+
1113
+ load ( ) : void ;
1114
+ }
1115
+
1072
1116
}
You can’t perform that action at this time.
0 commit comments