Minisearch 6.0 refactor ok

This commit is contained in:
Simon Cambier
2022-11-26 12:44:20 +01:00
parent e3ac5a4bac
commit c6cee62214
11 changed files with 194 additions and 125 deletions

View File

@@ -1,5 +1,5 @@
import { Notice } from 'obsidian'
import type { IndexedDocument } from './globals'
import type { DocumentRef, IndexedDocument } from './globals'
import { database } from './database'
import type { AsPlainObject } from 'minisearch'
import type MiniSearch from 'minisearch'
@@ -53,7 +53,7 @@ class CacheManager {
}
public async getMinisearchCache(): Promise<{
paths: { path: string; mtime: number }[]
paths: DocumentRef[]
data: AsPlainObject
} | null> {
try {