@vnejs/plugins.save.contract 0.0.2 → 0.0.3

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/params.d.ts CHANGED
@@ -1,5 +1,8 @@
1
- export declare const SCREENSHOT_QUALITY: 0.5;
2
- export declare const PARAMS: {
3
- readonly SCREENSHOT_QUALITY: 0.5;
1
+ import type { Widen } from "@vnejs/shared";
2
+ export declare const SCREENSHOT_QUALITY: number;
3
+ declare const PARAMS_DEFAULT: {
4
+ SCREENSHOT_QUALITY: number;
4
5
  };
5
- export type Params = typeof PARAMS;
6
+ export type Params = Widen<typeof PARAMS_DEFAULT>;
7
+ export declare const PARAMS: Params;
8
+ export {};
package/dist/params.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export const SCREENSHOT_QUALITY = 0.5;
2
- export const PARAMS = {
2
+ const PARAMS_DEFAULT = {
3
3
  SCREENSHOT_QUALITY,
4
4
  };
5
+ export const PARAMS = PARAMS_DEFAULT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.save.contract",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Contracts for @vnejs/plugins.save",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/params.ts CHANGED
@@ -1,7 +1,10 @@
1
- export const SCREENSHOT_QUALITY = 0.5 as const;
1
+ import type { Widen } from "@vnejs/shared";
2
2
 
3
- export const PARAMS = {
3
+ export const SCREENSHOT_QUALITY = 0.5 as number;
4
+
5
+ const PARAMS_DEFAULT = {
4
6
  SCREENSHOT_QUALITY,
5
- } as const;
7
+ };
6
8
 
7
- export type Params = typeof PARAMS;
9
+ export type Params = Widen<typeof PARAMS_DEFAULT>;
10
+ export const PARAMS: Params = PARAMS_DEFAULT;