mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Fix type for copy function (#795)
Co-authored-by: Shabai Liu <shabai_liu@apple.com>
This commit is contained in:
2
src/clipboard.d.ts
vendored
2
src/clipboard.d.ts
vendored
@ -39,7 +39,7 @@ declare class ClipboardJS {
|
|||||||
/**
|
/**
|
||||||
* Fires a copy action
|
* Fires a copy action
|
||||||
*/
|
*/
|
||||||
static copy(target: string | Element, options: CopyActionOptions): string;
|
static copy(target: string | Element, options?: CopyActionOptions): string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires a cut action
|
* Fires a cut action
|
||||||
|
Reference in New Issue
Block a user