Skip to content

Commit

Permalink
fix: uses correct type for setTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-sch committed Jul 1, 2024
1 parent e747942 commit 100e3af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const CopyClipboardButton = ({
};

useEffect(() => {
let timeout: NodeJS.Timeout | undefined;
let timeout: ReturnType<typeof setTimeout> | undefined;

if (justCopied) {
timeout = setTimeout(() => {
Expand Down

0 comments on commit 100e3af

Please sign in to comment.