From 8e0b01728961af0602a429a857a7f8648f961103 Mon Sep 17 00:00:00 2001 From: Alexander Lee Date: Wed, 27 Sep 2023 17:49:15 +0800 Subject: [PATCH] chore: change to unknown --- src/hooks/useDrag.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useDrag.tsx b/src/hooks/useDrag.tsx index e1ebd010b..6ba4953cb 100644 --- a/src/hooks/useDrag.tsx +++ b/src/hooks/useDrag.tsx @@ -192,7 +192,7 @@ type UpdateHomepageType = | `textCardItem-${number}` const isUpdateHomepageType = ( - value: any + value: unknown ): value is UpdateHomepageType | EditorHomepageElement => { if (typeof value === "string" && value.startsWith("textCardItem-")) { const valArr = value.split("-")