@vnejs/contracts.audio.ambient 0.1.1

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.
@@ -0,0 +1,16 @@
1
+ import "@vnejs/contracts.core.settings";
2
+ import "@vnejs/shared";
3
+ import { SETTINGS_KEYS } from "./settings.js";
4
+ export declare const PLUGIN_NAME: "AMBIENT";
5
+ export type PluginName = typeof PLUGIN_NAME;
6
+ export { SETTINGS_KEYS };
7
+ export type { SettingsKeys } from "./settings.js";
8
+ type AmbientVolumeSettingKey = (typeof SETTINGS_KEYS)["VOLUME"];
9
+ declare module "@vnejs/contracts.core.settings" {
10
+ interface ModuleSharedSettings extends Record<AmbientVolumeSettingKey, number> {
11
+ }
12
+ }
13
+ declare module "@vnejs/shared" {
14
+ interface VnePluginSettingsMap extends Record<typeof PLUGIN_NAME, typeof SETTINGS_KEYS> {
15
+ }
16
+ }
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ import "@vnejs/contracts.core.settings";
2
+ import "@vnejs/shared";
3
+ import { SETTINGS_KEYS } from "./settings.js";
4
+ export const PLUGIN_NAME = "AMBIENT";
5
+ export { SETTINGS_KEYS };
@@ -0,0 +1,4 @@
1
+ export declare const SETTINGS_KEYS: {
2
+ readonly VOLUME: "vne:ambient:volume";
3
+ };
4
+ export type SettingsKeys = typeof SETTINGS_KEYS;
@@ -0,0 +1,3 @@
1
+ export const SETTINGS_KEYS = {
2
+ VOLUME: "vne:ambient:volume",
3
+ };
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@vnejs/contracts.audio.ambient",
3
+ "version": "0.1.1",
4
+ "description": "Contracts for @vnejs/plugins.audio.ambient",
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/contracts.core.settings": "~0.1.0",
30
+ "@vnejs/shared": "~0.1.0"
31
+ },
32
+ "devDependencies": {
33
+ "@vnejs/configs.ts-common": "~0.1.0"
34
+ }
35
+ }
package/src/index.ts ADDED
@@ -0,0 +1,20 @@
1
+ import "@vnejs/contracts.core.settings";
2
+ import "@vnejs/shared";
3
+
4
+ import { SETTINGS_KEYS } from "./settings.js";
5
+
6
+ export const PLUGIN_NAME = "AMBIENT" as const;
7
+ export type PluginName = typeof PLUGIN_NAME;
8
+
9
+ export { SETTINGS_KEYS };
10
+ export type { SettingsKeys } from "./settings.js";
11
+
12
+ type AmbientVolumeSettingKey = (typeof SETTINGS_KEYS)["VOLUME"];
13
+
14
+ declare module "@vnejs/contracts.core.settings" {
15
+ interface ModuleSharedSettings extends Record<AmbientVolumeSettingKey, number> {}
16
+ }
17
+
18
+ declare module "@vnejs/shared" {
19
+ interface VnePluginSettingsMap extends Record<typeof PLUGIN_NAME, typeof SETTINGS_KEYS> {}
20
+ }
@@ -0,0 +1,5 @@
1
+ export const SETTINGS_KEYS = {
2
+ VOLUME: "vne:ambient:volume",
3
+ } as const;
4
+
5
+ export type SettingsKeys = typeof SETTINGS_KEYS;
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@vnejs/configs.ts-common/tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "outDir": "dist"
6
+ },
7
+ "include": ["src/**/*.ts"],
8
+ "exclude": ["dist", "node_modules"]
9
+ }