fix(skill): tighten cached content typing

This commit is contained in:
yyh
2026-01-27 13:09:23 +08:00
parent a6a1ac4fa6
commit 74f94633d7

View File

@ -157,7 +157,7 @@ export const SkillSaveProvider = ({
content: snapshot.content,
...(snapshot.metadata ? { metadata: snapshot.metadata } : {}),
})
const nextData: CachedFileContent = {
const nextData: CachedFileContent & { content: string } = {
...(existing && typeof existing === 'object' ? existing : {}),
content: serialized,
}