From 538ffccfae85116228e3f986a1659add927adf69 Mon Sep 17 00:00:00 2001 From: Brandon Rainey <83629154+brandonrainey@users.noreply.github.com> Date: Tue, 28 May 2024 12:19:43 -0400 Subject: 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 --- types/ext/backend.d.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'types') 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'; -- cgit v1.2.3