@ragemp-mango/core 1.1.1 → 1.2.1
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/app/index.d.ts +10 -2
- package/dist/app/index.js +1 -1
- package/dist/app/module-tree/index.js +1 -1
- package/dist/{chunk-UFGGTRGJ.js → chunk-GQJB43DK.js} +30 -52
- package/dist/chunk-S66C4OYY.js +1870 -0
- package/dist/decorators/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/services/index.js +1 -1
- package/package.json +1 -1
package/dist/app/index.d.ts
CHANGED
|
@@ -108,12 +108,20 @@ declare class App {
|
|
|
108
108
|
private runPluginMethods;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
interface AppBuilderConfig {
|
|
112
|
+
enviroment: AppEnviroment;
|
|
113
|
+
internalAppContainer: Container;
|
|
114
|
+
multiplayerService: MultiplayerService;
|
|
115
|
+
plugins: Newable<MangoPlugin>[];
|
|
116
|
+
}
|
|
117
|
+
|
|
111
118
|
declare class AppBuilder<G extends Guard = Guard, I extends Interceptor = Interceptor, EF extends ErrorFilter = ErrorFilter> {
|
|
112
|
-
protected readonly enviroment:
|
|
119
|
+
protected readonly enviroment: AppEnviroment;
|
|
113
120
|
protected readonly internalAppContainer: Container;
|
|
114
121
|
protected readonly multiplayerService: MultiplayerService;
|
|
115
122
|
protected readonly plugins: Newable<MangoPlugin>[];
|
|
116
123
|
private globalContainerOptions;
|
|
124
|
+
constructor(config: AppBuilderConfig);
|
|
117
125
|
useGlobalGuards(...guards: (Newable<G> | G)[]): this;
|
|
118
126
|
useGlobalInterceptors(...interceptors: (Newable<I> | I)[]): this;
|
|
119
127
|
useGlobalPipes(...pipes: (Newable<Pipe> | Pipe)[]): this;
|
|
@@ -127,7 +135,7 @@ declare class AppBuilder<G extends Guard = Guard, I extends Interceptor = Interc
|
|
|
127
135
|
declare function createAppBuilder<T extends AppBuilder>({ enviroment, plugins, appBuilderInherit, multiplayerService, }: {
|
|
128
136
|
enviroment: AppEnviroment;
|
|
129
137
|
plugins: Newable<MangoPlugin>[];
|
|
130
|
-
appBuilderInherit:
|
|
138
|
+
appBuilderInherit: new (config: AppBuilderConfig) => T;
|
|
131
139
|
multiplayerService?: MultiplayerService;
|
|
132
140
|
}): Promise<T>;
|
|
133
141
|
|
package/dist/app/index.js
CHANGED