zumito-framework 1.1.6 → 1.1.7
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.
|
@@ -15,10 +15,10 @@ import { FrameworkEvent } from "./types/FrameworkEvent";
|
|
|
15
15
|
export declare class ZumitoFramework {
|
|
16
16
|
client: any;
|
|
17
17
|
settings: FrameworkSettings;
|
|
18
|
-
modules: Map<
|
|
19
|
-
commands: Map<
|
|
20
|
-
events: Map<
|
|
21
|
-
translations: Map<
|
|
18
|
+
modules: Map<string, Module>;
|
|
19
|
+
commands: Map<string, Command>;
|
|
20
|
+
events: Map<string, FrameworkEvent>;
|
|
21
|
+
translations: Map<string, string>;
|
|
22
22
|
routes: any;
|
|
23
23
|
models: any;
|
|
24
24
|
database: any;
|
package/dist/types/Module.d.ts
CHANGED
|
@@ -4,16 +4,16 @@ import { FrameworkEvent } from "./FrameworkEvent";
|
|
|
4
4
|
export declare abstract class Module {
|
|
5
5
|
protected path: string;
|
|
6
6
|
protected framework: ZumitoFramework;
|
|
7
|
-
protected commands: Map<
|
|
8
|
-
protected events: Map<
|
|
9
|
-
protected translations: Map<
|
|
7
|
+
protected commands: Map<string, Command>;
|
|
8
|
+
protected events: Map<string, FrameworkEvent>;
|
|
9
|
+
protected translations: Map<string, string>;
|
|
10
10
|
constructor(path: any, framework: any);
|
|
11
11
|
registerCommands(): void;
|
|
12
|
-
getCommands(): Map<
|
|
12
|
+
getCommands(): Map<string, Command>;
|
|
13
13
|
registerEvents(): void;
|
|
14
14
|
registerEvent(frameworkEvent: FrameworkEvent): void;
|
|
15
|
-
getEvents(): Map<
|
|
15
|
+
getEvents(): Map<string, FrameworkEvent>;
|
|
16
16
|
registerTranslations(): void;
|
|
17
|
-
getTranslations(): Map<
|
|
18
|
-
parseTranslation(path:
|
|
17
|
+
getTranslations(): Map<string, string>;
|
|
18
|
+
parseTranslation(path: string, json: any): any;
|
|
19
19
|
}
|