aboutsummaryrefslogtreecommitdiff
path: root/src/background/completion/TabRepository.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/completion/TabRepository.ts')
-rw-r--r--src/background/completion/TabRepository.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/background/completion/TabRepository.ts b/src/background/completion/TabRepository.ts
new file mode 100644
index 0000000..61fac3b
--- /dev/null
+++ b/src/background/completion/TabRepository.ts
@@ -0,0 +1,12 @@
+export type Tab = {
+ id: number
+ index: number
+ active: boolean
+ title: string
+ url: string
+ faviconUrl?: string
+}
+
+export default interface TabRepository {
+ queryTabs(query: string, excludePinned: boolean): Promise<Tab[]>;
+}