forked from WorldBrain/Memex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
39 lines (34 loc) · 933 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { Annotation } from 'src/sidebar-overlay/sidebar/types'
import { PageUrlsByDay } from 'src/search/background/types'
import { SocialPage } from 'src/social-integration/types'
export interface Result extends SocialPage {
url: string
title: string
tags: string[]
hasBookmark: boolean
isDeleting: boolean
tagPillsData: string[]
shouldDisplayTagPopup: boolean
displayTime: number
screenshot: string
favIcon: string
annotsCount: number
annotations: Annotation[]
}
export interface ResultWithIndex extends Result {
index: number
}
export type ResultsByUrl = Map<string, ResultWithIndex>
export interface SearchResult {
totalCount: number
resultsExhausted: boolean
isBadTerm: boolean
isInvalidSearch: boolean
docs: Result[]
isAnnotsSearch: boolean
annotsByDay?: PageUrlsByDay
}
export interface Tooltip {
title: string
description: string
}