@todesktop/shared 7.116.0 → 7.117.0

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/lib/plugin.d.ts CHANGED
@@ -28,21 +28,16 @@ export declare type TextSpec = PreferenceSpec<"text", {
28
28
  value?: string;
29
29
  placeholder?: string;
30
30
  }>;
31
- export declare type TextValue = PreferenceValue<string>;
32
31
  export declare type NumberSpec = PreferenceSpec<"number", {
33
32
  min?: number;
34
33
  max?: number;
35
34
  value?: number;
36
35
  placeholder?: number;
37
36
  }>;
38
- export declare type NumberValue = PreferenceValue<string>;
39
37
  interface PreferenceSpec<T, V> {
40
38
  name: string;
41
39
  description: string;
42
40
  type: T;
43
- value: V;
44
- }
45
- interface PreferenceValue<V> {
46
- value: V;
41
+ spec: V;
47
42
  }
48
43
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.116.0",
3
+ "version": "7.117.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/plugin.ts CHANGED
@@ -36,7 +36,6 @@ export type TextSpec = PreferenceSpec<
36
36
  placeholder?: string;
37
37
  }
38
38
  >;
39
- export type TextValue = PreferenceValue<string>;
40
39
 
41
40
  export type NumberSpec = PreferenceSpec<
42
41
  "number",
@@ -47,15 +46,10 @@ export type NumberSpec = PreferenceSpec<
47
46
  placeholder?: number;
48
47
  }
49
48
  >;
50
- export type NumberValue = PreferenceValue<string>;
51
49
 
52
50
  interface PreferenceSpec<T, V> {
53
51
  name: string;
54
52
  description: string;
55
53
  type: T;
56
- value: V;
57
- }
58
-
59
- interface PreferenceValue<V> {
60
- value: V;
54
+ spec: V;
61
55
  }