From 872afc79d6aa55e85003f6e806e75dce0bc7b198 Mon Sep 17 00:00:00 2001 From: "Moris R." Date: Mon, 28 Jul 2025 15:58:36 +0100 Subject: [PATCH] Add missing return statement to copyToClipboard util While using the `useCopyToClipboard` I noticed that the 2nd argument returned by the hook (the `copyToClipboard` callback) does not match the typescript signature. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f6e4fe2..1d40223 100644 --- a/index.js +++ b/index.js @@ -157,7 +157,7 @@ export function useCopyToClipboard() { } }; - handleCopy(); + return handleCopy(); }, []); return [state, copyToClipboard];