Fix type for copy function (#795)

Co-authored-by: Shabai Liu <shabai_liu@apple.com>
This commit is contained in:
Shabai Liu 2022-04-28 13:15:48 -07:00 committed by GitHub
parent 98c96a1136
commit 9b0c87b184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
src/clipboard.d.ts vendored
View File

@ -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