From c6965f7e9fd4abd4136cb64fd6e477e9d5d48012 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 24 Sep 2024 14:35:53 +0800 Subject: [PATCH] type: fix type error. --- src/nodes/header.ts | 2 ++ src/utils/homeCardIcons.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/nodes/header.ts b/src/nodes/header.ts index 54f9659..c5b9512 100644 --- a/src/nodes/header.ts +++ b/src/nodes/header.ts @@ -64,6 +64,7 @@ export function header(options: Option = {}): Element { { type: 'element', tagName: 'span', + properties: {}, children: [ { type: 'text', @@ -74,6 +75,7 @@ export function header(options: Option = {}): Element { { type: 'element', tagName: 'span', + properties: {}, children: [ { type: 'text', diff --git a/src/utils/homeCardIcons.ts b/src/utils/homeCardIcons.ts index f33e7b1..3e9544f 100644 --- a/src/utils/homeCardIcons.ts +++ b/src/utils/homeCardIcons.ts @@ -42,6 +42,7 @@ export function homeCardIcons( const labelNode: Element = { type: 'element', tagName: 'span', + properties: {}, children: child.children, }; const title = getCodeString(child.children);