x-runtime-lib 0.4.16 → 0.4.17
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/dist/index.js +688 -692
- package/dist/utils/provideInject.d.ts +7 -7
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import Interpreter from 'js-interpreter';
|
|
1
2
|
import { Ref } from 'vue';
|
|
2
3
|
import { Env, Mode, Type, Data, Depends } from '../types';
|
|
3
|
-
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function injectMode(): Mode;
|
|
4
|
+
export declare function provideEnv(env: Ref<Env>): void;
|
|
5
|
+
export declare function injectEnv(): Ref<Env>;
|
|
6
|
+
export declare function provideMode(mode: Ref<Mode>): void;
|
|
7
|
+
export declare function injectMode(): Ref<Mode>;
|
|
8
8
|
interface Device {
|
|
9
9
|
width: number;
|
|
10
10
|
height: number;
|
|
@@ -13,8 +13,8 @@ export declare function provideDevice(device: Ref<Device>): void;
|
|
|
13
13
|
export declare function injectDevice(): Ref<Device>;
|
|
14
14
|
export declare function provideDark(dark: Ref<boolean>): void;
|
|
15
15
|
export declare function injectDark(): Ref<boolean>;
|
|
16
|
-
export declare function provideType(type: Type): void;
|
|
17
|
-
export declare function injectType(): Type
|
|
16
|
+
export declare function provideType(type: Ref<Type>): void;
|
|
17
|
+
export declare function injectType(): Ref<Type>;
|
|
18
18
|
export declare function provideData(data: Data): void;
|
|
19
19
|
export declare function injectData(): Data;
|
|
20
20
|
export declare function provideDepends(depends: Depends): void;
|