Skip to content

Commit

Permalink
Update ts definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Andrei committed Jul 9, 2019
1 parent 848162d commit 690ff63
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions index.d.ts
Expand Up @@ -52,6 +52,11 @@ declare namespace contextMenu {
*/
readonly copyImageAddress?: string;

/**
@default 'Copy Image'
*/
readonly copyImage?: string;

/**
@default 'Inspect Element'
*/
Expand All @@ -76,6 +81,7 @@ declare namespace contextMenu {
readonly cut: (options: ActionOptions) => MenuItem;
readonly copy: (options: ActionOptions) => MenuItem;
readonly paste: (options: ActionOptions) => MenuItem;
readonly copyImage: (options: ActionOptions) => MenuItem;
readonly saveImage: (options: ActionOptions) => MenuItem;
readonly saveImageAs: (options: ActionOptions) => MenuItem;
readonly copyImageAddress: (options: ActionOptions) => MenuItem;
Expand Down Expand Up @@ -126,6 +132,13 @@ declare namespace contextMenu {
*/
readonly showCopyImageAddress?: boolean;

/**
Show the `Copy Image` menu item when right-clicking on an image.
@default true
*/
readonly showCopyImage?: boolean;

/**
Show the `Save Image As…` menu item when right-clicking on an image.
Expand Down

0 comments on commit 690ff63

Please sign in to comment.