Skip to content

Commit

Permalink
Fix type for copy function (#795)
Browse files Browse the repository at this point in the history
Co-authored-by: Shabai Liu <[email protected]>
  • Loading branch information
shabailiu and Shabai Liu authored Apr 28, 2022
1 parent 98c96a1 commit 9b0c87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clipboard.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b0c87b

Please sign in to comment.