fix: Resolve TypeScript build errors with type imports and assertion

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
2026-02-05 15:56:32 -07:00
parent 2ef3a1392f
commit b195bf65ee
2 changed files with 3 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import {
type DocumentRef,
type IndexedDocument,
type ResultNote,
type SearchMatch,
} from '../globals'
import {

View File

@@ -1,4 +1,4 @@
import type { QueryCombination } from 'minisearch'
import type { Query, QueryCombination } from 'minisearch'
import { BRACKETS_AND_SPACE, chsRegex, SPACE_OR_PUNCTUATION } from '../globals'
import { logVerbose, splitCamelCase, splitHyphens } from '../tools/utils'
import type OmnisearchPlugin from '../main'
@@ -102,7 +102,7 @@ export class Tokenizer {
return {
combineWith: 'OR',
queries: uniqueQueries,
queries: uniqueQueries as Query[],
}
}