From 8bc1a275a555a44ce0ee6e0071fd9dc472488f96 Mon Sep 17 00:00:00 2001 From: storywithoutend Date: Wed, 20 Sep 2023 16:00:30 +0800 Subject: [PATCH] fix typescript error --- src/utils/supportLinks.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/supportLinks.ts b/src/utils/supportLinks.ts index 4b5bdf4ba..d6412fe27 100644 --- a/src/utils/supportLinks.ts +++ b/src/utils/supportLinks.ts @@ -22,4 +22,5 @@ const SUPPORT_LINKS = { type SupportTopic = keyof typeof SUPPORT_LINKS -export const getSupportLink = (topic: SupportTopic) => SUPPORT_LINKS[topic] +export const getSupportLink = (topic: T): typeof SUPPORT_LINKS[T] => + SUPPORT_LINKS[topic]