@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.
@@ -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: string;
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: Newable<T>;
138
+ appBuilderInherit: new (config: AppBuilderConfig) => T;
131
139
  multiplayerService?: MultiplayerService;
132
140
  }): Promise<T>;
133
141
 
package/dist/app/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  RageMPTimer,
11
11
  RageMPTimers,
12
12
  createAppBuilder
13
- } from "../chunk-UFGGTRGJ.js";
13
+ } from "../chunk-GQJB43DK.js";
14
14
  import {
15
15
  Module,
16
16
  ModuleContainer,
@@ -2,7 +2,7 @@ import {
2
2
  AppRuntime,
3
3
  ModuleDependencyBinder,
4
4
  ModuleTreeScanner
5
- } from "../../chunk-UFGGTRGJ.js";
5
+ } from "../../chunk-GQJB43DK.js";
6
6
  import "../../chunk-73LIJA6X.js";
7
7
  import "../../chunk-AO6BXG54.js";
8
8
  import "../../chunk-2ADQZWQE.js";