@vnejs/contracts.scales.health 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.
- package/dist/index.d.ts +10 -0
- package/dist/index.js +5 -0
- package/package.json +36 -0
- package/src/index.ts +16 -0
- package/tsconfig.json +9 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "@vnejs/shared";
|
|
2
|
+
export declare const PLUGIN_NAME: "SCALE_HEALTH";
|
|
3
|
+
export type PluginName = typeof PLUGIN_NAME;
|
|
4
|
+
declare const SCALE_TYPE_KEY = "HEALTH";
|
|
5
|
+
declare module "@vnejs/contracts.scales" {
|
|
6
|
+
interface ScaleTypes {
|
|
7
|
+
[SCALE_TYPE_KEY]: "health";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {};
|
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vnejs/contracts.scales.health",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Contracts for @vnejs/plugins.scales.health",
|
|
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.scales": "~0.1.0",
|
|
30
|
+
"@vnejs/shared": "~0.1.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@vnejs/configs.ts-common": "~0.1.0",
|
|
34
|
+
"@vnejs/contracts.scales": "~0.1.0"
|
|
35
|
+
}
|
|
36
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "@vnejs/shared";
|
|
2
|
+
|
|
3
|
+
import { PARAMS as SCALES_PARAMS } from "@vnejs/contracts.scales";
|
|
4
|
+
|
|
5
|
+
export const PLUGIN_NAME = "SCALE_HEALTH" as const;
|
|
6
|
+
export type PluginName = typeof PLUGIN_NAME;
|
|
7
|
+
|
|
8
|
+
const SCALE_TYPE_KEY = "HEALTH";
|
|
9
|
+
|
|
10
|
+
SCALES_PARAMS.TYPES[SCALE_TYPE_KEY] = "health";
|
|
11
|
+
|
|
12
|
+
declare module "@vnejs/contracts.scales" {
|
|
13
|
+
interface ScaleTypes {
|
|
14
|
+
[SCALE_TYPE_KEY]: "health";
|
|
15
|
+
}
|
|
16
|
+
}
|