x-runtime-lib 0.8.164 → 0.8.165
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.
|
@@ -33,17 +33,17 @@ export declare class Sandbox {
|
|
|
33
33
|
private data;
|
|
34
34
|
associateData(data: Ref<Data | undefined>): void;
|
|
35
35
|
getElementProperty(nodeId: string, propertyKeys: string[]): any;
|
|
36
|
-
setElementProperty(nodeId: string, propertyKeys: string[], newValue: any):
|
|
36
|
+
setElementProperty(nodeId: string, propertyKeys: string[], newValue: any): Promise<Error | undefined>;
|
|
37
37
|
getElementSlotProperty(propertyKey: string): any;
|
|
38
|
-
setElementSlotProperty(propertyKey: string, value: any): void
|
|
38
|
+
setElementSlotProperty(propertyKey: string, value: any): Promise<void>;
|
|
39
39
|
private customProperties;
|
|
40
40
|
resetCustomProperties(): void;
|
|
41
41
|
getCustomProperty(key: string): any;
|
|
42
|
-
setCustomProperty(key: string, newValue: any): void
|
|
42
|
+
setCustomProperty(key: string, newValue: any): Promise<void>;
|
|
43
43
|
private customSlotProperties;
|
|
44
44
|
resetCustomSlotProperties(): void;
|
|
45
45
|
getCustomSlotProperty(key: string): any;
|
|
46
|
-
setCustomSlotProperty(key: string, newValue: any): void
|
|
46
|
+
setCustomSlotProperty(key: string, newValue: any): Promise<void>;
|
|
47
47
|
callElementMethod(id: string, key: string, inputs: {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}): Promise<{
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { QuickJSContext, QuickJSDeferredPromise } from 'quickjs-emscripten';
|
|
2
2
|
export declare class PromiseManager {
|
|
3
|
-
vm
|
|
4
|
-
promises
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
currPromiseId: number;
|
|
3
|
+
private vm;
|
|
4
|
+
private promises;
|
|
5
|
+
private currPromiseId;
|
|
8
6
|
constructor(vm: QuickJSContext);
|
|
9
7
|
dispose(): void;
|
|
10
|
-
|
|
11
|
-
promiseId: number;
|
|
8
|
+
create(): {
|
|
12
9
|
promise: QuickJSDeferredPromise;
|
|
10
|
+
resolve: (value: any) => void;
|
|
11
|
+
reject: (reason: any) => void;
|
|
13
12
|
};
|
|
14
|
-
release(promiseId: number): void;
|
|
15
13
|
}
|