Skip to content

Commit 9b0c87b

Browse files
shabailiuShabai Liu
andauthored
Fix type for copy function (#795)
Co-authored-by: Shabai Liu <shabai_liu@apple.com>
1 parent 98c96a1 commit 9b0c87b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/clipboard.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ declare class ClipboardJS {
3939
/**
4040
* Fires a copy action
4141
*/
42-
static copy(target: string | Element, options: CopyActionOptions): string;
42+
static copy(target: string | Element, options?: CopyActionOptions): string;
4343

4444
/**
4545
* Fires a cut action

0 commit comments

Comments
 (0)