fantasia-archive/src/interfaces/I_OpenedDocument.ts

49 lines
917 B
TypeScript
Raw Normal View History

2021-01-31 02:43:13 +13:00
export interface I_ExtraDocumentFields{
id: string
value: any
type?: string
}
export interface I_OpenedDocument{
_id: string
_rev?: string
editMode: boolean
type: string
icon: string
hasEdits: boolean
isFinished: boolean
2021-01-31 02:43:13 +13:00
isNew: boolean
url: string
scrollDistance?: number
2021-01-31 02:43:13 +13:00
extraFields: I_ExtraDocumentFields[]
}
export interface I_ShortenedDocument{
label: string
icon: string
type: string
url: string
expandable?: boolean
_id: string
hierarchicalPath?: string
2021-02-28 06:00:57 +13:00
isCategory?: boolean
isMinor?: boolean
isDead?: boolean
2021-01-31 02:43:13 +13:00
parentDoc: string | false
children: I_ShortenedDocument[]
extraFields: I_ExtraDocumentFields[]
color?: string
tags?: string[]
isNew?: boolean
editMode?: boolean
hasEdits?: boolean
activeTypeSearch?: boolean
filteredOut?: boolean
exactMatch?: boolean
fullWordMatch?: number
partialWordMatch?: number
isMatched?: boolean
2021-01-31 02:43:13 +13:00
}