@vnejs/plugins.scenario.pause.contract 0.0.2
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/events.d.ts +5 -0
- package/dist/events.js +4 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +5 -0
- package/package.json +35 -0
- package/src/events.ts +6 -0
- package/src/index.ts +25 -0
- package/tsconfig.json +9 -0
package/dist/events.d.ts
ADDED
package/dist/events.js
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "@vnejs/module";
|
|
2
|
+
import "@vnejs/shared";
|
|
3
|
+
import { SUBSCRIBE_EVENTS } from "./events.js";
|
|
4
|
+
export declare const PLUGIN_NAME: "PAUSE";
|
|
5
|
+
export type PluginName = typeof PLUGIN_NAME;
|
|
6
|
+
export { SUBSCRIBE_EVENTS };
|
|
7
|
+
export type { SubscribeEvents } from "./events.js";
|
|
8
|
+
export type PauseStartPayload = {
|
|
9
|
+
time?: number;
|
|
10
|
+
};
|
|
11
|
+
declare module "@vnejs/module" {
|
|
12
|
+
interface ModuleShared {
|
|
13
|
+
/** Set by @vnejs/plugins.scenario.fastforward when installed. */
|
|
14
|
+
isFastforwardOn?: boolean;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
declare module "@vnejs/shared" {
|
|
18
|
+
interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {
|
|
19
|
+
}
|
|
20
|
+
}
|
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vnejs/plugins.scenario.pause.contract",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Contracts for @vnejs/plugins.scenario.pause",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"src",
|
|
18
|
+
"tsconfig.json"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "npx @vnejs/monorepo package",
|
|
22
|
+
"publish:major": "npx @vnejs/monorepo publish major --access public",
|
|
23
|
+
"publish:minor": "npx @vnejs/monorepo publish minor --access public",
|
|
24
|
+
"publish:patch": "npx @vnejs/monorepo publish patch --access public"
|
|
25
|
+
},
|
|
26
|
+
"author": "",
|
|
27
|
+
"license": "ISC",
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@vnejs/module": "~0.0.1",
|
|
30
|
+
"@vnejs/shared": "~0.0.9"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@vnejs/configs.ts-common": "~0.0.1"
|
|
34
|
+
}
|
|
35
|
+
}
|
package/src/events.ts
ADDED
package/src/index.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "@vnejs/module";
|
|
2
|
+
import "@vnejs/shared";
|
|
3
|
+
|
|
4
|
+
import { SUBSCRIBE_EVENTS } from "./events.js";
|
|
5
|
+
|
|
6
|
+
export const PLUGIN_NAME = "PAUSE" as const;
|
|
7
|
+
export type PluginName = typeof PLUGIN_NAME;
|
|
8
|
+
|
|
9
|
+
export { SUBSCRIBE_EVENTS };
|
|
10
|
+
export type { SubscribeEvents } from "./events.js";
|
|
11
|
+
|
|
12
|
+
export type PauseStartPayload = {
|
|
13
|
+
time?: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
declare module "@vnejs/module" {
|
|
17
|
+
interface ModuleShared {
|
|
18
|
+
/** Set by @vnejs/plugins.scenario.fastforward when installed. */
|
|
19
|
+
isFastforwardOn?: boolean;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare module "@vnejs/shared" {
|
|
24
|
+
interface VnePluginEventsMap extends Record<typeof PLUGIN_NAME, typeof SUBSCRIBE_EVENTS> {}
|
|
25
|
+
}
|