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 isNew: boolean url: string extraFields: I_ExtraDocumentFields[] } export interface I_ShortenedDocument{ label: string icon: string type: string url: string expandable?: boolean _id: string parentDoc: string | false children: I_ShortenedDocument[] extraFields: I_ExtraDocumentFields[] }