@todesktop/shared 7.109.0 → 7.112.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 +11 -3
- package/package.json +1 -1
- package/src/plugin.ts +13 -3
package/lib/plugin.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
export interface DesktopAppPlugin {
|
|
2
2
|
package: string;
|
|
3
|
-
|
|
4
|
-
[id: string]: NumberSpec | TextSpec;
|
|
5
|
-
};
|
|
3
|
+
todesktop: ToDesktopPlugin;
|
|
6
4
|
}
|
|
5
|
+
export declare type ToDesktopPlugin = {
|
|
6
|
+
namespace: string;
|
|
7
|
+
version: number;
|
|
8
|
+
main?: string;
|
|
9
|
+
preload?: string;
|
|
10
|
+
preferences?: PluginPreferences;
|
|
11
|
+
};
|
|
12
|
+
export declare type PluginPreferences = {
|
|
13
|
+
[id: string]: NumberSpec | TextSpec;
|
|
14
|
+
};
|
|
7
15
|
export declare type TextSpec = PreferenceSpec<"text", {
|
|
8
16
|
minLength?: number;
|
|
9
17
|
maxLength?: number;
|
package/package.json
CHANGED
package/src/plugin.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
export interface DesktopAppPlugin {
|
|
2
2
|
package: string; // e.g. ["@todesktop/plugin-foo", "@todesktop/plugin-baz@1.0.0"]
|
|
3
|
-
|
|
4
|
-
[id: string]: NumberSpec | TextSpec;
|
|
5
|
-
};
|
|
3
|
+
todesktop: ToDesktopPlugin;
|
|
6
4
|
}
|
|
7
5
|
|
|
6
|
+
export type ToDesktopPlugin = {
|
|
7
|
+
namespace: string;
|
|
8
|
+
version: number;
|
|
9
|
+
main?: string;
|
|
10
|
+
preload?: string;
|
|
11
|
+
preferences?: PluginPreferences;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type PluginPreferences = {
|
|
15
|
+
[id: string]: NumberSpec | TextSpec;
|
|
16
|
+
};
|
|
17
|
+
|
|
8
18
|
export type TextSpec = PreferenceSpec<
|
|
9
19
|
"text",
|
|
10
20
|
{
|