aboutsummaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-06-10 10:59:54 -0700
committerGitHub <noreply@github.com>2024-06-10 17:59:54 +0000
commite24075e1a91ab8b58bb5836cf7abcefae5cbf8c3 (patch)
tree57881c2de6a9d75185a390741d404d61d5c9ce69 /types
parent8eea3661714c64857aa32a8662f7cca6674dd3a4 (diff)
Add context menu interface for Yomitan (#1028)
* --wip-- [skip ci] * Draft * Remove weird code * Use existing API instead of dulpicating * Small improvements * remove console.log * remove console.log * Add setting for contextMenu * Fix test * Address comments * Add option-util upgrade * fix option-utils
Diffstat (limited to 'types')
-rw-r--r--types/ext/application.d.ts4
-rw-r--r--types/ext/settings.d.ts1
2 files changed, 5 insertions, 0 deletions
diff --git a/types/ext/application.d.ts b/types/ext/application.d.ts
index 8d80894d..8dc05da3 100644
--- a/types/ext/application.d.ts
+++ b/types/ext/application.d.ts
@@ -105,6 +105,10 @@ export type ApiSurface = {
};
return: void;
};
+ frontendScanSelectedText: {
+ params: void;
+ return: void;
+ };
frameEndpointReady: {
params: FrameEndpointReadyDetails;
return: void;
diff --git a/types/ext/settings.d.ts b/types/ext/settings.d.ts
index b69679b0..80fb8a1f 100644
--- a/types/ext/settings.d.ts
+++ b/types/ext/settings.d.ts
@@ -119,6 +119,7 @@ export type GeneralOptions = {
popupScaleRelativeToPageZoom: boolean;
popupScaleRelativeToVisualViewport: boolean;
showGuide: boolean;
+ enableContextMenuScanSelected: boolean;
compactTags: boolean;
glossaryLayoutMode: GlossaryLayoutMode;
mainDictionary: string;