Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix type for copy function
  • Loading branch information
Shabai Liu committed Feb 3, 2022
commit 9f64e2d679208b907d7911546f94dd3d77c93f05
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