Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Narrow Background.ial to Record<string, string> for TS2345 #18034

Daniel1153bc67b5f1
diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts
index 96e8bb8395..3f2cb52d33 100644
--- a/app/src/protyle/header/Background.ts
+++ b/app/src/protyle/header/Background.ts
@@ -96,7 +96,7 @@ const bgs = [
export class Background {
public element: HTMLElement;
- public ial: IObject;
+ public ial: Record<string, string>;
private imgElement: HTMLImageElement;
private iconElement: HTMLElement;
private actionElements: NodeListOf<Element>;
@@ -567,7 +567,7 @@ export class Background {
this.render(this.ial, protyle.block.rootID);
}
- public render(ial: IObject, rootId: string) {
+ public render(ial: Record<string, string>, rootId: string) {
const img = ial["title-img"];
const icon = ial.icon;
const tags = ial.tags;