-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathglobal.d.ts
40 lines (37 loc) · 946 Bytes
/
global.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import {
IPublicApiSkeleton,
IPublicApiHotkey,
IPublicApiSetters,
IPublicApiMaterial,
IPublicApiEvent,
IPublicApiProject,
IPublicApiCommon,
IPublicApiLogger,
IPublicApiCanvas,
IPublicApiPlugins,
IPublicModelEngineConfig,
} from '@alilc/lowcode-types';
declare global {
interface Window {
AliLowCodeEngine: {
skeleton: IPublicApiSkeleton;
hotkey: IPublicApiHotkey;
setters: IPublicApiSetters;
config: IPublicModelEngineConfig;
material: IPublicApiMaterial;
/**
* this event works globally, can be used between plugins and engine.
*/
event: IPublicApiEvent;
project: IPublicApiProject;
common: IPublicApiCommon;
plugins: IPublicApiPlugins;
logger: IPublicApiLogger;
/**
* this event works within current plugin, on an emit locally.
*/
pluginEvent: IPublicApiEvent;
canvas: IPublicApiCanvas;
};
}
}