dochub-sdk 0.1.18 → 0.1.19
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/interfaces/core.ts +11 -0
- package/package.json +1 -1
package/interfaces/core.ts
CHANGED
@@ -86,6 +86,16 @@ export interface IDocHubUI {
|
|
86
86
|
get(slot: string): IDocHubUIComponent[];
|
87
87
|
}
|
88
88
|
|
89
|
+
// Интерфейс внутренней шины событий
|
90
|
+
export interface IDocHubEventBus {
|
91
|
+
// Отправляет событие в шину
|
92
|
+
$emit(event: string, data: any);
|
93
|
+
// Монтирует слушателя в шину
|
94
|
+
$on(event: string, func: Function);
|
95
|
+
// Отмонтирует слушателя от шины
|
96
|
+
$off(event: string, func: Function);
|
97
|
+
}
|
98
|
+
|
89
99
|
// Главный интерфейс
|
90
100
|
export interface IDocHubCore {
|
91
101
|
problems: IDocHubProblems; // Проблемы
|
@@ -97,4 +107,5 @@ export interface IDocHubCore {
|
|
97
107
|
editors: IDocHubEditors; // Редакторы
|
98
108
|
ui: IDocHubUI; // UI порт
|
99
109
|
dataLake: IDocHubDataLake; // Интерфейс к архкоду
|
110
|
+
eventBus: IDocHubEventBus; // Внутренняя шина событий
|
100
111
|
}
|