aboutsummaryrefslogtreecommitdiff
path: root/types
diff options
context:
space:
mode:
authorBrandon Rainey <83629154+brandonrainey@users.noreply.github.com>2024-05-28 12:19:43 -0400
committerGitHub <noreply@github.com>2024-05-28 16:19:43 +0000
commit538ffccfae85116228e3f986a1659add927adf69 (patch)
tree6dcf04f3fbaf5f7fb261b38a92e12c025adadf6f /types
parente1c3613da0189c9c234d59d4474cfc3f958af79d (diff)
Change mode to enum (#992)
* converted mode to an enum * converted mode to an enum * created a Mode type in backend.d.ts, reverted enum in backend.js to use this type instead * removed old comment
Diffstat (limited to 'types')
-rw-r--r--types/ext/backend.d.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/ext/backend.d.ts b/types/ext/backend.d.ts
index c7d66522..da4deb49 100644
--- a/types/ext/backend.d.ts
+++ b/types/ext/backend.d.ts
@@ -37,3 +37,5 @@ export type CanAddResults = {
canAddArray: {note: import('anki').Note, isDuplicate: boolean}[];
cannotAddArray: import('anki').Note[];
};
+
+export type Mode = 'existingOrNewTab' | 'newTab' | 'popup';