From 9b0c87b184c064e6dedaf8651532e729e27518d4 Mon Sep 17 00:00:00 2001 From: Shabai Liu Date: Thu, 28 Apr 2022 13:15:48 -0700 Subject: [PATCH] Fix type for copy function (#795) Co-authored-by: Shabai Liu --- src/clipboard.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clipboard.d.ts b/src/clipboard.d.ts index 98b959f..aeb3fe8 100644 --- a/src/clipboard.d.ts +++ b/src/clipboard.d.ts @@ -39,7 +39,7 @@ declare class ClipboardJS { /** * Fires a copy action */ - static copy(target: string | Element, options: CopyActionOptions): string; + static copy(target: string | Element, options?: CopyActionOptions): string; /** * Fires a cut action