From 14343abebd269bdd3b6ff860a3edd6e2ff634e14 Mon Sep 17 00:00:00 2001 From: jack zhang <1098626505@qq.com> Date: Fri, 26 May 2023 19:56:52 +0800 Subject: [PATCH] chore: Update types.ts --- src/client/theme-api/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/theme-api/types.ts b/src/client/theme-api/types.ts index b0ca229e94..62efbf5dc9 100644 --- a/src/client/theme-api/types.ts +++ b/src/client/theme-api/types.ts @@ -213,11 +213,11 @@ export interface IThemeConfig { switch: boolean; }; nprogress?: boolean; - socialLinks: { + socialLinks?: { /** * 形如:github: "https://github.com/umijs/dumi" */ - [key in SocialTypes]: string; + [key in SocialTypes]?: string; }; [key: string]: any; }