@solazah/solazah-runtime 0.1.66 → 0.1.68
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/SystemShell.d.ts +9 -0
package/package.json
CHANGED
package/types/SystemShell.d.ts
CHANGED
|
@@ -28,6 +28,15 @@ export default class SystemShell {
|
|
|
28
28
|
command?: string;
|
|
29
29
|
cwd?: string;
|
|
30
30
|
}) => Promise<any>;
|
|
31
|
+
/**
|
|
32
|
+
* 文件管理器与终端的系统原生图标(data URL)。取的是程序本体的图标
|
|
33
|
+
* (explorer.exe / Finder.app / wt.exe),不是目录图标 —— 后者在 Windows 上拿到的是卷标图标。
|
|
34
|
+
* 取不到为 null,调用方自己兜底。
|
|
35
|
+
*/
|
|
36
|
+
nativeAppIcons: () => Promise<{
|
|
37
|
+
fileManager: string | null;
|
|
38
|
+
terminal: string | null;
|
|
39
|
+
}>;
|
|
31
40
|
listTerminals: () => Promise<Array<{
|
|
32
41
|
id: string;
|
|
33
42
|
label: string;
|