Fix type for copy function (#795)
Co-authored-by: Shabai Liu <shabai_liu@apple.com>
This commit is contained in:
parent
98c96a1136
commit
9b0c87b184
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue