chore: Fix TypeScript errors 3/n.

This commit is contained in:
cpojer
2026-01-31 16:46:45 +09:00
parent 952b0f8c48
commit 3282d22dd9
5 changed files with 29 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
import type { OpenClawConfig } from "../config/config.js";
import { SkillsInstallPreferences } from "./skills/types.js";
export {
hasBinary,
@@ -32,7 +33,7 @@ export {
syncSkillsToWorkspace,
} from "./skills/workspace.js";
export function resolveSkillsInstallPreferences(config?: OpenClawConfig) {
export function resolveSkillsInstallPreferences(config?: OpenClawConfig): SkillsInstallPreferences {
const raw = config?.skills?.install;
const preferBrew = raw?.preferBrew ?? true;
const managerRaw = typeof raw?.nodeManager === "string" ? raw.nodeManager.trim() : "";