From 100e3afcd6a78851c357ba81747b2e2eb8390261 Mon Sep 17 00:00:00 2001 From: brunoschadeck Date: Mon, 1 Jul 2024 14:20:33 +0200 Subject: [PATCH] fix: uses correct type for setTimeout --- showcases/patternhub/components/copy-clipboard-button/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/showcases/patternhub/components/copy-clipboard-button/index.tsx b/showcases/patternhub/components/copy-clipboard-button/index.tsx index 361f254fdab..67544245182 100644 --- a/showcases/patternhub/components/copy-clipboard-button/index.tsx +++ b/showcases/patternhub/components/copy-clipboard-button/index.tsx @@ -26,7 +26,7 @@ const CopyClipboardButton = ({ }; useEffect(() => { - let timeout: NodeJS.Timeout | undefined; + let timeout: ReturnType | undefined; if (justCopied) { timeout = setTimeout(() => {