@solazah/solazah-runtime 0.1.1 → 0.1.2
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/package.json +1 -1
- package/types/PluginManager.d.ts +3 -3
- package/types/Sync.d.ts +2 -0
package/package.json
CHANGED
package/types/PluginManager.d.ts
CHANGED
|
@@ -48,12 +48,12 @@ export default class Plugin {
|
|
|
48
48
|
*/
|
|
49
49
|
reloadPlugin: (pluginId: string) => Promise<any>;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* 安装指定插件。先从市场下载插件包并校验后装到本地,再解析 manifest.json 写入 DB 并注册命令;
|
|
52
52
|
* 若插件已安装则仅同步最新的 manifest 字段到 DB,并发布 PluginUpdatedEvent。
|
|
53
53
|
*
|
|
54
|
-
* @param name 插件名称(
|
|
54
|
+
* @param name 插件名称(包名)或本地开发目录的绝对路径。
|
|
55
55
|
* @returns Promise<void>。
|
|
56
|
-
* @throws
|
|
56
|
+
* @throws 下载 / 校验 / 安装失败或 manifest.json 缺失时抛出,由调用方提示用户。
|
|
57
57
|
*/
|
|
58
58
|
installPlugin: (name: string) => Promise<any>;
|
|
59
59
|
}
|
package/types/Sync.d.ts
CHANGED